W3C home > Mailing lists > Public > public-qt-comments@w3.org > August 2006

[Bug 3380] [XPath] //45 returns what?

From: <bugzilla@wiggum.w3.org>
Date: Tue, 01 Aug 2006 17:06:11 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1G7xh5-0005Zx-Gl@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=3380





------- Comment #4 from davidc@nag.co.uk  2006-08-01 17:06 -------
(In reply to comment #3)

> Using the unabbreviated step syntax (/descendant-or-self::node()/45), the
> result is exactly the same: 1 hit, value "45".
> 
> Is this a helpful data point?
> 

Unless there is only one node in the document, then I think it's clear from the
spec that you should get multiple copies of 45. duplication-removal done by /
is identity (that is the is operator) not value equality (the eq operator) so
doesn't apply to atomic values. (In any case the duplication removal clause is
explictly only applied if the sequence consists only of nodes (xquery section
3.2 item 1)
Received on Tuesday, 1 August 2006 17:06:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:44 GMT