Using XSL Processors

To use an XSL stylesheet, we need a way to associate the stylesheet with a document. The W3C provides a single method for this—the xml:stylesheet processing instruction. As we shall see shortly, xml:stylesheet allows you to embed into your XML document the URI of its associated stylesheet. However, especially in the case of Java servlets, ASP, and similar technologies, we also would like other mechanisms for associating a stylesheet with a document. XT, LotusXSL, MSIE 5.0, and other XSL-enabled applications allow for specifically associating, at runtime, a stylesheet with a given XML document. Each has its own benefits and drawbacks. Let's look at the standard first—embedding a reference to a stylesheet within an XML document. ...

Get XML Development with Java™ 2 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.