Publishing Books Using XML Technologies
Dr. Herong Yang, Version 4.01

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 

Sections in This Chapter

What Is XSL (eXtensible Style Language)?

Introduction to XSL Templates?

xalan - XSL Transformation Processing Engine

How XSL Technology Is Used in hyPub?

Dr. Herong Yang, updated in 2007
xalan - XSL Transformation Processing Engine