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