XML technologies / XSLT / Introduction to XSLT 2.0 / XSLT and XPath – round three / Summary and exercises
(Excerpt from "XSLT 2.0 & XPath 2.0" by Frank Bongers, Chapter 3.)
Chapter three covered further core concepts of XSLT and XPath. The most important are variables and parameters, whose concepts in XSLT differ from conventions familiar in other programming languages. Other topics include named templates, calling them with parameters, and declaring stylesheet functions.
After working through part three, you should be able to:
Declare and use local and global variables and parameters
Work with named template rules
Pass parameters when calling templates or template rules
Create multiple result documents with
xsl:result-documentWork with runtime identifiers and keys
The following XSLT declarations and instructions were introduced: xsl:variable, xsl:param, xsl:with-param, xsl:call-template, xsl:function, xsl:result-document, xsl:key, xsl:import and xsl:include.
Important functions introduced here include document(), tokenize(), normalize-space(), key(), generate-id(), id() and others. Tunnel parameters and stylesheet modularity were also discussed.
Looking ahead to part two of the book
This concludes the general introduction to XSLT 2.0 and XPath 2.0, but not the book. This first quarter provides a basic overview of XSLT and XPath concepts. It was not intended to be exhaustive, nor could exhaustive coverage fit a reasonably coherent structure that also remains accessible to beginners.
Many topics remain, including processing with schema types, some date and time features, further uses of regular expressions in XSLT, and numerous other major and minor details. The reference section that follows fills these gaps.
Copyright © Galileo Press, Bonn 2008
You may print the online version for your private use.
Otherwise, this chapter from "XSLT 2.0 & XPath 2.0 ― Das umfassende Handbuch" is subject to the same terms as the printed edition: the work and all its parts are protected by copyright. All rights are reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
Galileo Press, Rheinwerkallee 4, 53227 Bonn