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

RE: XSL Processors in batch mode

Subject: RE: XSL Processors in batch mode
From: "Robert C. Lyons" <boblyons@xxxxxxxxxx>
Date: Fri, 18 Feb 2000 10:09:24 -0500
RE: XSL Processors in batch mode
Wendell writes:

> Does anyone know offhand if either XT or Xalan can run an entire
> subdirectory's XML files through a stylesheet from one command on the
> command line? What're the arguments to use?

XT can do this by invoking it 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.

Note that XT will re-parse the stylesheet
for each source file in the source 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 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

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.