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: Can one element have more than one namespaces?


> 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


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