The namespace axis should work with all kinds of Source.
Which version of Saxon are you using, and which DOM
If there's a failure with a DOMSource then I'm not entirely
surprised, because DOM allows all sorts of inconsistency to arise in the tree
that can't be properly represented in the XPath data model, and there are lots
of differences between different implementatons. But I'd like to know the
I couldn't figure
out whether Saxon (non-commercial) supports the namespace axis. The
documentation (XPath syntax section) doesn't list it among the supported axis.
However, it seems to be working ok if I use StreamSource, but not if I use
DOMSource (reports an error in the latter case).
The expression I
used is simple