<?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>24621</bug_id>
          
          <creation_ts>2014-02-11 17:10:01 +0000</creation_ts>
          <short_desc>[xslt 3.0] Incorrect Notes re dynamic use of current-group() and current-grouping-key()</short_desc>
          <delta_ts>2014-02-16 19:37:44 +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>XSLT 3.0</component>
          <version>Last Call drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Kay">mike</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          <cc>cmsmcq</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>100300</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-02-11 17:10:01 +0000</bug_when>
    <thetext>Under both current-group() and current-grouping-key() (14.2.1/14.2.2) we have the note

The function is classified as focus-dependentFO30, which means that it cannot be used with higher-order functions. Specifically, current-group#0 will not be recognized as a function literal.

This Note is no longer true. The rules were changed so that focus-dependent functions can be invoked dynamically. The closure of the function captures the context value at the point the function item was created. We should either delete the Note, or replace it by one that reflects the current specification.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100532</commentid>
    <comment_count>1</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2014-02-13 13:47:37 +0000</bug_when>
    <thetext>We discussed this in Prague and agreed with the analysis.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100717</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-02-16 19:27:38 +0000</bug_when>
    <thetext>The Notes have been updated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100718</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-02-16 19:37:44 +0000</bug_when>
    <thetext>The analysis in the original posting is not quite correct; as a result of our decision on bug #23631, any dynamic function call that invokes current-group() or current-grouping-key() directly or indirectly behaves as if the relevant context values are absent, that is, it raises a dynamic error.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>