Subject: [xsl] A newbie question in XSL - Using variables From: prasannap@xxxxxx Date: Tue, 25 Jan 2005 18:28:52 -0800 |
Hello; I have a simple question that Im trying to solve: <xsl-if test="some condition"> <font color="red"> Hello 1</font> </xsl-if> <xsl-if test="some other condition"> <font color="blue"> Hello 1</font> </xsl-if> Now, is there a way to obtain the above criteria something like, <xsl-if test="some condition"> $somevariable = "red"; </xsl-if> <xsl-if test="some other condition"> $somevariable = "blue"; </xsl-if> <font color=$somevariable> Hello 1</font> I understand that I cannot use <xml:param> and <xml:variable> as they are constants. Please let me know a solution to this trivial problem. Thanks, Prasanna
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Modify the XSL output fr, omprakash . v | Thread | Re: [xsl] A newbie question in XSL , G. Ken Holman |
RE: [xsl] generic sort based on att, Chaitanya Desai | Date | Re: [xsl] A newbie question in XSL , G. Ken Holman |
Month |