xsl-list
[Top] [All Lists]

RE: How to implement "if else if else" condition in XSLT

2004-02-09 13:05:02
-----Original Message-----
From: Kotes Mogili

Hi,

Is there a way to implement the following condition in XSLt..

if(){
...
}else if{
      ....
}else{
      ...
}

Thanks for any suggestion ..


Yes there is:

<xsl:choose>
  <xsl:when test="...">
    ...
  </xsl:when>
  <xsl:when test="...">
    ...
  </xsl:when>
  <xsl:otherwise>
    ...
  </xsl:otherwise>
</xsl:choose>

However: Are you absolutely sure you need *this*?


Cheers,

Andreas

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list