2 standard inputs?
From: Derek Fountain (nomail_at_hursley.ibm.com)
Date: 10/25/03
- Next message: Kenneth Porter: "Re: Source code visualization tool"
- Previous message: Neil: "Re: Chroot ssh login"
- Next in thread: Jens.Toerring_at_physik.fu-berlin.de: "Re: 2 standard inputs?"
- Reply: Jens.Toerring_at_physik.fu-berlin.de: "Re: 2 standard inputs?"
- Reply: Stephane CHAZELAS: "Re: 2 standard inputs?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 25 Oct 2003 09:36:25 +0800
I have a script in which I've built two variables; one contains a string
which is XML text, the other contains a string which is XSLT text. I want
to feed these pieces of information into xsltproc, which actually takes two
filenames as input. I'm trying to avoid writing my 2 strings out to files,
just so xsltproc can load them.
I can avoid one of the files by supplying xsltproc /dev/stdin as one of it's
input files, then feeding one of my text strings to the standard input:
exec xsltproc /dev/stdin $xmlFilename << $xsltText
(The script is in Tcl, and this uses a feature of the Tcl exec command, but
I should be able to adapt any generic scripting answer.)
I can't think of a way of easily feeding the text which I'm currently
dumping in $xmlFilename into the xsltproc process without using the
intermediate file. Any ideas, anyone?
- Next message: Kenneth Porter: "Re: Source code visualization tool"
- Previous message: Neil: "Re: Chroot ssh login"
- Next in thread: Jens.Toerring_at_physik.fu-berlin.de: "Re: 2 standard inputs?"
- Reply: Jens.Toerring_at_physik.fu-berlin.de: "Re: 2 standard inputs?"
- Reply: Stephane CHAZELAS: "Re: 2 standard inputs?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|