|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Sorting date in xsl
If you convert the date into a string of numbers: Tue, 29 May 2001 22:37:32 to 20010529223732 That creates a sortable value that should work. Just make sure that you always have 4 digits for the year and 2 for the month, day, hours, minutes and seconds - basically always the same number of characters for each time representation. Otherwise you will not get a proper sort, ie. dec 29 1980 would be a larger number then may 29 2001 (19,801,229 to 2,001,529 vs. 19,801,229 to 20,010,529). -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Gitanjali Sent: Saturday, June 09, 2001 6:39 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Sorting date in xsl Can any body tell me how to sort in xsl. Do I need to conver the following format to number and then do sorting.. Thanks Narsu <root> <date>Tue, 29 May 2001 22:37:32 -0400</date> <date>Tue, 25 May 2001 22:37:32 -0400</date> <date>Tue, 21 May 2001 22:37:32 -0400</date> <date>Tue, 23 May 2001 22:37:32 -0400</date> </root> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








