[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Date-sorting

Subject: Re: Date-sorting
From: "cutlass" <cutlass@xxxxxxxxxxx>
Date: Wed, 30 Jan 2002 12:59:15 -0000
xml xsl date sorting
there are plenty of date examples within the archives of this list

or

look at some of the date libraries for inspiration for date formatting

www.exslt.org

or 

http://xsltsl.sourceforge.net/

gl, jim fuller


----- Original Message ----- 
From: "Asim Tozlu" <Tozlu@xxxxxxxxxxxxxxxxxx>
To: "A XSL (E-Mail)" <XSL-List@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, January 30, 2002 12:55 PM
Subject:  Date-sorting


> Hi,
> 
> i have this XML:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <tdObsResults>
> <OBX ID="{550D-4965-8E7A-C2F01B8CC79" State="1"
> ObservationDT="2001-11-08T08:00:00" OBS="a"/>
> <OBX ID="{8A3F7D3E-550D-4965-C2F01B8CC79" State="1"
> ObservationDT="2001-12-08T08:00:00" OBS="b"/>
> <OBX ID="{8A3F7D3E-550D-8E7A-C2F01B8CC79" State="1"
> ObservationDT="2001-11-11T08:00:00" OBS="c"/>
> <OBX ID="{8A3F7D3E-550D-C2F01B8CC79" State="1"
> ObservationDT="2001-12-09T08:00:00" OBS="d"/>
> <OBX ID="{8A3F7D3E-550D-4965-8E7A-C2F01B8CC79" State="1"
> ObservationDT="2001-10-08T08:00:00" OBS="e"/>
> <OBX ID="{8A3F7D3E-550D-4965-C2F01B8CC79" State="1"
> ObservationDT="2001-09-08T08:00:00" OBS="f"/>
> <OBX ID="{8A3F7D3E-550D-4965-8E7A" State="1"
> ObservationDT="2001-11-08T18:00:00" OBS="g"/>
> <OBX ID="{550D-4965-8E7A-C2F01B8CC79" State="1"
> ObservationDT="2001-11-08T10:00:00" OBS="h"/>
> </tdObsResults>
> 
> But i want this sort Result (Sort-Tag is ObservationDT):
> 
> 08.09.2001 f
> 08.10.2001 e
> 08.11.2001 a
> 08.11.2001 h
> 08.11.2001 g
> 11.11.2001 c
> 08.12.2001 b
> 09.12.2001 d
> 
> 
> How can i sort this XML?
> 
> Thanks
> 
> with friendly regards
> 
> Asim
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.