RE: Xpath expression: foo[-bar]

Subject: RE: Xpath expression: foo[-bar]
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Fri, 3 Dec 1999 09:19:27 -0000
> In the XPath expression, how should foo[-bar] be parsed and 
> implemented?
> 
> Would it be the equivalent of:
>     foo[boolean(-number(./bar))]
> 
No, it means

 foo[position()=-number(./bar)]

which will be an empty set unless the string-value of the first child bar
element is a negative number.

Mike Kay


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


Current Thread