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

Re: call-template by default

Subject: Re: call-template by default
From: Eric Smith <Eric.Smith@xxxxxxxxxxxx>
Date: Thu, 22 Nov 2001 15:40:36 +0100
david eric smith
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
like:
<header font-size="133%">This is (almost) one-third larger than
normal</header>
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
output.

(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:  http://www.mulberrytech.com/xsl/xsl-list


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-2013 All Rights Reserved.