XSLT and XPath

XSL is based on recognition through matching. Each transformation is expressed as a set of rules that will match patterns found in the input. The transformation required is described, instead of providing sequential instructions to achieve it.

XSL works by matching nodes of XML documents through the matching capabilities of XPath. (If you don't know what a node is, read Chapter 2 first.) These nodes are selected through a combination of their location path in the tree structure, the text data contained therein, and the literal name of the element. After these nodes are selected, they can be processed through the rules of XSLT.

The set of rules transforms the tree structure, not the XML document itself. XSLT transforms the XML document ...

Get JSP™ and XML Integrating XML and Web Services in Your JSP™ Application 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.