Hi Dave,
Query: let $v := . return $v Context: document, Result: The entire document (as expected) Context <b>, Result: The entire document (was expecting the <b> element and all its content!)
This has been fixed as well (some performance optimizations lead to an erroneous decision to ignore the current context). Please check out the latest sources.
It is interesting to see that this feature is actually used. You can use the BaseX command "cs" to change the context reference outside the GUI for new queries, as e.g. shown here:
basex -c "create db doc.xml; cs //text(); xquery ."
Hope this helps, Christian