xsl-list
[Top] [All Lists]

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

2004-11-24 04:41:07
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 ;-)

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--