[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: xsl:call-template name="$tempname"
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|