The <xsl:choose> element defines a choice among a number of alternatives. It behaves like a switch statement in procedural languages.
<xsl:choose>
<xsl:when test="[whatever to test1]"></xsl:when>
<xsl:when test="[whatever to test2]"></xsl:when>
<xsl:otherwise></xsl:otherwise> [optional]
</xsl:choose> None.
None.
Instruction, appears with a template. It contains one or more <xsl:when> elements, and, optionally, a final <xsl:otherwise> element.
XSLT, section 9.2.
Supported.
© 2005–2020 Mozilla and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/XSLT/choose