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

Re: Calling a template dynamically?

Subject: Re: Calling a template dynamically?
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Tue, 13 Nov 2001 07:47:12 -0800 (PST)
xslt template dynamically
> but this doesn't work, as it doesn't the following:
> 
> <xsl:call-template name="{$templatename}">
> 

Templates cannot be called dynamically in XSLT.

But they can be ***instantiated*** dynamically. This is the base for the generic
templates approach. 

In fact, in my recent posts I have presented XSLT implementations of some very
general functional programming functions/design patterns (e.g. foldl), which can be
used to produce a multitude of other useful functions (e.g. maximum, sum, product,
sum of products, reverse, ... etc.), depending on the functions passed to them as
parameters.

It is important to realise the benefits that a sound, systematic functional approach
gives us, especially in building libraries of standard, reusable, highly
inter-operable functions. Compared to such a systematic functional approach, any
present attempt to build a "standard XSLT (or extensions) library" or even the most
systematic book about XSLT problem solving techniques, looks more like a bag of
tricks, than something based on a fundamental, systematic approach.

Cheers,
Dimitre Novatchev.



__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com

 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.