XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Ron ZimmermanSubject: 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!

Ron

Postnext
Tony LavinioSubject: 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.

Postnext
Ron ZimmermanSubject: 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?

Posttop
Tony LavinioSubject: 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>

 
Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.