W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2009

Require that XPathNSResolver be implemented on Node

From: Laurens Holst <laurens.nospam@grauw.nl>
Date: Fri, 08 May 2009 11:40:14 +0200
Message-ID: <4A03FDFE.6080200@grauw.nl>
To: www-dom@w3.org
CC: public-webapps <public-webapps@w3.org>

Can I suggest adding the following to the XPathNSResolver 

“In a DOM implementation which supports the XPath 3.0 feature, as 
described above, the |XPathNSResolver| interface will be implemented on 
the same object which implements the |Node| interface.”

This will allow nodes to be passed directly as XPath namespace 
resolvers. As both XPathNSResolver and Node have an identical 
lookupNamespaceURI method, this should be pretty trivial.

Of course there is nothing preventing implementations from doing so 
already, but it would be nice if this were standardised.



Note: New email address! Please update your address book.

~~ Ushiko-san! Kimi wa doushite, Ushiko-san nan da!! ~~
Laurens Holst, student, university of Utrecht, the Netherlands
Website: www.grauw.nl. Backbase employee; www.backbase.com

Received on Friday, 8 May 2009 20:27:26 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:12:53 UTC