Ok, I understand, but a bit of a shame. The functionality I want is just functx:dynamic-path http://www.xqueryfunctions.com/xq/functx_dynamic-path.html Is just using the functx library via the repo likely to be the most efficient approach for BaseX?
/Andy
On Mon, Oct 31, 2011 at 5:02 PM, Christian Grün christian.gruen@gmail.comwrote:
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