xsl:when

Syntax

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

Description

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

test—Specifies a Boolean expression.

See Example: Configuring Dual Routing Engines, Example: Preventing Import of the Full Routing Table, and Example: Automatically Configuring Logical Interfaces and IP Addresses.

Related Topics