Re: [xsl] What do you call a stylesheet that doesn't require an input XML?

Subject: Re: [xsl] What do you call a stylesheet that doesn't require an input XML?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 27 Oct 2005 14:54:16 +0100
> "Standalone stylesheet", "Pull stylesheet" maybe...

whatever word you use, don't use push or pull as it's not really related
to the push/pull processing model. It's just a slightly different way of
setting up the initial context. Many stylesheets will work in either
form either having a named template to set them up or for systems where
that is less convenient, or you just don't know how to document on all
possible xslt systems how to specify a template you can have a template
matching / that calls the named template (so you can also initialise by
running the stylesheet on any convenient source, eg itself)

I sort of wish that xslt2 had an attribute that said that a named
template was the _expected_ start point, so that you didn't need
to know processor specific details of how to specify this, although
really it is no different from knowing the processor specific details of
how to pass in an initial input file, or for that matter the stylesheet
itself, so perhaps it just feels different at the moment.


David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Current Thread