<?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>28900</bug_id>
          
          <creation_ts>2015-07-05 20:35:02 +0000</creation_ts>
          <short_desc>[XP 3.1] Note on distinguishability of maps and arrays</short_desc>
          <delta_ts>2015-07-13 21:28:54 +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>Candidate 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>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Kay">mike</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>121607</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-07-05 20:35:02 +0000</bug_when>
    <thetext>In section 3.11.2.1 the sentence

XPath 3.1 has no operators that can distinguish a map or array from another map or array with the same values.

is repeated in two separate Notes. They should be amalgamated.

In the version of the note in 3.11.1.1 there is a typo:

In some existing implementations that support updates via proprietary extensions, if the MapValueExpr evaluates to a map or array, the associated value is a new ^ or array with the same values.

At [^] insert &quot;map&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121608</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-07-05 20:38:37 +0000</bug_when>
    <thetext>In the same section 3.11.2.1 this is a very confused sentence.

The members of a SquareArrayConstructor can be any value, separated by commas.

An array has members, a SquareArrayConstructor does not. And the things in a SquareArrayConstructor are not values, they are expressions (ExprSingle).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122000</commentid>
    <comment_count>2</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2015-07-13 21:28:14 +0000</bug_when>
    <thetext>(In reply to Michael Kay from comment #0)
&gt; In section 3.11.2.1 the sentence
&gt; 
&gt; XPath 3.1 has no operators that can distinguish a map or array from another
&gt; map or array with the same values.
&gt; 
&gt; is repeated in two separate Notes. They should be amalgamated.
&gt; 
&gt; In the version of the note in 3.11.1.1 there is a typo:
&gt; 
&gt; In some existing implementations that support updates via proprietary
&gt; extensions, if the MapValueExpr evaluates to a map or array, the associated
&gt; value is a new ^ or array with the same values.
&gt; 
&gt; At [^] insert &quot;map&quot;.

Fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122001</commentid>
    <comment_count>3</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2015-07-13 21:28:54 +0000</bug_when>
    <thetext>(In reply to Michael Kay from comment #1)
&gt; In the same section 3.11.2.1 this is a very confused sentence.
&gt; 
&gt; The members of a SquareArrayConstructor can be any value, separated by
&gt; commas.
&gt; 
&gt; An array has members, a SquareArrayConstructor does not. And the things in a
&gt; SquareArrayConstructor are not values, they are expressions (ExprSingle).

I changed this to:

A SquareArrayConstructor consists of a comma-delimited set of argument expressions. It returns an array in which each member contains the value of the corresponding argument expression.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>