"Remi COCULA" <remi.cocula@wanadoo.fr> wrote in message
news:bs6v9t$qfq$1@news-reader5.wanadoo.fr...[color=blue]
> When using xsl:call-template it seems that we can't use a parameter as the
> name of the template to call.[/color]
This cannot be done with xsl:call-template, because the Spec requires the
value of its "select" attribute to be a QName, which, among other things by
definition, must be statically known (at compile time).
What you want to achieve is done by using the general XSLT design pattern of
"generic templates" or "template references".
For more information read the first article on the home page of FXSL -- the
functional programming library for XSLT.
See also my presentation "Functional programming in XSLT using the FXSL
library" delivered at this year's "Extreme Markup Languages" conference:
http://www.idealliance.org/papers/ex...ovatchev01.pdf
Dimitre Novatchev.
FXSL developer, XML Insider,
http://fxsl.sourceforge.net/ -- the home of FXSL
Resume:
http://fxsl.sf.net/DNovatchev/Resume/Res.html