Visit Mozilla.org

XSLT:when

From MDC

XSLT/XPath Reference: XSLT elements, EXSLT functions, XPath functions, XPath axes

Contents

The <xsl:when> element always appears within an <xsl:choose> element, acting like a case statement.

[edit] Syntax

<xsl:when test=EXPRESSION>
	TEMPLATE
</xsl:when>

[edit] Required Attributes

test
Specifies a boolean expression to be evaluated. If true, the contents of the element are processed; if false, they are ignored.

[edit] Optional Attributes

None.

[edit] Type

Subinstruction, always appears within an <xsl:choose> element.

[edit] Defined

XSLT, section 9.2.

[edit] Gecko support

Supported.