This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Boolean test in xsl:if
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] Boolean test in xsl:if
- From: Mark Swardstrom <mark at nimble dot com>
- Date: Wed, 2 May 2001 23:02:02 -0700
- Reply-To: xsl-list at lists dot mulberrytech dot com
How could this come back True:
<xsl:if test="$var1 < $var2">
And this be False?
<xsl:if test="$var1 - $var2 < 0">
I'm using Resin. Also happens with <xsl:choose>
Actually, when I tried <xsl:if test="21 < 20"> this was also True. Am I
missing something? It does not happen on Xalan, but before I chalked it up
to a bug (that I can at least work around, evidently), I thought I'd see if
I'm missing something obvious.
Thanks,
- Mark
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list