[Bug 9734] default initial template

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

dnovatchev@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dnovatchev@gmail.com

--- Comment #6 from dnovatchev@gmail.com 2012-06-29 02:50:29 UTC ---
I would like to propose a slightly different solution that eliminates
completely the problems of naming the initial template (in case it is named),
or of conflict resolution.

We modify the syntax of <xsl:template> as follows:

 1. A new attribute of <xsl:template is introduced:
"initial-template="{yes/no}". 

 2. The "initial-template" attribute is mutually exclusive with any of the
"match" or "name" attributes. It is a static error if an <xsl:template>
instruction has the "initial-template" attribute specified and also has a
"match" or a "name" (or both) attribute specified.

 3. It is a static error if a stylesheet module contains more than one template
having an "initial-template" attribute with value "yes".

 4. If a template with  initial-template="yes" is residing in a stylesheet
module that isn't the primary stylesheet module in the transformation, its
initial template is ignored.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Friday, 29 June 2012 04:05:50 UTC