Home
TOC Index |
XML Stylesheet Language for Transformations
The XML Stylesheet Language for Transformations (XSLT) defines mechanisms for addressing XML data (XPath) and for specifying transformations on the data, in order to convert it into other forms. JAXP includes two implementations of XSLT, an interpreting version (Xalan) and a compiling version (XSLTC) that lets you save pre-compiled versions of desired transformations as translets, for the most efficient runtime processing later on.
In this chapter, you'll learn how to use both Xalan and XSLTC. You'll write out a Document Object Model (DOM) as an XML file, and you'll see how to generate a DOM from an arbitrary data file in order to convert it to XML. Finally, you'll convert XML data into a different form, unlocking the mysteries of the XPath addressing mechanism along the way.
Note: The examples in this chapter can be found in<
JWSDP_HOME
>/docs/tutorial/examples/jaxp/xslt/samples
.
In This Chapter
- Introducing XSLT and XPath
- Choosing the Transformation Engine
- How XPath Works
- Writing Out a DOM as an XML File
- Generating XML from an Arbitrary Data Structure
- Transforming XML Data with XSLT
- Transforming from the Command Line
- Concatenating Transformations with a Filter Chain
- Further Information
Home
TOC Index |
This tutorial contains information on the 1.0 version of the Java Web Services Developer Pack.
All of the material in The Java Web Services Tutorial is copyright-protected and may not be published in other works without express written permission from Sun Microsystems.