31 December, 2009
0 Comments
0 categories
You cannot call a xslt template like:
<xsl:variable name="templateName" select="test"></xsl:variable>
<xsl:call-template name="$templateName">
<xsl:template name="test"> </xsl:template>
The clossed you can get to calling a xslt template dynamically is to use the <xsl:if or <xsl:choose based on a variable:
<xsl:if test="$parameter1=$templateName"> <xsl:call-template name="test">
</xsl:if>
Tags: XML - XSLT - XPath