Skip to content

xsl:when

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

Available in XSLT 1.0 and later versions. Available in all Saxon editions.

  • 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.

See also

Comments