[Bug 24545] Syntax for xsl:mode misses initial attribute

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

--- Comment #3 from Michael Kay <mike@saxonica.com> ---
The implications of removing the "initial" attribute of xsl:mode appear to be
as follows:

A. Remove the attribute from the element syntax summary and the schema for
XSLT.

B. Remove it from various examples: 2.9, 6.7.1.

C. In 6.6.1, in the definition of "mode definition", change "in a stylesheet"
to "in a package".

D. In the following paragraph, change:

If a stylesheet does not contain a declaration of the unnamed mode, a
declaration is implied equivalent to an xsl:mode element with the single
attribute initial="yes". Similarly, if there is a mode that is named in an
xsl:template or xsl:apply-templates element, or in the [xsl:]default-mode
attribute of a containing element, and the stylesheet does not contain a
declaration of that mode, then a declaration is implied comprising an xsl:mode
element with a name attribute plus the attribute initial="yes".

to

If a package does not contain a declaration of the unnamed mode, a declaration
is implied equivalent to an xsl:mode element with no attributes. Similarly, if
there is a mode that is named in an xsl:template or xsl:apply-templates
element, or in the [xsl:]default-mode attribute of a containing element, and
the stylesheet does not contain a declaration of that mode, then a declaration
is implied comprising an xsl:mode element with a name attribute equal to that
mode name, plus the attribute visibility="public".

E. In the description of error XTSE0542, rather than applying to nodes with
initial="no", this now applies to any named mode specifying
visibility="private".

F. Ensure there is no entry for "initial" in the table in 6.6.1 (there is none
in the Public WD, but such a row has been added in an attempt to fix o separate
problem.

G. In the same table, entry for visibility, change "A mode is not eligible to
be used as the initial mode if its visibility is private." to "A named mode is
not eligible to be used as the initial mode if its visibility is private.".

H. Change the static error 

[ERR XTSE0548] It is a static error if there is both (a) a mode definition in
the stylesheet that has the effective attribute values streamable="yes" and
initial="yes", and (b) a global variable in the stylesheet whose initializing
expression is not motionless with respect to its context item, as defined in 19
Streamability.

to a dynamic error:

[ERR XTDE0548] It is a dynamic error if the stylesheeet is evaluated with an
initial mode that has the effective attribute values streamable="yes", if there
is a global variable in the stylesheet whose initializing expression is not
motionless with respect to its context item, as defined in 19 Streamability.

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

Received on Monday, 17 February 2014 17:20:52 UTC