Subject:dynamic order by clause Author:smuks srin Date:26 Aug 2005 10:01 AM
declare variable $orderby as xs:string external;
declare variable $name as xs:string external;
for $b in //abc
where $b/name=$name
order by $b/$orderby
The orderby is dynamic name received from saxon (for example: age) used for sorting the result, unfortunately the sorting does not occur using the above syntax.