XML technologies / XSLT / Introduction to XSLT 2.0 / XSLT and XPath – round two / Summary and exercises

(Excerpt from "XSLT 2.0 & XPath 2.0" by Frank Bongers, Chapter 2.)

The second chapter develops your XSLT knowledge to the point where you can write moderately complex stylesheets. Filter predicates, essential for constructing sequences, are particularly important.

At this point, you should be ready for the following practical tasks:

The following XSLT declarations and instructions were introduced: xsl:if, xsl:choose, xsl:when, xsl:otherwise, xsl:sort, xsl:number, xsl:for-each, xsl:for-each-group, xsl:copy, xsl:copy-of as well as instructions for constructing nodes.

Important XPath functions introduced here include fn:position(), fn:last(), fn:count(), fn:sum(), fn:round-half-to-even(), the XSLT function format-number() and others. More complex XPath constructs, such as conditions and loops, were also discussed. A detailed discussion of all XSLT elements and their attributes is collected in the XSLT 2.0 reference, and a description of the functions in the XSLT and XPath function reference.

   

   

back to top