Am 18.02.2015 um 11:41 schrieb Christian GrĂ¼n:
The easiest way out is to wrap your results via XQuery. If your query string is "/a/b/c", you could e.g. rewrite it to:
( /a/b/c ) ! element wrap { . }
Thank you for the suggestion.
My current solution looks like this:
declare namespace basex='http://basex.org/rest';
let $results := ( QUERY ) ! element basex:result { . } return basex:results{$results}</basex:results>
This simulates well enough the wrapped results as returned by BaseX 7.9.
Regards,
-- Gioele Barabucci gioele@svario.it