thanks for clarifying this. To be sure I got this right: The xquery passed to basex:eval() has to be self-contained, no way to refer to anything that's not literally passed to the function?
…exactly. Feedback on other users is welcome on this one: Who else actually using the eval() function out there? Would you like to have the actual context embedded?
Christian