xsl:when

Used within an xsl:choose element to indicate one of a number of choices.

Content: sequence-constructor
Permitted parent elements: xsl:choose

Attributes

test

expression

Match pattern. If this is the first xsl:when element within the enclosing xsl:choose whose test condition matches the current element, the content of the xsl:when element is expanded, otherwise it is ignored.

Links to W3C specifications

XSLT 2.0 Specification

XSLT 3.0 Specification

See also

xsl:choose

xsl:otherwise

xsl:if