xsl-list
[Top] [All Lists]

Re: call-template with parameterized name

2004-10-07 07:28:37
On Thu, 7 Oct 2004 15:23:00 +0100, David Carlisle 
<davidc(_at_)nag(_dot_)co(_dot_)uk> 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(_at_)gmail(_dot_)com>
"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


<Prev in Thread] Current Thread [Next in Thread>