It is a bit unfortunate that you cannot start using this pattern in
XSLT 2.0, in Saxon you get: "Namespace prefix xsl refers to a reserved
namespace".
--
Max Toro
On Thu, May 1, 2014 at 1:41 PM, Max Toro <maxtoroq(_at_)gmail(_dot_)com> wrote:
Thanks Abel, Andrew and Michael.
I think it's a good thing the caller does not need to know how to run
a stylesheet, it can just ask the processor "run this thing".
Specially useful when there's no input document, or the input comes
from functions like doc(), collection() or expath file/http-client.
--
Max Toro
On Thu, May 1, 2014 at 10:20 AM, Michael Kay <mike(_at_)saxonica(_dot_)com>
wrote:
On 1 May 2014, at 04:40, Max Toro <maxtoroq(_at_)gmail(_dot_)com> 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
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--