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 29121 - [xslt 3.0] xsl:use-package as a child of xsl:stylesheet/xsl:transform
Summary: [xslt 3.0] xsl:use-package as a child of xsl:stylesheet/xsl:transform
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: 2015-09-12 17:21 UTC by Michael Kay
Modified: 2015-10-29 12:42 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2015-09-12 17:21:48 UTC
The specification is a little ambiguous as to whether xsl:use-package is allowed as a child of xsl:stylesheet/xsl:transform (rather than only allowing it as a child of xsl:package). The WG discussed the matter and we decided that we intended to allow it.

The changes needed to clarify this appear to be:

(a) allow it in the schema for stylesheets

(b) in the element syntax summary (appendix D), list xsl:stylesheet and xsl:transform among the permitted parents of xsl:use-package

(c) in 3.7, add xsl:use-package to the list of declarations allowed as a child of xsl:stylesheet

(d) in 3.5, in the description of the "package manifest", there are only two kinds of element it can contain: xsl:expose, and declarations that can also appear in xsl:stylesheet. xsl:use-package and xsl:global-context-item should no longer be treated as if they are different.
Comment 1 Michael Kay 2015-09-14 14:06:42 UTC
These changes have been applied to the spec (as requested by the WG meeeting on 2015-09-10).