<?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>27624</bug_id>
          
          <creation_ts>2014-12-16 09:11:38 +0000</creation_ts>
          <short_desc>[xslt 3.0] Rules for use-attribute-sets need to mention packages</short_desc>
          <delta_ts>2015-10-29 09:50:29 +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>Last Call drafts</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>
          
          
          <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>116371</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-12-16 09:11:38 +0000</bug_when>
    <thetext>The rules in section 10.2.1 for binding attribute set names appearing in an [xsl:]use-attribute-sets attribute need to be revised to mention what happens when there are multiple packages, overriding attribute sets, etc.

It would be useful to rephrase the rules to distinguish what happens statically from what happens at execution time.

Specifically:

(1) At package compile time, the use-attribute-sets attribute is tokenized and each QName must match the name of an attribute set declared in the package.

(2) I think the specification would be easier if we spoke in terms of statically merging several same-name attribute set declarations appearing within the same package into a single attribute set component. The merging isn&apos;t trivial because if we have

a-set use=&quot;X&quot; attributes=&quot;Y&quot;, &quot;Z&quot;
a-set use=&quot;P&quot; attributes=&quot;R&quot;, &quot;S&quot;

then the result of the merge is

a-set use=&quot;X&quot; attributes=&quot;Y&quot;, &quot;Z&quot; use=&quot;P&quot; attributes=&quot;R&quot;, &quot;S&quot;

where the position of the &quot;use&quot; constructs relative to the &quot;attributes&quot; constructs must be preserved.

(3) Dynamically, there are then two operations: (a) binding the attribute-set names appearing in use-attribute-sets, which follows the general component binding rules in 3.6.3.4, and (b) evaluating the attribute set component, which involves evaluating its constituent xsl:attribute and use-attribute-sets &quot;instructions&quot; in order.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116913</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-01-08 09:41:30 +0000</bug_when>
    <thetext>A proposal to resolve this bug is at

https://lists.w3.org/Archives/Member/w3c-xsl-wg/2015Jan/0001.html

(member-only link)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116924</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-01-08 18:29:39 +0000</bug_when>
    <thetext>The proposal was discussed and accepted.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>