Hi folks,
I would like to know if the order by clause can be programmatically
constructed. For example, given a query such as the following:
for $el in cts:search(xdmp:directory("/SomeDir/","infinity")/SomeNode,
cts:element-value-query(xs:QName("SomeElement"), "SomeElementValue",
("case-insensitive", "punctuation-insensitive", "diacritic-insensitive")))
let $id := string($e/@ID)
let $author := string($el/author[1])
let $title := string($el/title[1])
order by $id, $title, $author
return $el
I would like to be able to programmatically construct the order clause to be
something like "$author, $title" instead of "$id, $title, $author".
Thank you!
Tim - aaom consulting
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general