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  
questions:

  - 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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:58 GMT