xsl-list
[Top] [All Lists]

<xsl:param> or <xsl:variable> question

2003-08-26 08:15:35
Hi,
I want to set the font-color according depending on
the value of attribute of the element. For example I
woule like to set the font-color to red if the element
has an attribute 
style="on"
or font-color to black if element has an attribute 
style="off"

I have been trying to define a parameter using
xsl:param and then using it but cant get it right. Is
there a way to set the value of parameter using some
<xsl:if> or <xsl:when> constructs.
Your help is really appreciated.
Thanks in advance.
Abhi


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>