This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Comparison operator
- From: "David N Bertoni/Cambridge/IBM" <david_n_bertoni at us dot ibm dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Fri, 22 Mar 2002 08:37:28 -0800
- Subject: Re: [xsl] Comparison operator
- Reply-to: xsl-list at lists dot mulberrytech dot com
Sounds like a processor bug. The string '0' should be automatically
converted to the number 0, although is there some reason you're not just
using a number?
By the way, the "./" is unnecessary here. This is exactly the same thing:
"mytag[. > 0]"
Dave
|---------+------------------------------------->
| | Jean.Ossmann@zas.admin.ch |
| | Sent by: |
| | owner-xsl-list@lists.mulbe|
| | rrytech.com |
| | |
| | |
| | 03/21/2002 09:37 PM |
| | Please respond to xsl-list|
| | |
|---------+------------------------------------->
>----------------------------------------------------------------------------------------------------------|
| |
| To: XSL-List@lists.mulberrytech.com |
| cc: (bcc: David N Bertoni/Cambridge/IBM) |
| Subject: [xsl] Comparison operator |
>----------------------------------------------------------------------------------------------------------|
Hi, I am a little bit lost and couldn't find in a reasonnable time in the
references why does the following test return true with <mytag> -1
</mytag>
<xsl:if test="./mytag[. > '0']">
Thanks in advance
J. Ossmann
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list