> This sounds very sensible and is also the way X-Hive > implements it, but I cannot find anything describing this > behaviour in the specification documents. The rules are in section 3.7.4 http://www.w3.org/TR/xquery/#id-ns-nodes-on-elements Michael Kay http://www.saxonica.com/