Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Default actions in XSLT 2.1

From: "Andrew Welch" <andrew.j.welch@--------->
To:
Date: 11/3/2008 4:54:00 PM
2008/11/3 Michael Kay <mike@xxxxxxxxxxxx>:
>>
>> In 2.0 you also have the "initial template" parameter so you
>> can start the transform at any named template, which is much
>> more useful and kind of makes the initial mode parameter redundant.
>>
>
> Yes, if I have a stylesheet with multiple entry points then I tend to use
> the "initial template" mechanism rather than "initial mode" to distinguish
> them. In principle I've always felt "initial mode" should be a good idea
> when you want to run one phase of a multi-phase stylesheet, but I've never
> had occasion to put this idea into practice.

It's exactly for that kind of transform that I've used initial
template - you have your seperate named templates for each step: maybe
"front page", "index", "chapters" whatever, and then you have an "all"
template which just calls each of them in turn.

That way you only run the lengthy "all" transform when you do the
final run, keeping transform times short during development of each of
the steps.

Even if there was a compelling use for initial mode, it wouldn't take
too much effort to wrap each mode in a named template.

Maybe someone on the list has found a good use for it?


-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent