Bug 29480 (Focus for xsl:copy/@use-attribute-sets)

This bug

https://www.w3.org/Bugs/Public/show_bug.cgi?id=29480

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.

Revisiting it, the bug report stated:

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.
But this is not actually true: the 2015 CR said in ยง10.2.4

The xsl:attribute <http://www.w3.org/TR/2015/CR-xslt-30-20151119/#element-attribute> instructions are evaluated using the same focus <http://www.w3.org/TR/2015/CR-xslt-30-20151119/#dt-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 on 29480 is to change this to

The xsl:attribute <http://www.w3.org/TR/2015/CR-xslt-30-20151119/#element-attribute> instructions are evaluated using the same focus <http://www.w3.org/TR/2015/CR-xslt-30-20151119/#dt-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.

Michael Kay
Saxonica

Received on Monday, 30 January 2017 10:55:59 UTC