Subject:command line conversion Author:Ron Zimmerman Date:22 Jul 2008 09:26 AM
I'm trying to convert a text file to an xml to a different text using stylusxslt from the command line. The problem I'm having: no matter what date or datetime function I use, I get a transformation error saying the function does not exist. Suggestions!
Subject:command line conversion Author:Tony Lavinio Date:22 Jul 2008 09:46 AM
stylusxslt.exe uses XSLT 1.0. Could that be the problem?
It is possible to specify the XML Converters as the URIResolver
for saxon9.jar if you want to use an XSLT 2.0 processor. Or
you could use stylusxql.exe, which uses XQuery 1.0 and therefore
understands the date/time functions.
Subject:command line conversion Author:Ron Zimmerman Date:22 Jul 2008 10:33 AM
If stylusxslt.exe uses XSLT 1.0, that may be the problem. I've got XSLT 2.0 in the stylesheet and it runs fine within Stylus. And using saxon from the command line works also. If I use saxon to process the stylesheet, how can I run the conversion to xml (created in Stylus) from the command line which would be input for saxon?
Subject:command line conversion Author:Tony Lavinio Date:22 Jul 2008 07:46 PM
You should be able to do something like
java -cp saxon9.jar;xmlconverters.jar; etc... net.sf.saxon.Transform -r:com.ddtek.xmlconverter.ConverterResolver -s:input_uri -xsl:xslt_uri
In this way, assuming that everything is in the proper path location,
you should be able to supply your converter URI for <inputuri>