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 29448 - [XT30] accept-007 tries to override a final component but does not expect an error
Summary: [XT30] accept-007 tries to override a final component but does not expect an ...
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 Test Suite (show other bugs)
Version: Last Call drafts
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
Depends on:
Reported: 2016-02-11 13:04 UTC by Abel Braaksma
Modified: 2016-11-05 11:02 UTC (History)
0 users

See Also:


Description Abel Braaksma 2016-02-11 13:04:41 UTC
This test uses accept-A.xsl which has :

<xsl:expose component="variable" names="p:*" visibility="final"/>

since there are no more specific xsl:expose declarations, this makes variable p:v2 final. In the using package we have:

      <xsl:variable name="p:v2" select="23"/>

this is not allowed and should throw XTSE3060
Comment 1 Abel Braaksma 2016-02-16 16:45:31 UTC
We discussed this bug report during the F2F in XML Prague 2016 and agreed that there's an issue here: the xsl:override tries to override a final variable.

Michael Kay requested to take an action to revise this test.
Comment 2 Abel Braaksma 2016-11-05 11:01:46 UTC
Fixed (must raise error XTSE3060) and added a variant to showcase the original intent without error (accept-007a).