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 29504 - [XSLT30] Example in https://www.w3.org/TR/xslt-30/#func-map-for-each uses map:for-each-entry function
Summary: [XSLT30] Example in https://www.w3.org/TR/xslt-30/#func-map-for-each uses map...
Status: CLOSED DUPLICATE of bug 29269
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (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: 2016-02-25 11:37 UTC by Martin Honnen
Modified: 2016-10-06 18:42 UTC (History)
0 users

See Also:


Attachments

Description Martin Honnen 2016-02-25 11:37:58 UTC
The section https://www.w3.org/TR/xslt-30/#func-map-for-each defines a function named "map:for-each" and gives an example, that example is

------------------sample code -------

let
  $dimensions := map{'height': 3, 'width': 4, 'depth': 5};
return
  <box>{
     map:for-each-entry($dimensions, function ($k, $v) { attribute {$k} {$v} })
  }</box>

------------ end of sample code -----

which uses "map:for-each-entry" as the function name instead of "map:for-each". So the example should be

------------------sample code -------

let
  $dimensions := map{'height': 3, 'width': 4, 'depth': 5};
return
  <box>{
     map:for-each($dimensions, function ($k, $v) { attribute {$k} {$v} })
  }</box>

------------ end of sample code -----
Comment 1 Michael Kay 2016-02-25 12:01:55 UTC
Thanks for reporting it. This is a duplicate of bug #29269.

*** This bug has been marked as a duplicate of bug 29269 ***