Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

xsl:when

Syntax

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.