Navigation
Supported Platforms
Related Documentation
- ACX, EX, M, MX, PTX, SRX, T Series
- XSLT Programming Instructions Overview
- xsl:choose
- xsl:for-each
- xsl:if
- xsl:otherwise
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
- Example: Automatically Configuring Logical Interfaces and IP Addresses
- Example: Configuring Dual Routing Engines
- Example: Preventing Import of the Full Routing Table
Related Documentation
- ACX, EX, M, MX, PTX, SRX, T Series
- XSLT Programming Instructions Overview
- xsl:choose
- xsl:for-each
- xsl:if
- xsl:otherwise
Published: 2013-03-05
Supported Platforms
Related Documentation
- ACX, EX, M, MX, PTX, SRX, T Series
- XSLT Programming Instructions Overview
- xsl:choose
- xsl:for-each
- xsl:if
- xsl:otherwise