1

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

4

1 回答 1

1

也许您可以将一些XSLT 日期/时间函数应用于您的 IDAppendedDate 而不是简单的字符串值。

于 2012-11-29T09:26:52.937 回答