XSLT Compilers

To conclude today's lesson we will take a quick look at XSLT compilers.

One drawback to XLST stylesheets is performance. An XLST processor, such as XALAN, first reads in the XSLT stylesheet and builds an internal structure representing the rules that must be applied. The processor must then read in the XML document, match each element to the defined rules, and generate the required output. All of this takes time.

One way to improve performance is to preprocess the XSLT stylesheet to create a custom program that will transform an XML document in a more efficient manner.

Such a technology is called an XSLT compiler. This is a fast changing area of XSL technology, but the original XSLT compiler, called XSLTC, developed by Sun Microsystems, ...

Get Sams Teach Yourself J2EE™ in 21 Days, Second 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.