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 28048 - map:merge examples missing the word "map"?
Summary: map:merge examples missing the word "map"?
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 3.1 (show other bugs)
Version: Candidate Recommendation
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-18 13:56 UTC by Priscilla Walmsley
Modified: 2016-12-16 19:55 UTC (History)
0 users

See Also:


Attachments

Description Priscilla Walmsley 2015-02-18 13:56:52 UTC
The map:merge description has the following 2 examples:

map:merge(($week, {7:"Unbekannt"}))
map:merge(($week, {6:"Sonnabend"}))

Should the word "map" not appear before the left curly brace, as in:

map:merge(($week, map{7:"Unbekannt"}))
map:merge(($week, map{6:"Sonnabend"}))


...or is there a shorthand syntax I missed?
Comment 1 Michael Kay 2015-02-18 14:08:11 UTC
Thanks, yes, will fix.

You can be excused for missing the shorthand syntax, it was only in the spec for a few weeks some time in 2013.
Comment 2 Michael Kay 2015-02-19 18:06:29 UTC
I have now fixed this editorial error in both the F+O 3.1 and the XSLT 3.0 specifications.