Used within an xsl:choose element
to indicate the default action to be taken if none of the other choices
matches. With XSLT 4.0 syntax enabled, it may
also appear within
Permitted parent elements: xsl:choose
XPath expression. Experimental: available only if XSLT 4.0 constructs are enabled. Provides an alternative way of supplying the return value; if present, the contained sequence constructor must be empty.
Available in XSLT 1.0 and later versions. Available in all Saxon editions. Available for all platforms.
Notes on the Saxon implementation
select attribute is implemented from Saxon 10, provided syntax extensions are enabled.
Provided that syntax extensions are enabled, Saxon (from 10) allows the
xsl:otherwise elements to return a value using a
in place of a contained sequence constructor.
Note that forwards-compatibility mode in previous versions of XSLT does not handle the
attribute particularly well. If an XSLT 3.0 processor encounters an
instruction with a
select attribute, and the instruction
has an effective version of
will simply be ignored, which will generally give incorrect results.