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 28191 - Incorrect focus definition for xsl:merge-action element
Summary: Incorrect focus definition for xsl:merge-action element
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (show other bugs)
Version: Working drafts
Hardware: PC Windows NT
: 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: 2015-03-11 10:43 UTC by Vitaliy
Modified: 2015-10-29 09:50 UTC (History)
0 users

See Also:


Attachments

Description Vitaliy 2015-03-11 10:43:00 UTC
Specification defines how to setup focus for evaluation of the sequence constructor in the xsl:merge-action element:

"The context item is the first item in the current group, that is current-group()[1]"

https://www.w3.org/XML/Group/qtspecs/specifications/xslt-30/html/Overview-diff.html#element-merge-action

It looks like fn:current-group() function is used together with xsl:for-each-group instruction, but not with xsl:merge. 
I believe that fn:current-merge-group() must be used instead.
Comment 1 Michael Kay 2015-03-12 18:01:09 UTC
The WG today accepted the correction and it has been applied to the spec.