Subject: Re: [xsl] Comparison operator From: "David N Bertoni/Cambridge/IBM" <david_n_bertoni@xxxxxxxxxx> Date: Fri, 22 Mar 2002 08:37:28 -0800 |
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@xxxxxxxxxxxx | | | Sent by: | | | owner-xsl-list@xxxxxxxxxxx| | | rrytech.com | | | | | | | | | 03/21/2002 09:37 PM | | | Please respond to xsl-list| | | | |---------+-------------------------------------> >----------------------------------------------------------------------------------------------------------| | | | To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx | | 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
AW: [xsl] regarding variables and a, Fries, Markus, fiscu | Thread | RE: [xsl] Comparison operator, Oleg Tkachenko |
Re: Re: [xsl] regarding variables a, Laura Jenkins | Date | Re: [xsl] variable definition reuse, Laura Jenkins |
Month |