Subject: Re: [xsl] calling a template and xsl:include From: Robert Koberg <rob@xxxxxxxxxx> Date: Wed, 22 Sep 2004 17:30:38 -0700 |
Hi all, I have 2 questions: I remember that I once saw somewhere a snippet of XSLT code about calling a template having the name in a variable, something like this:
<xsl:call-template select="$tempalteToCall"/>
<xsl:choose> <xsl:when test="$condition='choice1'"> <xsl:call-template name="choice1"/> </.. <xsl:when test="$condition='choice2"> <xsl:call-template name="choice2"/> ..etc..
As far as I know this can't be done with XSLT 1.0, but there was a work-around to do so. Any one know how to do that or where to find info about that? It would help.
The other question is about performance. I use many xsl:include and I
would like to know if this could cause some notable performance issue
on the processor?
hth, -Rob
Thanks. Bye
Francesco.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] calling a template and xsl:in, Francesco Barresi | Thread | RE: [xsl] calling a template and xs, Michael Kay |
RE: [xsl] XSL Beginner Resources [w, SANWAL, ABHISHEK (HP | Date | Re: [xsl] To Split, Pick/Select, Ob, Francesco Barresi |
Month |