[xsl] parameter from a child template?

Subject: [xsl] parameter from a child template?
From: longjohn <longjohn@xxxxxxxxxxxx>
Date: Fri, 26 Apr 2002 15:56:08 +0200
How to pass a parameter from a CHILD template to another template?

Example:
<xsl:template match="/" >
... <xsl:apply-templates select="/root/TEMP1"/>
</xsl:template>


<xsl:template match="TEMP1" >
...
   <xsl:variable name="var" value="TEM"/>
       <xsl:call-template name="TEMP2"/>
</xsl:template>

<xsl:template match="TEMP2" >
<xsl:value-of select="$var"/>   <!-- $var not found !!!!!! -->
.....


Thanks!



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread