Re: [xsl] sorting date prob

Subject: Re: [xsl] sorting date prob
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Thu, 11 Apr 2002 12:26:27 +0200
You want to sort the results descending for days but ascending for time?
Really strange, but that's your problem ;-)

If you have

<Information>
    <Date>02/04/02</Date> #yymmdd
    <Time>12:22:09</Time> #hhmmss
</Information>

you must do something like:


<xsl:apply-templates select="Information">
    <xsl:sort select="Date" order="descending"/>
    <xsl:sort select="Time" order="ascending"/>
</xsl:apply-templates>

Regards,

Joerg

--

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
joerg.heinicke@xxxxxxxxx
www.virbus.de


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread