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

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

 About This Book

 Ideas on Publishing Books using XML

 Overview of hyPub - A Simple XML Publishing Tool

 Writing Book Contents in XHTML Source Files

Transforming Book Source Files with XSL Technology

 What Is XSL (eXtensible Style Language)?

 Introduction to XSL Templates?

xalan - XSL Transformation Processing Engine

 How XSL Technology Is Used in hyPub?

 Designing Web Page Layouts with Tables

 Controlling Web Page Appearance with CSS

 Sharing HTML Codes with JavaScript Files

 Generating Web Pages with hyPub

 Formatting Printable Documents with XSL-FO

 Generating PDF Documents with hyPub

 Areas of Future Improvements


 PDF Printing Version

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