<?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>28885</bug_id>
          
          <creation_ts>2015-07-02 14:49:33 +0000</creation_ts>
          <short_desc>Minor editorial issues</short_desc>
          <delta_ts>2016-12-16 19:55:35 +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>Working drafts</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>
          <cc>benito</cc>
    
    <cc>hrennau</cc>
    
    <cc>jonathan.robie</cc>
          
          <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>121584</commentid>
    <comment_count>0</comment_count>
    <who name="Priscilla Walmsley">pwalmsley</who>
    <bug_when>2015-07-02 14:49:33 +0000</bug_when>
    <thetext>Some minor editorial issues:

1. eg:index-of-node - the first XQuery implementation has the order of the arguments to fn:filter reversed.

2. eg:index-of-node - the XSLT and first XQuery implementations have the order of the arguments to fn:for-each-pair reversed.

3. eg:distinct-nodes-stable - the XQuery implementation doesn&apos;t prefix the function name with eg:

4. eg:distinct-nodes-stable - both implementations have an unresolved reference to $seq.  Should be $arg.

5. eg:distinct-nodes-stable - both implementations have the order of the arguments to fn:fold-left reversed.

6. eg:lowest - the XQuery implementation has eg:highest as the function name instead of eg:lowest

7. The Rules for op:subtract-dayTimeDuration-from-time mention the function add-dayTimeDuration-to-time but it is not a link - maybe because it is not prefixed with fn:?

8. The examples of fn:replace don&apos;t use the fn: prefix, which is inconsistent with the examples of other functions.

9. The collection function summary says &quot;indentified&quot; instead of &quot;identified&quot;.

10. The signature of map:for-each is:

map:for-each(	$input	as map(*),
$action	as function($key as xs:anyAtomicType, $value as item()*)) as item()*

&quot;$key as&quot; and &quot;$value as&quot; should be removed, as in:

map:for-each(	$input	as map(*),
$action	as function(xs:anyAtomicType, item()*)) as item()*</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122107</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2015-07-15 18:55:27 +0000</bug_when>
    <thetext>The Working Group is asking Mike to apply these changes, reopening this bug if there are any he disagrees with.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122186</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-07-17 16:27:17 +0000</bug_when>
    <thetext>1. eg:index-of-node - the first XQuery implementation has the order of the arguments to fn:filter reversed.

DONE.

2. eg:index-of-node - the XSLT and first XQuery implementations have the order of the arguments to fn:for-each-pair reversed.

DONE.

3. eg:distinct-nodes-stable - the XQuery implementation doesn&apos;t prefix the function name with eg:

DONE

4. eg:distinct-nodes-stable - both implementations have an unresolved reference to $seq.  Should be $arg.

DONE

5. eg:distinct-nodes-stable - both implementations have the order of the arguments to fn:fold-left reversed.

DONE

6. eg:lowest - the XQuery implementation has eg:highest as the function name instead of eg:lowest

DONE. Also in these functions the arguments to fold-left were in the old order. And for consistency I changed eg:highest and eg:lowest to take the sequence as the first argument and the function as the second.

7. The Rules for op:subtract-dayTimeDuration-from-time mention the function add-dayTimeDuration-to-time but it is not a link - maybe because it is not prefixed with fn:?

Should be prefixed with op:. DONE.

8. The examples of fn:replace don&apos;t use the fn: prefix, which is inconsistent with the examples of other functions.

DONE.

9. The collection function summary says &quot;indentified&quot; instead of &quot;identified&quot;.

ALREADY DONE.

10. The signature of map:for-each is:

map:for-each(	$input	as map(*),
$action	as function($key as xs:anyAtomicType, $value as item()*)) as item()*

&quot;$key as&quot; and &quot;$value as&quot; should be removed, as in:

map:for-each(	$input	as map(*),
$action	as function(xs:anyAtomicType, item()*)) as item()*

DONE
[reply] [−] Comment 1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122194</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-07-17 20:38:56 +0000</bug_when>
    <thetext>*** Bug 28963 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126478</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-05-23 11:48:27 +0000</bug_when>
    <thetext>*** Bug 29626 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>