Using stylesheets

Assuming the existence of a stylesheet that is applicable to a particular source XML document, a mechanism is needed to indicate that this stylesheet is to be used to process the document. This can be done in a number of different ways, each with its own strengths and weaknesses.

Embedded stylesheets

Stylesheets can be embedded within the documents to process. This can be done because both the XSLT stylesheet and the document containing it are XML structures.

A later section describes how this approach works in detail. The main problem with the approach is that the same embedded stylesheet may be replicated across a large number ...

Get XSL companion, The 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.