Loading XML Documents

Java has several different libraries for dealing with XML. The basic XML library is called JAXP (Java API for XML Parsing) and includes classes for reading and writing XML files as well as applying XSLT transformations.

If you are using Tomcat 4.0 or later, you already have JAXP on your system. Tomcat 4.0 includes version 1.1 of the JAXP library. Unfortunately, your Tomcat installation might not include the Xalan XSLT processor that is included in Sun’s JAXP distribution. Because you want to do XSLT processing with Tomcat, you need to download JAXP from Sun and unpack the ZIP or .tar.gz file. When you unpack JAXP, you’ll see that there is a file called xalan.jar in the main JAXP directory. Simply copy this file to the ...

Get Special Edition Using XSLT 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.