Subject: Re: [xsl] xsl:call-template name="$tempname" From: Joerg Heinicke <joerg.heinicke@xxxxxx> Date: Sat, 25 May 2002 00:38:05 +0200 |
<xsl:when test="$tempname = 'foo'"> <xsl:call-template name="foo"/> </xsl:when> <xsl:when test="$tempname = 'bar'"> <xsl:call-template name="bar"/> </xsl:when>
Hi,
I'm trying to use a variable as the xsl:call-template' name value as:
<xsl:call-template name='$tempname'> .... </xsl:call-template>
But the compile gave me error saying that it cannot find template $tempname which means it doesn't see $tempname as a variable but a string.
Do you have any idea how I can do this?
Thanks a lot in advance.
Ming
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] xsl:call-template name="$temp, Ming | Thread | Re: [xsl] xsl:call-template name="$, Ming |
[xsl] xsl:call-template name="$temp, Ming | Date | Re: [xsl] xsl:call-template name="$, Ming |
Month |