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 24621 - [xslt 3.0] Incorrect Notes re dynamic use of current-group() and current-grouping-key()
Summary: [xslt 3.0] Incorrect Notes re dynamic use of current-group() and current-grou...
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (show other bugs)
Version: Last Call drafts
Hardware: PC All
: 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: 2014-02-11 17:10 UTC by Michael Kay
Modified: 2014-02-16 19:37 UTC (History)
1 user (show)

See Also:


Attachments

Description Michael Kay 2014-02-11 17:10:01 UTC
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.
Comment 1 C. M. Sperberg-McQueen 2014-02-13 13:47:37 UTC
We discussed this in Prague and agreed with the analysis.
Comment 2 Michael Kay 2014-02-16 19:27:38 UTC
The Notes have been updated.
Comment 3 Michael Kay 2014-02-16 19:37:44 UTC
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.