From: Patrick B. <pat...@jo...> - 2012-09-26 13:38:59
|
Hi everyone, I'm trying to order a data set by the length of child node's string value. My order by is currently having no effect on the order of objects in flwor. Does anyone see anything wrong with this? for $trans-unit in $trans-units let $source-text := normalize-space($trans-unit/xlf:source/text()) let $target-text := normalize-space($trans-unit/xlf:target/text()) let $source-length := string-length($source-text) order by $source-length descending (: also tried: order by util:log-system-out($trans-unit/xlf:source/text()) descending :) return ... Thanks! -- Patrick Bosek Jorsek Software Cell (585) 820 9634 Office (877) 492 2960 Jorsek.com |