RE: [xsl] how to test a condtion in XSL file ??

Subject: RE: [xsl] how to test a condtion in XSL file ??
From: Don Bruey <dbruey@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 9 Feb 2001 13:12:19 -0500
>From: anand awasthi [mailto:anand-awasthi@xxxxxxx]

>now i want to write a  rule in XSL which is someting like following :
>if ((sessionstartuptime > 56) && ( PageTime <= 50)) || (Transaction Time ==
>78)

>then Dispaly X 
>else Display Y

Try

<xsl:choose>
  <xsl:when test="(SessionStartupTime &gt; 56 and PageTime &lt;= 50) or
TransactionTime = 78">
    X
  </xsl:when>
  <xsl:otherwise>
    Y
  </xsl:otherwise>
</xsl:choose>


Don


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


Current Thread