From: Wolfgang M. <wol...@gm...> - 2005-11-09 08:08:04
|
> I have noticed that when calling stored XQueries directly, none of > this seems to apply. The control parameters are ignored, and the > results are returned as a fragment exactly as output by the query. When stored in the db, your query has full control over what is returned and how it is returned. The pre-defined parameters, which are valid for queries passed in the URL, are thus not applied for stored queries. To limit the number of nodes returned, you can use an XQuery construct like this: let $results :=3D result-of-the-main-query let $count :=3D count($results), let $end :=3D if($count >=3D $max) then $max else $count return subsequence($results, 1, $end) To retrieve the result set in multiple chunks, store $results into the HTTP session and read the following chunks from there. Wolfgang |