[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: xsl:initial-template

Subject: Re: xsl:initial-template
From: "Max Toro maxtoroq@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 1 May 2014 18:40:10 -0000
Re:  xsl:initial-template
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@xxxxxxxxxxxx> wrote:
> 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


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.