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

RE: sorting by date

Subject: RE: sorting by date
From: "Oleg Tkachenko" <ost@xxxxxxxxxxxxxxxxx>
Date: Tue, 24 Jul 2001 19:12:02 +0200
html sort by date
Hello Mike !

> The spec isn't completely unambiguous on the point,
Do you mean the following ?
"The sort must be stable: in the sorted list of nodes, any sub list that has
sort keys that all compare equal must be in document order."
(http://www.w3.org/TR/xslt.html#sorting)

>but the general
> consensus, I think, is that order=descending should give the reverse of
> order=ascending, including for duplicates.
>

Ok, but Saxon and Xalan produce

		<Item id="8">
                <Date>17042000</Date>
            </Item><Item id="3">
                <Date>22121999</Date>
            </Item><Item id="2">
                <Date>07071999</Date>
            </Item><Item id="9">
                <Date>11011999</Date>
            </Item><Item id="1">
                <Date>02111998</Date>
            </Item><Item id="4">
                <Date>02111998</Date>
            </Item><Item id="5">
                <Date>02111998</Date>
            </Item><Item id="6">
                <Date>02111998</Date>
            </Item><Item id="7">
                <Date>02111998</Date>
            </Item><Item id="10">
                <Date>10071998</Date>
            </Item>

All Item with the same sort key value are in document order.
So, who is on the right road ?

---
Oleg Tkachenko
Multiconn International


 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.