xsl:otherwise


xsl: otherwise

The <xsl:otherwise> element is used within an <xsl:choose> instruction to indicate the action that should be taken when none of the <xsl:when> conditions is satisfied.

Changes in 2.0

None.

Format

 <xsl:otherwise>   <!-- Content: sequence-constructor --> </xsl:otherwise> 

Position

<xsl:otherwise> can appear only as a child of an <xsl:choose> element. If it is present at all, it must be the last child of the <xsl:choose> element, and it must not appear more than once.

Attributes

None.

Content

A sequence constructor.

Effect

The sequence constructor of the <xsl:otherwise> element is evaluated if (and only if) none of the <xsl:when> elements in the containing <xsl:choose> element evaluates to true.

Usage and Examples

See <xsl:choose> on page 236.

See Also

  • <xsl:choose> on page 236

  • <xsl:when> on page 487




XSLT 2.0 Programmer's Reference
NetBeansв„ў IDE Field Guide: Developing Desktop, Web, Enterprise, and Mobile Applications (2nd Edition)
ISBN: 764569090
EAN: 2147483647
Year: 2003
Pages: 324

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net