Re: namespace axis

Subject: Re: namespace axis
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 28 Jun 2000 19:31:24 +0100 (BST)
>> Would the local-name(),name() or namespace() methods give the results you
>> need, perhaps working up through the ancestor axis ?
>Actually, name() should give the prefix, while the node value is the
>namespace name. At least this is what Saxon does...

Yes but I think the point is that for almost all conceivable uses
you can get all the namespace information you need by applying
namespace-uri() to the element and attribute nodes that you are
interested in, rather than accessing the namespace nodes.

The only time (normally) that you need the namespace node is to get
access to namespace declarations for namespaces that are not used
directly in the document. Perhaps they just appear for the use of xpath
expressions in attribute values, for example. That is the only time I've
used the namespace axis: when the input document is itself an xsl


 XSL-List info and archive:

Current Thread