<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>30175</bug_id>
          
          <creation_ts>2017-09-04 15:09:33 +0000</creation_ts>
          <short_desc>[XP31] Examples of &quot;?&quot; operator for maps and arrays</short_desc>
          <delta_ts>2017-12-13 09:06:29 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XPath 3.1</component>
          <version>Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>editorial</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrew Coleman">andrew_coleman</reporter>
          <assigned_to name="Jonathan Robie">jonathan.robie</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>128872</commentid>
    <comment_count>0</comment_count>
    <who name="Andrew Coleman">andrew_coleman</who>
    <bug_when>2017-09-04 15:09:33 +0000</bug_when>
    <thetext>Comment from Martin Honnen &lt;martin.honnen@gmx.de&gt; 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 &quot;?&quot; 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 &quot;?*&quot;, in

   [1, 2, 5, 7]?*

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

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

there is a further square array constructor followed by &quot;?*&quot;.

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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128873</commentid>
    <comment_count>1</comment_count>
    <who name="Andrew Coleman">andrew_coleman</who>
    <bug_when>2017-09-04 15:12:02 +0000</bug_when>
    <thetext>The Working Group agreed that this is an editorial bug and the proposed fix should be added to the XPath 3.1 errata document.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>129010</commentid>
    <comment_count>2</comment_count>
    <who name="Andrew Coleman">andrew_coleman</who>
    <bug_when>2017-12-13 09:06:29 +0000</bug_when>
    <thetext>This has been resolved in the errata document:
https://www.w3.org/XML/2017/qt-errata/xpath-31-errata.html#E4</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>