XPathNSResolver doubts (pat 2)

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 UTC