Reputation: 13610
I am trying to implement an XSLT date comparison but doesn't seem to work, here is my code:
<xsl:variable name="CreatedDate" select="@createDate"/>
<xsl:variable name="IDAppendedDate" select="2012-01-01" />
<b>date: <xsl:value-of select="$CreatedDate"/></b>
<xsl:if test="$CreatedDate > $IDAppendedDate">
<h2> mooooooooooooo </h2>
</xsl:if>
thanks
Upvotes: 1
Views: 446
Reputation: 382
Maybe you could apply some XSLT date/time function to your IDAppendedDate instead of simple string value.
Upvotes: 1