XSLT

The XML Style Sheet Language (XSL) Transformation (XSLT) API is used for transforming an XML document into any other form; the most common use of XSLT for Web development is for transforming XML documents into HTML for presentation in a Web browser.

The JAXP defines an XSLT Transformer that reads an XML document and applies to it the rules specified in a style sheet to produce a resultant document. Figure 12.3 shows this graphically.

Figure 12.3. The XSLT process.

The JAXP provides XSLT support through the javax.xml.transform package. The javax.xml.Transformer class performs the actual transformation and, in a similar fashion to the way a ...

Get Java™ Web Services Unleashed 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.