This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: how to test a condtion in XSL file ??



>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 &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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]