This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: how to test a condtion in XSL file ??
- To: xsl-list at lists dot mulberrytech dot com
- Subject: RE: [xsl] how to test a condtion in XSL file ??
- From: Don Bruey <dbruey at CreativeSolutions dot com>
- Date: Fri, 9 Feb 2001 13:12:19 -0500
- Reply-To: xsl-list at lists dot mulberrytech dot com
>From: anand awasthi [mailto:anand-awasthi@usa.net]
>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 > 56 and PageTime <= 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