Re: [xsl] call-template by default

Subject: Re: [xsl] call-template by default
From: Eric Smith <Eric.Smith@xxxxxxxxxxxx>
Date: Thu, 22 Nov 2001 15:40:36 +0100
According to David Carlisle on Wed, Nov 21, 2001 at 11:39:09PM +0000:
> Guessing what you might mean, no.
> How would you expect it to work, where in the template would you want
> the call to be placed at the beginning, end?
> What effect are you trying to achieve? There is probably some other way.

My passion for brevity it seems is counter-productive, so given
your prompting I will expand.

I am developing my own typesetting and rendering language (aren't
we all?) and I want to have xml source document control to add
arbitrary attributes to the output xsl:fo tree.

Now I am doing it a couple of easy ways just now viz.
. create a special tag in the source called add_format,
then I go <add_format color"red">This is now in red</add_format>
. create a named template and call it from an existing element
<header font-size="133%">This is (almost) one-third larger than
The in the template:  match="header", I call the named template,.

But I want each defined template, i.e. those for
head, para, section, whatever to automatically call the named
template which would then examine the current element for
recognised formatting attributes and then apply these to the

(your last example re calling an external template would probably
do, but at the undesirable expense of having two xsl files to
worry about and looks quite expensive as well.  Also I misled you
by saying that the named template should be called for each
element - that should read each defined template instead)

thank you a lot for your help and tutoring :)

Eric Smith - currently using xalan and fop on linux

 XSL-List info and archive:

Current Thread