Essential XML for Web Professionals by Dan Livingston Essential XML for Web Professionals by Dan Livingston
Chapter Navigation Map

Chapter 10
XSLT: An Overview

Examples

XSLT is one of the three parts of XSL (the other two are XPath and XSL-FO). The purpose of XSLT is to provide a way to translate an XML document into another XML document—for example, transforming a MathML document into XHTML so it can be viewed over the Web.

XSLT allows you to comb through an XML document and do a number of things: copy existing elements, modify existing elements, or introduce entirely new elements altogether. XSLT accomplishes with by creating a series of rules, called template rules, that are applied to the source XML document. XSLT then creates a separate, new XML document after it applies all of the rules to the source.

Only one template rule is run automatically by XSLT. That main rule must contain references to all the other rules that are to be run.

There are many different functions and instructions you can use in XSLT. There are too many to list here, but they're all in the book!


Prentice Hall PTR home | Essential Series home
© 2002 Prentice Hall PTR
13 12 11 10 9 8 7 6 5 4 3 2 1