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 30398 - Quite a few tests that involve packages expect that the initial named template is available, while it is private
Summary: Quite a few tests that involve packages expect that the initial named templat...
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 Test Suite (show other bugs)
Version: Recommendation
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Abel Braaksma
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-19 17:15 UTC by Abel Braaksma
Modified: 2019-02-25 13:35 UTC (History)
0 users

See Also:


Attachments

Description Abel Braaksma 2019-02-19 17:15:42 UTC
The spec states:

[ERR XTDE0040] It is a dynamic error if the invocation of the stylesheet specifies a template name that does not match the expanded QName of a named template defined in the stylesheet, whose visibility is public or final.


However, quite a few tests (accept-xxx, expose-xxx, packge-version-xxx, package-xxx) have the initial named template set to an implicitly private named template and should therefor fail with XTDE0040.

I'm currently in the process of going over these tests and fixing them in reference to this bug report. In some cases I will create a variant of the test that indeed expects XTDE0040.

I haven't checked a similar situation for initial mode or initial function, but if I do, any changes will refer to this bug too.
Comment 1 Abel Braaksma 2019-02-23 02:53:15 UTC
Related spec bug #30401
Comment 2 Abel Braaksma 2019-02-25 13:35:46 UTC
Tests have been updated: where applicable, the template 'main', or xsl:intial-template (or occasionally, a mode) has been given public visibility.

Whether or not we want to keep this behavior can be discussed in the referred to spec bug. I'll close this one off as fixed ;).