This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: namespace axis


>>
>> 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
stylesheet.

David


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]