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 29480 - [xslt30] Focus for xsl:copy/@use-attribute-sets
Summary: [xslt30] Focus for xsl:copy/@use-attribute-sets
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (show other bugs)
Version: Candidate Recommendation
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: 2016-02-18 23:27 UTC by Michael Kay
Modified: 2017-01-30 10:56 UTC (History)
1 user (show)

See Also:


Attachments

Description Michael Kay 2016-02-18 23:27:48 UTC
The specification of xsl:copy does not say what the focus is for the evaluation of any used attribute sets. In the case where the instruction has a select attribute, it could reasonably be either the context of the xsl:copy itself, or the same as the focus used for evaluating the sequence constructor. I suggest the latter.
Comment 1 Abel Braaksma 2016-02-20 17:27:43 UTC
> I suggest the latter.
I agree, I don't see any reasonable explanation to do it the other way around, esp. w.r.t. situations where there is no context item and @select changes that.
Comment 2 Michael Kay 2016-03-10 18:26:41 UTC
The proposal was accepted.
Comment 3 Michael Kay 2017-01-30 10:56:55 UTC
This bug was marked as closed and fixed, but it appears that the changes were not applied to the specification. I am belatedly making the changes now.

For the record:

Revisiting it, the bug report stated:

The specification of xsl:copy does not say what the focus is ...

But this was not actually true: the 2015 CR said in ยง10.2.4

The xsl:attribute instructions are evaluated using the same focus as is used for evaluating the element that is the parent of the [xsl:]use-attribute-sets attribute forming the initial input to the algorithm.

and the effect of our decision is to change this to

The xsl:attribute instructions are evaluated using the same focus as is used for evaluating the *sequence constructor contained by the* element that is the parent of the [xsl:]use-attribute-sets attribute forming the initial input to the algorithm.