XML technologies / XSLT / Reference: XSLT 1.0 & 2.0 elements / XSLT elements by functional group

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

Since an alphabetical list says little about how elements are used, we first group the elements of XSLT 1.0 and XSLT 2.0 by their purpose:

Effect on:

XSLT element

Version

Structure:
Defining the stylesheet structure

xsl:import

xsl:include

xsl:stylesheet

xsl:transform

XSLT 1.0

XSLT 1.0

XSLT 1.0

XSLT 1.0

Templates:
Define template rules and their calls

xsl:apply-templates

xsl:apply-imports

xsl:call-template

xsl:next-match

xsl:template

XSLT 1.0

XSLT 1.0

XSLT 1.0

XSLT 2.0

XSLT 1.0

Output format:
Controlling the output

xsl:character-map

xsl:output

xsl:output-character

XSLT 2.0

XSLT 1.0

XSLT 2.0

Result document:
Creating a result document

xsl:document*

xsl:result-document

* Note: Not identical to xsl:document in XSLT 1.1!

XSLT 2.0

XSLT 2.0

Format declarations:
For use with XSLT functions

xsl:decimal-format

XSLT 1.0

Whitespace:
Influence on whitespace handling

xsl:preserve-space

xsl:strip-space

XSLT 1.0

XSLT 1.0

Variables:
Defining or passing variables and parameters

xsl:variable

xsl:param

xsl:with-param

XSLT 1.0

XSLT 1.0

XSLT 1.0

Functions:
Declaring functions

xsl:function

XSLT 2.0

Conditions/loops:
Conditional processing and iteration

xsl:choose

xsl:for-each

xsl:for-each-group

xsl:if

xsl:otherwise

xsl:when

XSLT 1.0

XSLT 1.0

XSLT 2.0

XSLT 1.0

XSLT 1.0

XSLT 1.0

Sorting:
Sorting or numbering

xsl:number

xsl:sort

xsl:perform-sort

XSLT 1.0

XSLT 1.0

XSLT 2.0

Copying:
Copying information from source to result

xsl:copy

xsl:copy-of

XSLT 1.0

XSLT 1.0

Output:
Generating output in the result document

xsl:attribute

xsl:attribute-set

xsl:comment

xsl:element

xsl:processing-instruction

xsl:text

xsl:sequence

xsl:value-of

XSLT 1.0

XSLT 1.0

XSLT 1.0

XSLT 1.0

XSLT 1.0

XSLT 1.0

XSLT 2.0

XSLT 1.0

Processor-related elements:
Compatibility and application messages

xsl:fallback

xsl:message

XSLT 1.0

XSLT 1.0

Testing and indexing
In source documents

xsl:analyze-string

xsl:key

xsl:matching-substring

xsl:non-matching-substring

XSLT 2.0

XSLT 1.0

XSLT 2.0

XSLT 2.0

Namespace nodes:
Create or alias

xsl:namespace

xsl:namespace-alias

XSLT 2.0

XSLT 1.0

Schema data types:
Import

xsl:import-schema

XSLT 2.0

Table: XSLT 2.0 elements by functional group.

   

  

back to top