[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: multiple input to multiple output

Subject: Re: multiple input to multiple output
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 10 Dec 1999 11:30:22 GMT
java multiple input
> 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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.