Summary
Date comparison in graph - xml publisher
Content
Hi,
i need to create a line graph showing some field values against date.
i need to test if date value is greater than current month then line should stop displaying further.
e.g. A'cumulative line(red) should disappear after jun 17.

PFB, code snippet
<RowData>
<xsl:value-of select="xdoxslt:set_variable($_XDOCTX,'ac', 0)" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" />
<xsl:for-each-group select="current-group()" group-by="MON_YY" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="xs">
<Cell>
<xsl:variable name="dateValue" select="current-group()/ROUNDED_DATE"/>
<xsl:choose>
<xsl:when test="xs:date($dateValue) <= current-date()">
<xsl:value-of select="sum(current-group()/ACTUALS[.!='' and .!='0' and ../PROP_NAME='Actuals'])+xdoxslt:get_variable($_XDOCTX,'ac')" />
</xsl:when>
</xsl:choose>
<xsl:value-of select="xdoxslt:set_variable($_XDOCTX,'ac',sum(current-group()/ACTUALS[.!='' and .!='0' and ../PROP_NAME='Actuals'])+xdoxslt:get_variable($_XDOCTX,'ac'))" />
</Cell>
</xsl:for-each-group>
</RowData>
any solutions???????
Best Regards,
Shaikh