- From: <bugzilla@jessica.w3.org>
- Date: Thu, 25 Feb 2016 11:37:58 +0000
- To: public-qt-comments@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=29504
Bug ID: 29504
Summary: [XSLT30] Example in
https://www.w3.org/TR/xslt-30/#func-map-for-each uses
map:for-each-entry function
Product: XPath / XQuery / XSLT
Version: Candidate Recommendation
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P2
Component: XSLT 3.0
Assignee: mike@saxonica.com
Reporter: martin.honnen@gmx.de
QA Contact: public-qt-comments@w3.org
Target Milestone: ---
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 -----
--
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Thursday, 25 February 2016 11:38:00 UTC