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 27624 - [xslt 3.0] Rules for use-attribute-sets need to mention packages
Summary: [xslt 3.0] Rules for use-attribute-sets need to mention packages
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (show other bugs)
Version: Last Call drafts
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: 2014-12-16 09:11 UTC by Michael Kay
Modified: 2015-10-29 09:50 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2014-12-16 09:11:38 UTC
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't trivial because if we have

a-set use="X" attributes="Y", "Z"
a-set use="P" attributes="R", "S"

then the result of the merge is

a-set use="X" attributes="Y", "Z" use="P" attributes="R", "S"

where the position of the "use" constructs relative to the "attributes" 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 "instructions" in order.
Comment 1 Michael Kay 2015-01-08 09:41:30 UTC
A proposal to resolve this bug is at

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

(member-only link)
Comment 2 Michael Kay 2015-01-08 18:29:39 UTC
The proposal was discussed and accepted.