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 26558 - Constructing maps: XQDY0136 → XPTY0004
Summary: Constructing maps: XQDY0136 → XPTY0004
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3.1 (show other bugs)
Version: Working drafts
Hardware: PC Windows NT
: P2 normal
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-08-12 14:42 UTC by Christian Gruen
Modified: 2015-07-06 09:03 UTC (History)
1 user (show)

See Also:


Attachments

Description Christian Gruen 2014-08-12 14:42:25 UTC
Currently, XQDY0136 is raised if a map key expression is not a single value:

  map { ('a','b'): () }

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

  element { ('a','b') }  { () }
  [1, 2] + 3
Comment 1 Jonathan Robie 2014-09-09 16:12:33 UTC
That sounds good to me.  Unless someone objects, I will make this change.
Comment 2 Jonathan Robie 2014-09-09 16:33:40 UTC
The Working Group agreed to this change.

I will also delete the error code err:XQDY0136
Comment 3 Jonathan Robie 2014-09-30 13:58:20 UTC
Fix is now checked in to the XML, and will appear in the next HTML build.
Comment 4 Michael Kay 2015-07-06 09:03:19 UTC
Confirmed that this is fixed in the current draft.