RE: [xsl] Comparison operator

Subject: RE: [xsl] Comparison operator
From: "Oleg Tkachenko" <olegt@xxxxxxxxxxxxx>
Date: Fri, 22 Mar 2002 20:00:14 +0200
Hello!

Or even "mytag > 0" :)

---
Oleg Tkachenko,
Multiconn International, Israel 

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of David 
> N Bertoni/Cambridge/IBM
> Sent: Friday, March 22, 2002 6:37 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: [xsl] Comparison operator
> 
> 
> 
> 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[. &gt; '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
> 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread