469,623 Members | 1,304 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,623 developers. It's quick & easy.

XSL Conditional Formatting to Table-Cell property

Hi, I'm a complete noob to XSLT. My goal is to apply conditional formatting to the table-cell only 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'),'-','')) &lt;= 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>
-----------------------------------------
Dec 18 '06 #1
0 2364

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Bradley | last post: by
reply views Thread by Paul T. Rong | last post: by
2 posts views Thread by jodyblau | last post: by
reply views Thread by GGerard | last post: by
2 posts views Thread by Filips Benoit | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.