[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] xsl:initial-template


Subject: Re: [xsl] xsl:initial-template
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Thu, 1 May 2014 14:20:03 -0000

On 1 May 2014, at 04:40, Max Toro <maxtoroq@xxxxxxxxx> wrote:

> If I understand correctly, in XSLT 3.0 you can initiate a
> transformation at a named template, but you are not required to
> provide a name because it uses "xsl:initial-template" as default. This
> replaces the convention of using "main" or any other kind of
> convention. Is this correct?

Yes, that's correct.

I think this was intended to simplify API design, but to be honest, I can't
see it helping much, especially as we've added an awful lot of flexibility to
the ways in which a stylesheet can now be invoked (e.g. by invoking functions
directly).

Michael Kay
Saxonica


Current Thread
Keywords