FAQ
History
PreviousHomeNext Search
Feedback
Divider

XML Stylesheet Language for Transformations

Eric Armstrong

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.


Divider
FAQ
History
PreviousHomeNext Search
Feedback
Divider

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.