This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
xsl:variable question
- From: "Long Zhao" <LZhao at firstgenetic dot net>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 19 Dec 2001 15:28:29 -0600
- Subject: [xsl] xsl:variable question
- Reply-to: xsl-list at lists dot mulberrytech dot com
hi everyone
here are two xsl files :
<xsl:template match="/">
<xsl:variable name="mode">1</xsl:variable>
......
</xsl:template>
<xsl:template name="dosomething">
<xsl:if test="$mode='1'">
.....
</xsl:if>
.....
</template>
------------------------------------
<xsl:template match="/">
<xsl:variable name="mode" select='1'/>
......
</xsl:template>
<xsl:template name="dosomething">
<xsl:if test="$mode='1'">
.....
</xsl:if>
.....
</template>
why the first one does not work, but the second one works.
am i doing anything wrong in the first xsl?
thanks
Long
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list