Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    xsl:when

    Syntax

    <xsl:when test="boolean-expression">
        ...
    </xsl:when>

    Description

    Within an <xsl:choose> instruction, specify a set of processing instructions that are executed when the expression specified in the test attribute evaluates to TRUE. The XSLT processor processes only the instructions contained in the first <xsl:when> element whose test attribute evaluates to TRUE. If none of the <xsl:when> elements’ test attributes evaluate to TRUE, the content of the <xsl:otherwise> element, if there is one, is processed.

    Attributes

    test
    —

    Specifies a Boolean expression.

    Usage Examples

    Published: 2013-03-05