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

Re: Invoking XSLT 2.0

Subject: Re: Invoking XSLT 2.0
From: "Rashmi Rubdi" <rashmi.sub@xxxxxxxxx>
Date: Thu, 26 Apr 2007 16:46:06 -0400
Re:  Invoking XSLT 2.0
Abel,

Thank you for the additional info.

On 4/26/07, Abel Braaksma <abel.online@xxxxxxxxx> wrote:
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).

In the above case I think the named template would be equivalent to the main() method, because a main() method can be called from the command line. I am trying to shift my thinking slowly to declarative programming but sometimes I try to relate with what I already know.

I see your point about processing non-XML 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).

The above is good to know, thank you.


Cheers,
-- Abel Braaksma

-Rashmi


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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-2007 All Rights Reserved.