[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: How to specify output file extension in SAXON.
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@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of > Matthew Zimmerman > Sent: 29 April 2003 20:50 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|