Sorin I don't understand why you need the new signature with xs:string* since the current signatures should cover strings too, since the current signature is
declare %an:sequential function xqxq:bind-variable(
$query-key as xs:anyURI,
$var as xs:QName,
$value as item()*) as empty-sequence() external ;
And sorry don't understand the problem, The query you attached is breaking because you are trying to attach a xs:string to a xs:integer variable.
declare variable $ext as xs:integer external := 0; ^
In my eyes this is a correct error, but I don't know much xquery, is zorba supposed to do an automatic cast of the string to an integer?
Sorin I don't understand why you need the new signature with xs:string* since the current signatures should cover strings too, since the current signature is
declare %an:sequential function xqxq:bind-variable(
$query-key as xs:anyURI,
$var as xs:QName,
$value as item()*) as empty-sequence() external ;
And sorry don't understand the problem, The query you attached is breaking because you are trying to attach a xs:string to a xs:integer variable.
declare variable $ext as xs:integer external := 0;
^
In my eyes this is a correct error, but I don't know much xquery, is zorba supposed to do an automatic cast of the string to an integer?