This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: sorting date prob


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@virbus.de
www.virbus.de


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]