[Bug 30175] New: [XP31] Examples of "?" operator for maps and arrays

https://www.w3.org/Bugs/Public/show_bug.cgi?id=30175

            Bug ID: 30175
           Summary: [XP31] Examples of "?" operator for maps and arrays
           Product: XPath / XQuery / XSLT
           Version: Recommendation
          Hardware: PC
                OS: All
            Status: NEW
          Severity: editorial
          Priority: P2
         Component: XPath 3.1
          Assignee: jonathan.robie@gmail.com
          Reporter: andrew_coleman@uk.ibm.com
        QA Contact: public-qt-comments@w3.org
  Target Milestone: ---

Comment from Martin Honnen <martin.honnen@gmx.de> on public-qt-comments@w3.org 
See https://lists.w3.org/Archives/Public/public-qt-comments/2017Jul/0038.html

The XPath 3.1 spec for the "?" lookup distinguishes between 
https://www.w3.org/TR/xpath-31/#id-unary-lookup and 
https://www.w3.org/TR/xpath-31/#id-postfix-lookup. The section about the 
unary lookup in the examples section gives some example which for me 
seem to examples of an unary lookup, but also three examples

- $m?*
- [1, 2, 5, 7]?*
- [[1, 2, 3], [4, 5, 6]]?*

which, for me, seem to be examples of the postfix lookup, as in

   $m?*

we have a variable reference followed by "?*", in

   [1, 2, 5, 7]?*

we have a 
https://www.w3.org/TR/xpath-31/#prod-xpath31-SquareArrayConstructor 
followed by "?*" and in the last example

   [[1, 2, 3], [4, 5, 6]]?*

there is a further square array constructor followed by "?*".

All these seem to originate from the grammar production

   [49] PostfixExpr ::= PrimaryExpr (Predicate | ArgumentList | Lookup)*        

Have I misread the grammar production rules or are the examples in the 
wrong section?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Monday, 4 September 2017 15:09:40 UTC