You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Isabelle Lussier <il...@logisil.com> on 2000/01/20 16:48:43 UTC
Help - Template/Variable
He's there a way to pass a result from a template to an another? Maybe it's simple but I'm new with XSL/XSLT
<xsl:variable name="Var"> <xsl:number value="0"> </xsl:variable> <!-- global variable -->
<xsl:template match="project">
<xsl:apply-templates select="activity"/>
<xsl:value-of select="$Var"/> <!-- it's the global variable but I would like to use the Var = 6. How can I put
this local result in the global variable?????? A solution???? I hope -->
<xsl:template/>
<xsl:template match="activity">
<xsl:variable name="Var" select="2+4"/> <!-- local variable -->
<xsl:template/>