Using a Standalone XSL Processor

Using a standalone XSL processor is as easy as running a Java compiler. You just need to download an XSL processor. The Saxon XSL processor is fast and easy to use. It also has a special Windows-only executable version so you can get going quickly. You can get Saxon at http://users.iclway.co.uk/mhkay/saxon. If you're running windows, try instant-saxon. Unpack a ZIP file to get to the saxon.exe file, and then just type the following:

saxon yourXMLfile.xml yourstylesheet.xsl

You can also use the Apache Xalan XSL processor (available at http://xml.apache.org) as a standalone processor. After you unpack Xalan, make sure the Xalan JAR file is in your classpath and then type this:

 java org.apache.xalan.xslt.Process ...

Get Special Edition Using Java™ 2 Enterprise Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.