Subject: RE: [xsl] variable From: "Oleg Tkachenko" <olegt@xxxxxxxxxxxxx> Date: Thu, 2 Aug 2001 10:44:59 +0200 |
Hello Eric ! No, you can't. But what about the following: <xsl:param name="color"> <xsl:choose> <xsl:when test="ancestor::top_bar">ffffff</xsl:when> <xsl:when test="ancestor::bottom_bar">000000</xsl:when> <xsl:otherwise>123456</xsl:otherwise> </xsl:choose> </xsl:param> --- Oleg Tkachenko Multiconn International > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Eric > Schenfeld > Sent: Wednesday, August 01, 2001 10:50 PM > To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx > Subject: [xsl] variable > > > 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 > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] variable, Wendell Piez | Thread | [xsl] XSLT Server-Side Solution, dante |
[xsl] Re: how to get new position(), Dimitre Novatchev | Date | Re: [xsl] variable, Oliver Becker |
Month |