Subject: Re: [xsl] xsl:call-template name="$tempname" From: Ming <myu@xxxxxxxx> Date: Fri, 24 May 2002 16:51:44 -0600 |
Thanks, I think I'll go with the first solution. Ming Joerg Heinicke wrote: > 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 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] xsl:call-template name="$, Joerg Heinicke | Thread | Re: [xsl] xsl:call-template name="$, David Carlisle |
Re: [xsl] xsl:call-template name="$, Joerg Heinicke | Date | [xsl] JAXP Saxon Extensions and Jav, Mark R. Diggory |
Month |