|
next
|
 Subject: Conditional Formatting to Table-Cell property Author: Nabil Durand Date: 18 Dec 2006 06:03 PM
|
Hi, I'm a complete noob to XSLT. My goal is to apply conditional formatting so when the date = today, the entire table-cell background will highlight green (#00FF00) and not just the font itself. So far, I can only get the Font to change color/become highlighted. Any help please?
---------------------------------
<td><span>
<xsl:attribute name="style">
<xsl:if test="number(translate(substring-before(@CC,'T'),'-','')) <= number(translate(substring-before($Today,'T'),'-',''))">
color: #000000; border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px; background-color: #00FF00;
</xsl:if>
</xsl:attribute><xsl:value-of select="ddwrt:FormatDate(string(@CC),1033, 5)"/></span></td>
-----------------------------------------
|
|
|