Which version of XSLT/XPATH? I dont think you can compare dates with > in
XPATH1.0
You can't nest xsl:sort inside xsl:if.
xsl:if can only be nested under <xsl:apply-templates> and <xsl:for-each>
I think if you represent dates in the standard format for example:
2005-05-07T19:30:00 instead of 05/07/2005 you can simply sort dates
without having to extract the substrings of year, month and day with reference
to the code snippet you have provided.
like this:
<xsl:apply-templates>
<xsl:sort select="date"/>
</xsl:apply-templates>
____________________________________________________________________________________
Sponsored Link
Mortgage rates near 39yr lows.
$510k for $1,698/mo. Calculate new payment!
www.LowerMyBills.com/lre
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--