Path: blob/main/files/en-us/web/xslt/element/choose/index.md
6580 views
------{{ XsltRef() }}
The <xsl:choose> element defines a choice among a number of alternatives. It behaves like a switch statement in procedural languages.
Syntax
Required Attributes
None.
Optional Attributes
None.
Type
Instruction, appears with a template. It contains one or more <xsl:when> elements, and, optionally, a final <xsl:otherwise> element.
Defined
XSLT, section 9.2.
Gecko support
Supported.