Processing Style Sheets

When you create an XSLT style sheet, you use its markup language to describe how your XML data will be transformed. After you’ve written your style sheet, it is linked either statically or dynamically to your XML document instance. When the XML parser loads your document, it creates a tree in memory that is a representation of the markup and data in your document. This tree is called the source tree.

After the tree has been created, the XSLT processor takes over and begins constructing a second tree that will contain the results of applying your transformations to the original source elements. This second tree is called the result tree.

So, when working with XSLT you will be walking the source tree, grabbing elements, ...

Get Special Edition Using XSLT 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.