Provides multiple conditional testing in conjunction with the <xsl:choose>
and <xsl:when>
elements.
<xsl:otherwise> </xsl:otherwise>
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:text, xsl:value-of, xsl:variable, output elements |
Provides a default condition for <xsl:choose>
. Other alternatives are indicated by <xsl:when>
elements.
For simple conditional testing, use the <xsl:if>
element.
See the example for <xsl:choose>.
Defining Conditional Templates Using <xsl:if> and <xsl:choose> | <xsl:when> Element