Provides multiple conditional testing in conjunction with the <xsl:choose>
and <xsl:otherwise>
elements.
<xsl:when test = boolean-Expression> </xsl:when>
<xsl:when>
is instantiated and placed in the output. Node-sets are cast to a Boolean True if they contain at least one node.Number of occurrences | Unlimited |
Parent elements | xsl:choose |
Child elements | xsl:apply-templates, xsl:attribute, xsl:call-template, xsl:choose, xsl:comment, xsl:copy, xsl:copy-of, xsl:element, xsl:for-each, xsl:if, xsl:processing-instruction, xsl:value-of, xsl:variable, output elements |
Describes one of the alternatives to be chosen by the <xsl:choose>
element. The default alternative is described by the <xsl:otherwise>
element.
For simple conditional testing, use the <xsl:if>
element.
See the example in <xsl:choose> Element.
Defining Conditional Templates Using <xsl:if> and <xsl:choose> | <xsl:otherwise> Element | <xsl:if> Element