[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] xsl:call-template name="$tempname"
Subject: Re: [xsl] xsl:call-template name="$tempname"
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Sat, 25 May 2002 00:38:05 +0200
|
Hello Ming,
It's not possible. One thing you can do:
<xsl:when test="$tempname = 'foo'">
<xsl:call-template name="foo"/>
</xsl:when>
<xsl:when test="$tempname = 'bar'">
<xsl:call-template name="bar"/>
</xsl:when>
The other thing is to create your stylesheet by a transformation.
Joerg
Ming wrote:
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
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- [xsl] xslt generator
- Ming - Fri, 24 May 2002 12:31:18 -0600
- E L - Fri, 24 May 2002 12:01:57 -0700
- Ming - Fri, 24 May 2002 16:31:53 -0600
- Joerg Heinicke - Sat, 25 May 2002 00:38:05 +0200 <=
- Ming - Fri, 24 May 2002 16:51:44 -0600
- David Carlisle - Sat, 25 May 2002 17:57:33 +0100
|
|