Open hfmanson opened 2 years ago
There are issues in the current parser resulting with this kind of error message.
As a workaround, adding extra parentheses around an embedded FLWOR expression, or an embedded if statement, should help enough the parser and allow evaluation.
A new version of parser is to be committed soon.
Indeed
let $x := 4
return
if ($x eq 4) then
(
let $y := 5
return $y
)
else
7
returns
15:10:37 - xs:integer('5')
For example running this query inside runany.htm:
returns