This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: namespace axis
- To: xsl-list at mulberrytech dot com
- Subject: Re: namespace axis
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Wed, 28 Jun 2000 19:31:24 +0100 (BST)
- References: <NCBBIPMOPKLLGKJPBINCCEFBEHAA.julian.reschke@gmx.de>
- Reply-To: xsl-list at mulberrytech dot com
>>
>> 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