[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Using position predicate in XPath string within selectSingleNode DOM method


Subject: Re: [xsl] Using position predicate in XPath string within selectSingleNode DOM method
From: Emmanouil Batsis <Emmanouil.Batsis@xxxxxxxxxxx>
Date: Wed, 24 Nov 2004 13:41:07 +0200

David Carlisle wrote:

Curisously I get it work when writing ITEM[1] (but not for ITEM[.=1])

ITEM[1] selects the first ITEM
ITEM[.=1] selects all ITEMs with string value numerically equal to 1.



In sarissa i implement the selectSingleNode by appending '[1]' to the xpath expression then calling selectNodes. Maybe MSXML's implementation has the same flaw ;-)



Current Thread
Keywords