Login Register

NSResolver

Hi folks

Are there any plans to add NSResolver support to dojo.query? As far as I can tell, there's currently no way to pass a function to resolve XML namespaces to querySelectorAll or doc.evaluate, which means many dojo.query supported selectors don't work on XML documents.

I may take a swing at this, but wanted to see if there are any known issues that have prevented it from being implemented.

Ah ha, I've discovered that

Ah ha, I've discovered that since I'm working with XML, what I really want is the browser native XPath apis.

Of course, modulo Sarissa or something similar this is still a pain, so I'll probably be abstracting things somewhat. Are the dojox.xml folks working on an XPath api for dojo, or is this pretty much a blank slate?

blank slate so far

There's not really any strong xpath abstraction in dojox.xml yet. Would be happy to integrate whatever you come up with.

--
Project Lead, The Dojo Toolkit
President, The Dojo Foundation