I'm trying to create snapshots for the problems we're having with namespaces. Here's the first one (this is not a showstopper, just something I believe is wrong). In http://top.cs.vt.edu/~gback/bx/nsbug1/ you can find http://top.cs.vt.edu/~gback/bx/nsbug1/BaseXData.bug1.zip which contains a zipped BaseX folder. The script 'test.sh' demonstrates what I believe to be a problem with 6.2.7. Notably, the following query: declare namespace libx='http://libx.org/xml/libx2'; doc("libx2_feed")//libx:entry[@src="34"] returns: <libx:entry xmlns:libx="http://libx.org/xml/libx2" xmlns=" http://www.w3.org/2005/Atom" src="34"/> (the inherited default name space for the libx:entry element is 2005/Atom. But explicitly asking for atom:src in the query: declare namespace libx='http://libx.org/xml/libx2'; declare namespace atom='http://www.w3.org/2005/Atom'; doc("libx2_feed")//libx:entry[@atom:src="34"] returns an empty sequence when in my opinion it should provide the same result. Am I wrong? (As an aside, using libx:src also doesn't return anything:) Run test.sh to reproduce. - Godmar