[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: call-template by default
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|