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

RE: multiple sorting

Subject: RE: multiple sorting
From: David_Marston@xxxxxxxxx
Date: Wed, 16 Aug 2000 09:22:55 -0400
multiple key sort
Yuko Caras writes:
>Woops. Is there a problem using Xalan?  They [Jeni Tennison's
>sorting techniques] work well with saxon and xt
>but having a trouble with Xalan...

Could you be specific, and say which version of Xalan? I think
that the techniques as she presented them would work in the
latest version. One involves a union, and we had a little
trouble with unions in a recent version, but not in 1.2D01.

I'd also suggest a caution in setting up "futile" sorts,
which is a key part of the suggested techniques. The XSLT
spec is clear about how to deal with data that exists but
compares equal, but the case where the sort key doesn't
exist is shrouded in indirection. I think that the verbiage
about how the sort key is evaluated covers the techniques
presented here, but it gets right to the borderline. If the
sort key is something that can't be evaluated, then the
processor could decide not to sort and presumably raise
an error. If the processor instead presented the nodes in
their original document order, I can't find anything in
the spec to prohibit it.

There is an additional question about where null values
(like NaN in numeric sorting) are placed. One of the
techniques has nested sorts, which would be affected by
this behavior.
.................David Marston


 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.