|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] [no subject]
<xsl:call-template name="$test"/>
XSLt like C and most other compiled programming languages doesn;t allow
functions (templates) to be called based on a dynamically constructed
name.
you can do
<xsl:choose>
<xsl:when test="$test='a'"><xsl:call-template name="a"/></xsl:when>
<xsl:when test="$test='b'"><xsl:call-template name="b"/></xsl:when>
...
or often better don't have multiple templates, just have one, and pass
in teh variable as a parameter to the template so the template can take
different actions depending on its value.
David
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
|

Cart


![[no subject]](/images/get_stylus.gif)





