This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
variable
- To: <XSL-List at lists dot mulberrytech dot com>
- Subject: [xsl] variable
- From: "Eric Schenfeld" <ESchenfeld at liscnet dot org>
- Date: Wed, 01 Aug 2001 16:49:33 -0400
- Reply-To: xsl-list at lists dot mulberrytech dot com
is there a way to change the value of a parameter or a variable after it's been declared? like with an if statement?
CODE:
<xsl:param name="color">123456</xsl:param>
<xsl:if test="ancestor::top_bar">
<xsl:param name="color">ffffff</xsl:param>
</xsl:if>
<xsl:if test="ancestor::bottom_bar">
<xsl:param name="color">000000</xsl:param>
</xsl:if>
It doesn't seem to work with variables or parameters. is there some other way?
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list