Hi Christian
Thanks for your reply.
In the meantime I've found a workaround:
http://localhost:8080/rest?run=query=3,4,5
declare variable $n as xs:string external := "";
declare variable $n_arr as xs:integer* := tokenize($n, ",") ! xs:integer(.);
Regards
Csaba
On Fri, 3 Nov 2023 at 16:02,
Hi Csaba,
The variable types of the REST API are limited to atomic values. With BaseX
11, however, it will be possible to bind multiple values [1]:
http://localhost:8080/rest?run=query=3=4=5
(: XQuery file: query.xq :)
declare variable $n as xs:integer* external;
array { $n }
You can try the
On 03/11/2023 08:30, Csaba Fekete wrote:
I defined an array variable in my XQUERY:
declare variable $caas array(xs:integer)external := [];
How can I assign a value (e.g [1,2]) to this variable through the URL?
I have already tried:
http://host:port/rest/dbname?run=query.xq&$ca[]=1&$ca[]=2
Hi
I'm wondering if this is at all possible...
I defined an array variable in my XQUERY:
declare variable $ca as array(xs:integer) external := [];
How can I assign a value (e.g [1,2]) to this variable through the URL? I
have already tried:
4 matches
Mail list logo