RE: [xsl] Can one element have more than one namespaces?

Subject: RE: [xsl] Can one element have more than one namespaces?
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Tue, 27 Mar 2001 13:35:47 +0100
> More or less. It is really a mis match of terminoligy.
> The namespace spec does not admit to a concept of a "null namespace"
> it says that in the absence of any declarations <A/> is not in a
> namespace. However, XPath, in common with some other systems needs
> _something_ to return for the namespace, to denote the lack of a
> namespace. It uses the empty string for this so if you are using
> such a system it is (perhaps) natural to refer to elements
> that are not in a namespace as being in the  "empty" or "null" namespace.

Yes.

Technically, according to the Namespaces Rec, element A is not in a
namespace; according to the XPath model, it therefore has a null namespace
URI, and when an element has a null namespace URI, the value of the
namespace-uri() function is an empty string.

All clear now?

Mike Kay
Software AG


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


Current Thread