W3C home > Mailing lists > Public > public-qt-comments@w3.org > November 2014

[Bug 27300] [XSLT30] Simplified package visibility of components, esp. xsl:function

From: <bugzilla@jessica.w3.org>
Date: Fri, 21 Nov 2014 10:14:25 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-27300-523-oH2TFckPRX@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=27300

Michael Kay <mike@saxonica.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #1 from Michael Kay <mike@saxonica.com> ---
Reviewed by the WG on 2014-11-20.

The reason that we make named templates and modes public, but not other
components, is for backwards compatibility. The purpose of "simplified
packages" is to allow an XSLT 2.0 stylesheet to be used unchanged as a package.
To allow the XSLT 2.0 styles of invocation using a named initial mode or a
named initial template, the modes and templates must be public. XSLT 2.0 does
not allow invocation using (for example) named functions) so we treat the
functions as private.

We should perhaps emphasize that when the simplified syntax is used, you are
restricted to a single-package application. The implicit package cannot use any
other packages because use-package cannot appear as a child of xsl:stylesheet,
and it cannot be used by any other package because it has no package name.

We are not proposing to make any technical change in response to this comment,
though we will look at whether is scope for clearer explanations.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Friday, 21 November 2014 10:14:29 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:59 UTC