This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Batch XSLT Processing
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Batch XSLT Processing
- From: Joshua Allen <joshuaa at microsoft dot com>
- Date: Tue, 11 Jul 2000 21:00:40 -0700
- Reply-To: xsl-list at mulberrytech dot com
Most all XSLT processors can be called command line
in a batch. Below I include the command lines I use for
various processors. I have also written a simple wrapper
for MSXML3 that allows batching XSLT; if you are interested
I can e-mail to you.
java -classpath c:\saxon\saxon.jar com.icl.saxon.StyleSheet -o tmpout.xml
tmpdata.xml tmpxform.xml
java -classpath c:\xalan\xalan.jar;c:\xalan\xerces.jar
org.apache.xalan.xslt.Process -in tmpdata.xml -xsl tmpxform.xml -out
tmpout.xml
java -classpath c:\xt\xt.jar;c:\xerces\xerces.jar
-Dcom.jclark.xsl.sax.parser=org.apache.xerces.parsers.SAXParser
com.jclark.xsl.sax.Driver tmpdata.xml tmpxform.xml tmpout.xml
java -classpath c:\oraxml\lib\xmlparserv2.jar oracle.xml.parser.v2.oraxsl
tmpdata.xml tmpxform.xml tmpout.xml
URLs to download the above parsers, in order:
http://users.iclway.co.uk/mhkay/saxon/
http://xml.apache.org/xalan/
http://www.jclark.com/xml/xt.html
http://technet.oracle.com/tech/xml/parser_java2/
Joshua Allen
Microsoft eBusiness West Region
"No challenge can withstand the assault of sustained thinking" - Voltaire
Note: You need to point to the actual location you have unzipped the .jar
files. Also note that I explicitly include classpath, since I seem to have
strange behavior if the processors all use the same global classpath.
Finally note that most of the above allow mixing and matching SAX
processors; this is just the config I use.
> -----Original Message-----
> From: Meukens, Kris [mailto:kris.meukens@eds.com]
> Sent: Tuesday, July 11, 2000 2:37 AM
> To: 'xsl-list@mulberrytech.com'
> Subject: Batch XSLT Processing
>
>
> Hi,
>
> Anyone knowing a program to do a batch XML -> HTML
> conversion with XSLT? Cocoon 1.7.4 has a main()
> method which is not more than a hack and doesn't
> seem to support relative stylesheed URIs.
>
> If somebody could point out what the problem is
> in Cocoon, that might help too.
>
> Kris.
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list