The namespace axis should work with all kinds of Source. Which version of Saxon are you using, and which DOM implementation?
 
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 details.
 
Michael Kay
http://www.saxonica.com/


From: saxon-help-admin@lists.sourceforge.net [mailto:saxon-help-admin@lists.sourceforge.net] On Behalf Of Milan Trninic
Sent: 06 October 2004 23:14
To: saxon-help@lists.sourceforge.net
Subject: [saxon] is namespace axis supported?

Hi,
 
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
 
<xsl:for-each select="//namespace::*">
....
 
Cheers
 
Milan