XML technologies / XSLT / Introduction to XSLT 2.0 / Getting started with XSLT and XPath / Classification of the elements of XSLT
(Excerpt from "XSLT 2.0 & XPath 2.0" by Frank Bongers, Chapter 1.)
The preceding short examples have already suggested that fixed rules govern the position and occurrence of XSLT instructions in a stylesheet. In that sense, the instructions do not all have the same status.
The 49 elements in XSLT 2.0 are classified according to their position in the stylesheet hierarchy into four groups:
Root elements (serve as the stylesheet’s root element):
The only two XSLT elements that can alternatively serve as the stylesheet’s root element arexsl:stylesheetand its rarely used synonymxsl:transform. They therefore form a separate group of two elements.Top-level elements (declarations and structural elements):
As direct children of the root element, they define the stylesheet’s global structure: templates, declarations of functions and parameters, formatting rules and more. XSLT 2.0 has 16 top-level elements.Instructions Instructions below the global level, including subordinate declarations, template calls, conditions, loops and constructors. About 24 elements belong to this group in XSLT 2.0.
Sub-instructions (subordinate to instructions):
Further elements occur within instructions, never directly within top-level elements. They are therefore informally called sub-instructions. XSLT 2.0 has seven such elements.
For a complete overview of all XSLT elements in XSLT 1.0 and XSLT 2.0, see the XSLT 2.0 reference.
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