<?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>28050</bug_id>
          
          <creation_ts>2015-02-18 15:52:01 +0000</creation_ts>
          <short_desc>map:for-each examples missing parenthesis</short_desc>
          <delta_ts>2016-12-16 19:55:40 +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>Functions and Operators 3.1</component>
          <version>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>trivial</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Priscilla Walmsley">pwalmsley</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          
          
          <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>118011</commentid>
    <comment_count>0</comment_count>
    <who name="Priscilla Walmsley">pwalmsley</who>
    <bug_when>2015-02-18 15:52:01 +0000</bug_when>
    <thetext>The description of map:for-each has the following 2 examples:

distinct-values(map:for-each-entry(map{1:&quot;yes&quot;, 2:&quot;no&quot;}, function($k, $v){$v})

and 

map:merge(map:for-each(map{&quot;a&quot;:1, &quot;b&quot;:2}, function($k, $v){map:entry($k, $v+1)})


Both of these should have an extra closing parenthesis ) on the end. Also, the second one is a link to the map:merge definition, which looks a bit strange.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118039</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-02-19 18:17:31 +0000</bug_when>
    <thetext>Thanks, I&apos;ve fixed these editorial errors in both the F+O 3.1 and the XSLT 3.0 specifications.

Unfortunately there&apos;s no easy way of fixing the markup: the stylesheets for the F+O spec insert the links to function definitions moronically.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>