Publishing with XML - Herong's Tutorial Examples - v4.02, by Dr. Herong Yang
xalan - XSL Transformation Processing Engine
This section describes how to use the XSL transformation processing engine, Xalan-Java, from Apache.
Xalan-Java is a Java based XSL transformation processing engine developed by Apache. Xalan-Java allows to apply XSL templates defined in an XSL file to an XML source file to generated the transformed output file.
If you want to run Xalan-Java from the commmand line, you need to:
1. Download Xalan-Java from http://xml.apache.org/xalan-j/downloads.html.
2. Set the Java classpath to include xalan.jar, serializer.jar, xml-apis.jar, and xercesImpl.jar.
3. Call java and the Process class with the appropriate flags and arguments. The following command line, for example, includes the -IN, -XSL, and -OUT flags with their accompanying arguments: the XML source document, the XSL stylesheet, and the output file:
java org.apache.xalan.xslt.Process -IN foo.xml -XSL foo.xsl -OUT foo.out
Table of Contents