<?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>26558</bug_id>
          
          <creation_ts>2014-08-12 14:42:25 +0000</creation_ts>
          <short_desc>Constructing maps: XQDY0136 → XPTY0004</short_desc>
          <delta_ts>2015-07-06 09:03:19 +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>XQuery 3.1</component>
          <version>Working drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://www.w3.org/Bugs/Public/show_bug.cgi?id=26585</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Christian Gruen">christian.gruen</reporter>
          <assigned_to name="Jonathan Robie">jonathan.robie</assigned_to>
          <cc>mike</cc>
          
          <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>110085</commentid>
    <comment_count>0</comment_count>
    <who name="Christian Gruen">christian.gruen</who>
    <bug_when>2014-08-12 14:42:25 +0000</bug_when>
    <thetext>Currently, XQDY0136 is raised if a map key expression is not a single value:

  map { (&apos;a&apos;,&apos;b&apos;): () }

I would suggest to stick with the existing error code XPTY0004, similar to other expressions that atomize their input. Examples:

  element { (&apos;a&apos;,&apos;b&apos;) }  { () }
  [1, 2] + 3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111282</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2014-09-09 16:12:33 +0000</bug_when>
    <thetext>That sounds good to me.  Unless someone objects, I will make this change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111284</commentid>
    <comment_count>2</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2014-09-09 16:33:40 +0000</bug_when>
    <thetext>The Working Group agreed to this change.

I will also delete the error code err:XQDY0136</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112464</commentid>
    <comment_count>3</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2014-09-30 13:58:20 +0000</bug_when>
    <thetext>Fix is now checked in to the XML, and will appear in the next HTML build.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121780</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-07-06 09:03:19 +0000</bug_when>
    <thetext>Confirmed that this is fixed in the current draft.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>