W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2007

XPathNSResolver doubts (pat 2)

From: Joćo Eiras <joao.eiras@gmail.com>
Date: Sat, 03 Feb 2007 04:03:44 -0000
To: "www-dom@w3.org" <www-dom@w3.org>
Message-ID: <op.tm5mwiz1jz3wb9@mors.wag54gs>

Following up my previous question about XPathNSResolver, I have other to  

  - is a XPathNSResolver aware of reserved prefixes, like the xml prefix,  
which is bound to "http://www.w3.org/XML/1998/namespace" ?
  - I understand that the porpouse of a NSResolver is to associate a prefix  
with its namespaceURI, but how to get the namespaceURI of some specific  
context, if there's no associated prefix ? Like passing the following node  
to a createNSResolver
     <html xmlns="http://www.w3.org/1999/xhtml"/>
    Should lookupNamespaceURI be invoked with an empty string ?
    If this case is not supported, instead of regarding passing null to  
lookupNamespaceURI as undefined behaviour, it could enclose this  
situation, and return the uri associated with the namespace with no prefix.
Received on Saturday, 3 February 2007 04:10:47 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:13 UTC