Summary

XSLT is a template-driven environment for defining transformations between one XML document format and another. An XSLT stylesheet contains template rules that are matched against nodes in the input document. When a match is detected, the rule's template is instantiated and the result is added to the result tree. XSLT is itself an XML application that contains numerous elements for specifying exactly which nodes are matched when and what output is generated as a result.

XSLT is also a Turing-complete, functional programming language. Templates can be called by name and can be called recursively. Parameters can be passed to templates. XSLT is not as convenient to program in as traditional languages such as Java, but in its problem domain ...

Get Processing XML with Java™: A Guide to SAX, DOM, JDOM, JAXP, and TrAX 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.