|
next
|
 Subject: XSL date minus 2 weeks Author: Nabil Durand Date: 20 Dec 2006 11:28 AM
|
Hi,
I want to compare two dates. I would like the second date to have 2 weeks subtracted from it. So in essence date1 < 'date2-14days'
How do I subtract 2 weeks from a date field?
Here is the xpath I used to get me this far.....
-------------------------------
[number(translate(substring-before(@PEP_x0020_Status_x0020__x002d__x,'T'),'-','')) < number(translate(substring-before(@CC,'T'),'-',''))]
Here is the XSL created
-------------------------------
<xsl:if xmlns:xsl="http://www.w3.org/1999/XSL/Transform" test="number(translate(substring-before(@PEP_x0020_Status_x0020__x002d__x,'T'),'-',''))< number(translate(substring-before(@CC,'T'),'-',''))">padding: 100%; background-color: #FFFF00;</xsl:if></xsl:attribute>
what next?
|
|
|