[xquery-talk] Implementation practices regarding ordering

G. Ken Holman gkholman at CraneSoftwrights.com
Mon Mar 16 08:30:49 PST 2009

In my post earlier to Howard regarding his requirement for preserving 
document order, I talked about the difference between:

   for $each in library/book
       order by $each/@pubYear descending
         return $each

... and ...

declare ordering ordered;
   for $each in library/book
       stable order by $each/@pubYear descending
         return $each

... where the second is portable across all implementations and the 
first only when the implementation-defined values for ordering in 
both the separate default mode and FLWOR expression are implemented as ordered.

I'm starting my 5-day hands-on XQuery/XSLT class this morning in 
Prague in advance of the http://XMLPrague.cz conference, and I would 
like to tell students about implementation practices.  I'm running 
the same class in the Los Angeles area June 8-12.

Which of the publicly-announced implementations of XQuery do not 
assume document order when using location path addresses to get nodes 
from the source node tree?

Thanks for sharing!

. . . . . . . . . . . Ken

XQuery/XSLT/XSL-FO training in Los Angeles (New dates!) 2009-06-08
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18
Video overview:  http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18
G. Ken Holman                 mailto:gkholman at CraneSoftwrights.com
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/q/
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/q/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

More information about the talk mailing list