This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
saxon in batch file for lots and lots of xml files
- From: ronald heller <ronald at salience dot nl>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Tue, 29 Jan 2002 09:59:33 +0100
- Subject: [xsl] saxon in batch file for lots and lots of xml files
- References: <DCEPIHHFOCEMDBGBKIOPIEAPCDAA.bry@itnisk.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi there,
I have a large directory with rather small xml files. There may be well
over 500 files in there.
Once a day these files are transformed with saxon 6.2.
Although this goes well, it takes a lot of time.
I have a feeling that is is not the transformation itself that takes a lot
of time, but that the starting and closing of saxon is.
let me show you some code from the batchfiles:
1.bat:
---------------------------------------
for %%b in ("*.xml") do call 2.bat %%b CC
rem. for each xml file that is found I call 2.bat
2.bat
---------------------------------------
java com.icl.saxon.StyleSheet -o "%1-a" "%1" "convert.xsl"
rem for each file that has to be transformed saxon/java is started and closed.
Is there a quicker/smarter way of doing this?
any help is appreciated
Regards,
Ronald
(ps I tried Instant saxon, but that gives more or less the same results)
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list