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 22595 - [xslt 3.0] xsl:stylesheet/@version is still mandatory
Summary: [xslt 3.0] xsl:stylesheet/@version is still mandatory
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (show other bugs)
Version: Working 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: 2013-07-08 16:20 UTC by Michael Kay
Modified: 2014-05-15 14:00 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2013-07-08 16:20:41 UTC
The xsl:stylesheet/@version attribute should only be mandatory when the stylesheet is a top level element; it's redundant when the xsl:stylesheet element is a child of xsl:package.
Comment 1 Michael Kay 2013-07-31 18:30:12 UTC
I have taken the liberty of fixing this as follows, subject to WG review:

<p>The <code>version</code> attribute indicates the version of XSLT that the stylesheet module requires. The attribute is <rfc2119>required</rfc2119>, unless the <elcode>xsl:stylesheet</elcode> element is a child of an <elcode>xsl:package</elcode> element, in which case it is optional: the default is then taken from the parent <elcode>xsl:package</elcode> element.</p>
Comment 2 Michael Kay 2013-08-12 14:18:27 UTC
The change was accepted by the WG and has been applied.