<?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>29480</bug_id>
          
          <creation_ts>2016-02-18 23:27:48 +0000</creation_ts>
          <short_desc>[xslt30] Focus for xsl:copy/@use-attribute-sets</short_desc>
          <delta_ts>2017-01-30 10:56:55 +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>Candidate Recommendation</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>abel.braaksma</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>125148</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-02-18 23:27:48 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125184</commentid>
    <comment_count>1</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2016-02-20 17:27:43 +0000</bug_when>
    <thetext>&gt; I suggest the latter.
I agree, I don&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125434</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-03-10 18:26:41 +0000</bug_when>
    <thetext>The proposal was accepted.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128425</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2017-01-30 10:56:55 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>