xsl-list
[Top] [All Lists]

Re: [xsl] Invoking XSLT 2.0

2007-04-26 05:20:26
Rashmi Rubdi wrote:

I guess invoking a standalone stylesheet on a named template within it
makes sense because a styesheet can have multiple templates.


There is no necessity for having multiple templates. My own primary reason for using "-it templatename" is that in our production environment, we never use the default input, instead some configuration file is passed on by system property, which in turn contains some catalog-style references to the sources, which are then read in with fn:unparsed-text() (we use XSLT for importing structured text, not XML, which cannot be the principal input).

Other usages are a stylesheet that does not need any input (or only some parameters), i.e., a calculation stylesheet, or the 99-bottles problem, or a stylesheet that summarizes the online traffic jams by url. Neither need have multiple primary named templates, but do require an initial template (well, "require" is too strong a word).

Cheers,
-- Abel Braaksma



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--