XSLT日期比较不起作用

XSLT日期比较不起作用,xslt,date-comparison,Xslt,Date Comparison,我试图实现XSLT日期比较,但似乎不起作用,下面是我的代码: <xsl:variable name="CreatedDate" select="@createDate"/> <xsl:variable name="IDAppendedDate" select="2012-01-01" /> <b>date: <xsl:value-of select="$CreatedDate"/>

我试图实现XSLT日期比较,但似乎不起作用,下面是我的代码:

<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>

日期:
呜呜呜呜

谢谢

也许你可以对你的IDAppendedDate应用一些,而不是简单的字符串值。

也许你可以对你的IDAppendedDate应用一些,而不是简单的字符串值。

虽然这可以从理论上回答这个问题,但在这里包括答案的基本部分,并提供链接以供参考。虽然这在理论上可以回答问题,但在此处包含答案的基本部分,并提供链接以供参考。