[Bug 28453] [XSLT30] (editorial) [xsl:]default-mode, declared-modes and the initial mode

https://www.w3.org/Bugs/Public/show_bug.cgi?id=28453

--- Comment #1 from Michael Kay <mike@saxonica.com> ---
I agree. Proposal:

(A). Change the definition of initial mode to say:

[Definition: The initial mode, if specified, must either be the unnamed mode, 
> or a mode that is explicitly named either in an xsl:mode declaration, or in 
> the mode attribute of an xsl:template declaration within the stylesheet, or in the *default-mode* attribute of an xsl:stylesheet or xsl:package element.

(B) I propose adding to 3.5.4.1:

The declared-modes attribute of xsl:package determines whether or not modes
that are referenced within the package must be explicitly declared. If the
value is yes (the default), then it is an error to use a mode name in the mode
attribute of xsl:template or xsl:apply-templates, or in the [xsl]:default-mode
attribute of any element, or to use the unnamed mode explicitly or implicitly
in those contexts, unless the package contains an explicit xsl:mode declaration
for that mode.

(C) I propose changing the sentence "It is not necessary for the referenced
mode to be 
> explicitly declared in an xsl:mode declaration." to a note, adding the qualifier "unless the attribute declared-modes="yes" is present".

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Thursday, 30 April 2015 08:36:20 UTC