Creating an XSL Style Sheet

So, now that you have looked at some of the XML technologies relevant to XSL Transformations, how does it all work in practice?

In this section you will see two examples of using XSLT style sheets (also known as transformation sheets).

After the XSL-FO part of the Extensible Stylesheet Language is released as a W3C Recommendation, you can expect to be able to use XSL style sheets to combine transformation (XSLT) and the inclusion of formatting objects (XSL-FO) in the result tree.

Basic Style Sheet Concepts

An XSLT style sheet is an XML document. Therefore, although it is not compulsory, it is useful to include an XML declaration as the first line of your XSLT style sheet.

The simplest form of XML declaration is

Get XHTML by Example 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.