[xquery-talk] Recursive Sort

Jeremy Clifton j.clifton at intuiworx.com
Tue Jun 20 13:21:23 PDT 2006


On Jun 20, 2006, at 12:05 PM, David Carlisle wrote:

> declare function local:f ($e as element()) {
> element {name($e)}{
>  $e/@*,
> for $c in $e/category
>  order by $c/@name
>  return
>   local:f($c)
>  }};
>
> local:f(*)

David,

Thanks! That's exactly what I was looking for ...

Regards,
Jeremy

---
Jeremy Clifton <j.clifton at intuiworx.com>
IntuiWORX - Intuitive, Innovative Software Development
http://www.intuiworx.com
Toll Free:       1-800-267-1708
Chattanooga, TN: (423) 443-3972
Asheville, NC:   (828) 357-4123





More information about the talk mailing list