Summary

This hour gave you the complete list of supported XSL elements. Although there wasn't enough time to cover all of the elements, the most significant ones were demonstrated. Conditional processing is an important component of all computing, and the xsl:if, xsl:choose, xsl:when, and xsl:otherwise elements were all used in situations where alternatives were available.

Despite all the power of the XSL elements, there are still some things they cannot do. Therefore, the syntax for the inclusion of JavaScript code in XSL files was demonstrated. There are two ways to do this: either inline or as a globally defined function.

Get Sams Teach Yourself XML in 24 Hours 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.