This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 27681 - [XP31] Unary lookup operator equivalence
Summary: [XP31] Unary lookup operator equivalence
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XPath 3.1 (show other bugs)
Version: Candidate Recommendation
Hardware: PC All
: P2 minor
Target Milestone: ---
Assignee: Jonathan Robie
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-21 00:35 UTC by Michael Kay
Modified: 2015-07-14 21:54 UTC (History)
1 user (show)

See Also:


Attachments

Description Michael Kay 2014-12-21 00:35:26 UTC
Section 3.11.3.1 states:

If the context item is an array, the UnaryLookup operator is equivalent to the following expression:

for $k in 1 to array:size(.)
return .($k)

This statement follows the conditional "If the KeySpecifier is not a wildcard ("*")", and I guess it is intended to be subject to that conditional, though this is ambiguous. In fact the equivalence holds only when the KeySpecifier is a wildcard; and is restated later in the section for that case.
Comment 1 Jonathan Robie 2015-07-14 21:54:09 UTC
Fixed en passant as a result of fixing 28901.