Subject: Re: call-template with parameterized name
From: Vidar Ramdal <vramdal@xxxxxxxxx>
Date: Thu, 7 Oct 2004 16:28:37 +0200
|
On Thu, 7 Oct 2004 15:23:00 +0100, David Carlisle <davidc@xxxxxxxxx> wrote:
>
>
> change
> <xsl:call-template name="$templateName"/>
>
> to <apply-templates select="$templateName"/>
>
> and change
>
> <xsl:template name="foo">
>
> to
> <xsl:template match="templatename[.='foo']">
Thanks, this was almost too obvious :)
--
Vidar S. Ramdal <vramdal@xxxxxxxxx>
"In the beginning, the universe was created. This made a lot of people
very angry, and has been widely regarded as a bad idea." -- Douglas
Adams
|