| Subject: call-template dynamically From: "Yasser El-Zein" <xsl_list@xxxxxxxxxxx> Date: Fri, 23 Jun 2000 11:33:56 EDT | 
this xsl:
<xsl:variable name="var-attr">
	<xsl:choose test="1">attr_1</xsl:choose>
	<xsl:otherwise>attr_2</xsl:otherwise>
</xsl:variable>
<tag><xsl:attribute name="{$var-attr}"/></tag>produces: <tag attr_1=""></tag>
while the following xsl:
<xsl:variable name="var-tmplt">
	<xsl:choose test="1">tmplt_1</xsl:choose>
	<xsl:otherwise>tmplt_2</xsl:otherwise>
</xsl:variable>
<xsl:call-template name="{$var-tmplt}"/>will produce (using xalan):
XSL Error: Could not find template named: {$var-tmplt}________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
| Current Thread | 
|---|
| 
 | 
| <- Previous | Index | Next -> | 
|---|---|---|
| Generating PDF as landscape, SoftLiban MANOUK Ser | Thread | RE: call-template dynamically, Kay Michael | 
| RE: format the date, Kay Michael | Date | anchors - links on the same *.xml p, Robert Koberg | 
| Month |