Re: easiet method to process xml with xsl
I know three methods to process an XML document with an XSL template to obtain the target XML upon which the transformation has been inflicted. One of them is Saxon and the other one is Xalan, but I didn't get my head around installing them (and modifying the java classpath and all that), so I used the third option, which is using any of those processors as they conveniently come integrated in the oXygen editor, so I just select the XML, the XSL and the processor, click Run and wait.
You don't need to get your "head around installing them (and modifying the java classpath and all that)" to run Saxon ... all you need is this:
For Saxon 6.5.5:
java -jar saxon.jar -o result data.xml stylesheet.xsl
For Saxon 18.104.22.168J:
java -jar saxon9.jar -o result data.xml stylesheet.xsl
If the JAR file isn't in the same directory, use a full path name.
No need to play with the class path at all.
I hope this helps.
. . . . . . . . . . . . Ken
-- Upcoming hands-on XSLT, UBL & code list hands-on training classes: Brussels, BE 2009-03; Prague, CZ 2009-03, http://www.xmlprague.cz Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video Video lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18 Video overview: http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18 G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
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