You have already answered the question, but it is worth understanding why this is so.
, , . , t:foo, ancestor-or-self, node, t:. :
<t:one xmlns:t="ns-one">
<t:one>
<t:two xmlns:t="ns-two">
<t:two/>
</t:two>
</t:one>
</t:one>
one ns-one, two ns-two. , ns-two , t: ns-two, , , , xmlns:t - - .
, XPath //t:*? , t: .
, , . , one ns-one, , t: x:, xmlns.
XML- XPath, , . SelectionNamespaces DOMDocument # - : , XPath. , a: ns-one, XPath //a:one one ns-one, , , , .
, , , .