Re: [xsl] xsl:when, xsl:otherwise question?

Subject: Re: [xsl] xsl:when, xsl:otherwise question?
From: Kevin Rodgers <kevin.rodgers@xxxxxxx>
Date: Thu, 3 Feb 2005 12:51:46 -0700
Nick Roberts writes:
> Is it possible to implement an else-if condition using the above.
> 
> All literature i've read only seems to use xsl:when and xsl:otherwise... no 
> "xsl:else-when" condition?

Isn't this:

<xsl:choose>
  <xsl:when test="foo">FOO</xsl:when>
  <xsl:when test="bar">BAR</xsl:when>
  <xsl:otherwise>BAZ</xsl:otherwise>
</xsl:choose>

equivalent to:

  if (foo) then FOO
  else if (bar) then BAR
  else BAZ

-- 
Kevin Rodgers

Current Thread