| Subject: RE: [xsl] Comparison operator From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx> Date: Fri, 22 Mar 2002 10:17:34 -0000 | 
> > > > <xsl:if test="./mytag[. > '0']"> > > The problem is not the operator but the fact that '0' is a string. If > you want to compare them as numbers, remove the quotes from the zero. Either the processor is non-conformant, or this advice is wrong. XSLT 1.0 always converts the arguments of the "<" operator to numbers before doing the comparison. Therefore writing 0 rather than '0' should make no difference. Michael Kay Software AG home: Michael.H.Kay@xxxxxxxxxxxx work: Michael.Kay@xxxxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread | 
|---|
| 
 | 
| <- Previous | Index | Next -> | 
|---|---|---|
| Re: [xsl] Comparison operator, Mike Brown | Thread | Re: [xsl] Comparison operator, Mike Brown | 
| [xsl] templates with optional param, robert . soesemann | Date | Re: [xsl] templates with optional p, Joerg Heinicke | 
| Month |