XSLT Examples

In this section, we will consider some nontrivial XSLT programs to show combinations of the principles of XSLT in practice. The first example demonstrates how to convert documents between element and attribute-normal forms. It illustrates quite effectively the power of recursive transformations. The second example demonstrates how to convert a large set of XML elements into a series of pages that can be viewed by an XHTML browser. It demonstrates the utility of conditional expressions and the following-sibling XPath axis. The final example demonstrates how you can transform an attribute-normal-form ADO recordset document that is missing some attributes into an XHTML table that accounts for the missing attributes. It demonstrates ...

Get Essential XML: Beyond Markup 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.