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

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 UTC