XML technologies / XSLT / Reference: XSLT 1.0 and 2.0 elements / Alphabetical reference of XSLT elements
(Excerpt from “XSLT 2.0 & XPath 2.0” by Frank Bongers, chapter 6.)
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
This alphabetical reference classifies each element by function group and states its introductory version. XSLT 2.0 elements cannot be used in XSLT 1.0. It outlines the element’s purpose, stylesheet position, allowed content and attributes. Required, optional and newly added XSLT 2.0 attributes are marked. Attributes permitting an attribute value template are marked AVT (Attribute Value Template).
Usage, differences between XSLT 1.0 and 2.0, and examples follow. Each entry ends with the XSLT 2.0 element definition and, where needed, the XSLT 1.0 definition.
A
examines the input string selected by attribute select using a regular expression. | |
calls the template whose match attribute matches a child of the current context node. | |
calls the template whose match attribute matches a child of the current context node. | |
creates an attribute in the enclosing result-tree element. | |
groups attributes into an attribute set. | |
|
|
|
C
invokes an explicitly named template. | |
declares a character map. | |
contains one or more xsl:when instructions and optionally a final xsl:otherwise instruction. | |
creates a comment node in the result document. | |
copies the current context node into the result. | |
copies a node with all descendants, attributes and namespace nodes into the result. | |
|
|
|
D
defines the characters used in decimal-number formatting patterns. | |
creates a temporary document node, added to the result or stored in a variable. | |
|
|
|
E
creates an element node in the result. | |
|
|
|
F
handles the error caused by an instruction unsupported by the XSLT processor. | |
implements a conventional FOR loop. | |
groups the input sequence specified by select according to a criterion. | |
creates user-defined functions. | |
|
|
|
I
implements an IF test without an alternative ELSE branch. | |
imports all templates and declarations from an external stylesheet. | |
imports XML Schema definitions. | |
imports all templates and declarations from an external stylesheet. | |
|
|
|
K
declares a key. | |
|
|
|
M
is always a child of xsl:analyze-string. | |
emits the output values of its subinstructions as a transformation message. | |
|
|
|
N
creates a namespace node in the result. | |
is a declaration directly under root element xsl:stylesheet. | |
calls another template. | |
is always a child of xsl:analyze-string. | |
generates numbering such as ordered list items (1., 2., 3., etc.), chapters and subchapters (1., 1.1, 1.2, 1.3, 1.3.1, 1.3.2, etc.), and other schemes. | |
|
|
|
O
is always a child of xsl:choose and has at least one preceding sibling xsl:when. | |
specifies the result document’s output form. | |
is a subinstruction of the xsl:character-map declaration. | |
|
|
|
P
defines a named parameter assigned values, strings or entire code blocks. | |
groups and prioritises sorting specifications declared with xsl:sort. | |
explicitly declares at the top level which elements preserve whitespace nodes in the result. | |
creates a processing instruction at its position in the result. | |
|
|
|
R
creates another result document during transformation. | |
|
|
|
S
explicitly outputs a sequence. | |
sorts a node sequence by the criterion selected through select. | |
explicitly declares at the top level which elements discard whitespace nodes from the result. | |
is the root element of an XSL document. | |
|
|
|
T
contains instructions whose output goes directly into the result document. | |
marks text nodes and copies them unchanged into the result. | |
is the root element of an XSL document. | |
|
|
|
V
converts a sequence specified by select to values copied into the result. | |
defines a named variable assigned values, strings or entire code blocks. | |
|
|
|
W
is always a child of xsl:choose and may have other xsl:when instructions and a single following sibling xsl:otherwise. | |
passes a value to a local parameter already defined in the template. | |
|
|
|
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 conditions as the bound edition. The work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
Galileo Press, Rheinwerkallee 4, 53227 Bonn