W3C home > Mailing lists > Public > www-xpath-comments@w3.org > January to March 2002

Re: [xsl] Namespace wildcards

From: Jonas Sicking <sicking@bigfoot.com>
Date: Mon, 11 Feb 2002 17:33:43 +0100
Message-ID: <002b01c1b319$df360be0$b3e0d0d9@telia.com>
To: <www-xpath-comments@w3.org>
Cc: "David Carlisle" <davidc@nag.co.uk>
David Carlisle wrote:
> > Note
> > that *[namespace-uri() = ""] strictly speaking also selects the nodes in
> > "" 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

"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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:02:14 UTC