Hi Andy,
as you already guessed, and to reduce side effects, the util:eval() function in BaseX uses its very own context.
Hope this helps, Christian _______________________________________
On Mon, Oct 31, 2011 at 1:20 PM, Andy Bunce bunce.andy@gmail.com wrote:
I notice Basex has a util:eval function similar to the eXist db one however it is not clear for the BaseX version what the inherited context, if any, is. The example on the eXist site:
let $a := "Hello" return util:eval("$a")
Fails with an undefined variable $a with BaseX 7.0.1
/Andy