Applying XSL Templates on the Browser

Internet Explorer 5 has a built-in XSL processor that can apply templates on the client side. This gives you a lot of flexibility because you can generate XML from a Java Server Page and have the browser apply the style sheet to the XML. You must modify the XML file to explicitly embed the style sheet, however. That is, the XML file must use the xsl-stylesheet processing directive to tell the browser which style sheet to use.

The advantage of processing the style sheet on the browser is that you have much more flexibility on your server, and the server isn't bogged down processing style sheets for every user. The main disadvantage is that Internet Explorer 5 is the only browser as of December, 2000 that supports ...

Get Special Edition Using Java™ 2 Enterprise Edition 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.