Re: [xsl] Namespace wildcards

David Carlisle wrote:
> > Note
> > that *[namespace-uri() = ""] strictly speaking also selects the nodes in
the
> > "" namespace, which is different from the null namespace.
>
> No, the Namespace Rec explictly rules out namespaces with namespace URI
> "" which is why Xpath can unambiguously use "" to denote elements in no
> namespace.

However using DOM it is possible to create elements in the "" (separate from
null) namespace [1]. So an XPath implementation using a DOM, rather then a
raw XML file, will have to take this into account.

/ Jonas Sicking

[1]
http://www.w3.org/TR/DOM-Level-2-Core/core.html#Namespaces-Considerations
"Note that because the DOM does no lexical checking, the empty string will
be treated as a real namespace URI in DOM Level 2 methods. Applications must
use the value null as the namespaceURI parameter for methods if they wish to
have no namespace."

Received on Monday, 11 February 2002 11:28:58 UTC