RE: multiple input to multiple output

Subject: RE: multiple input to multiple output
From: "Robert C. Lyons" <boblyons@xxxxxxxxxx>
Date: Fri, 10 Dec 1999 09:30:22 -0500
Linda writes:

"Is it possible to use XSL to process 
all the XML files in a directory
according to one stylesheet and create 
one output file for each input file?"

Linda,

Yes, this is possible using XT.
You can invoke XT as follows:

	xt source_dir stylesheet result_dir

XT will apply the stylesheet to each
file in the source_dir directory and
put the output files in the result_dir
directory.

The stylesheet should not be in the
source_dir. When XT creates an output file,
it will use the same file name as the
corresponding input file.

Let's say that your input XML documents
are in the IN directory, and your stylesheet
(xlate.xsl) is in the current directory, and you want
the output files to be placed in the
OUT directory. Then you would execute the
following command:

	xt in xlate.xsl out

I don't think that this XT feature is
documented.

I found out about it last week by reading the
source code of the com.jclark.xsl.sax.Driver class
(the 19991102 version of XT).

Bob

------
Bob Lyons
EC Consultant
Unidex Inc.
1-732-975-9877
boblyons@xxxxxxxxxx
http://www.unidex.com/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread