|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: multiple input to multiple output
> Can I by any chance use the document function for this?
only if you know in advance what the files are:
<xsl:apply templates select="document('file1.xml')"/>
<xsl:apply templates select="document('file2.xml')"/>
.
.
.
Which is a bit of a pain, in which case it is easier to do
for i in *.xml ; do xt $i style.xsl ; done
(whatever the nt command line syntax for a loop is, that is (ba)sh
syntax) The disadvantage of that is it starts up the java virtual
machine and reparses the stylesheet afresh on each input file.
This is normally what I do, but what probably I ought to do
is instead of running xt from the command line like that, have a small
java wrapper program that gets all the files in the directory and passes
them to the xt class. I post enough xsl to this list, I'm not going to
risk my reputation by posting java to it, someone else may be able to
comment on the viablity of this method:-)
David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








