xsl:choose
Element information
Namespace: http://www.w3.org/1999/XSL/Transform
Schema document: XSLT.xsd
Type: Anonymous
Properties: Global, Qualified
Content
- Sequence [1..1]
- xsl:when [1..*]
- xsl:otherwise [0..1]
Attributes
Name | Occ | Type | Description | Notes |
---|---|---|---|---|
Any attribute | [0..*] | Namespace: ##other, Process Contents: skip | from type xsl:anyType | |
xml:space | [0..1] | Anonymous |
Used in
- Anonymous type of element xsl:comment
- Anonymous type of element xsl:for-each
- Anonymous type of element xsl:processing-instruction
- Anonymous type of element xsl:template
- Group xsl:template
- Anonymous type of element xsl:copy via reference to xsl:template
- Anonymous type of element xsl:element via reference to xsl:template
- Anonymous type of element xsl:fallback via reference to xsl:template
- Anonymous type of element xsl:if via reference to xsl:template
- Anonymous type of element xsl:message via reference to xsl:template
- Anonymous type of element xsl:otherwise via reference to xsl:template
- Anonymous type of element xsl:when via reference to xsl:template
- Type xsl:attribute-type (Element xsl:attribute)
- Type xsl:variable via reference to xsl:template (Elements xsl:param, xsl:variable, xsl:with-param)
Substitution hierarchy
- xsl:instruction
- can be substituted with xsl:char-instruction
- can be substituted with xsl:choose
- can be substituted with xsl:char-instruction
Sample instance
<xsl:choose> <xsl:when test="string">Any text, intermingled with: <xsl:top-level-element-and-char-instruction/> </xsl:when> <xsl:otherwise>Any text, intermingled with: <xsl:top-level-element-and-char-instruction/> </xsl:otherwise> </xsl:choose>