Is this possible <call-template name="$param"/>?
Hi!
Let's say we have this simple XSLT
################## start XSLT ############
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="myTemplate"/>
<xsl:template match="/">
<xsl:call-template name="$myTemplate"/>
</xsl:template>
<xsl:template name="hello">
<xsl:text>Hello</xsl:text>
</xsl:template>
<xsl:template name="world">
<xsl:text>World</xsl:text>
</xsl:template>
</xsl:stylesheet>
######### end XSLT ####
I want to be able to specify which template to use by giving the stylesheet directly its name.
I probably can do it some other way, if you have any ideas... Please respond.
Thanks,
Rushman
p.s. BTW, I'm still using XSLT 1.0 (Old Testament). I haven't converted yet to the New Testament (XSLT 2.0).
Dijkstra's law on Programming and Inertia:
If you don't know what your program is supposed to do, don't try to write it.
__________________
Dijkstra's law on Programming and Inertia:
If you don't know what your program is supposed to do, don't try to write it.
|