This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
parameter from a child template?
- From: longjohn <longjohn at katamail dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Fri, 26 Apr 2002 15:56:08 +0200
- Subject: [xsl] parameter from a child template?
- Reply-to: xsl-list at lists dot mulberrytech dot com
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