The Saxon command line is not a programming language: it is intended for
ad-hoc one time transformations, not for programming production
applications. You need to write your own Java application that drives
Saxon using the JAXP API. You could start with the code that implements
the Saxon command line (Transform.java) if you want a quick way to get
started.
Or if you don't want to write Java, you can script transformations using
ant. I haven't tried it though.
Michael Kay
-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of
Matthew Zimmerman
Sent: 29 April 2003 20:50
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] How to specify output file extension in SAXON.
Hi,
I have been doing some simple XML to HTML transformations using SAXON
from the command line.
java -jar saxon.jar -o htmldir/file.html xmldir/file.xml
xsltdir/file.xsl
That works fine.
I know to do batch process I use
java -jar saxon.jar - htmldir xmldir xsltdir/.xls
But, I want the output files to have .html extensions, not .xml.
How do I do that? In the XSLT? At the command line.
Thanks for your help.
Matt Zimmerman
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list