Comments: XPathGenerator: JavaScript or C++?

Hmm, where's the idl? I've got a couple js xpcom components in komodo and dont run into problems with them, I'd be willing to give the code a spin.

(From Alex: http://wiki.mozilla.org/DOM:XPath_Generator . Be advised, though, that it's still in flux -- I updated it yesterday -- but generally I won't change it without having myself and another person agree on it.)

Posted by Shane Caraveo at February 3, 2006 10:18 AM

Ok, modified code at http://mozilla.pastebin.com/537741


I tested under 1.8 branch.

your fn.apply calls were incorrect, and some of the exception stuff you're doing doesn't work. I now get a "kind of" working xpath generator.

btw, my current generator is at http://mozilla.pastebin.com/537746
I've hacked a way to deal with anonymous nodes for now.

Posted by Shane Caraveo at February 3, 2006 3:27 PM

Hm, is it just me or the code at http://mozilla.pastebin.com/537741 (suggested by Shane) doesn't work either (in the sense that trying to do something with JSXPathGenerator tries to do the same QI)? I'm testing with a trunk build, but I don't suppose it matters.

(From Alex: The code is highly non-functional. :-) It's going to take me some time, that's all.)

Posted by Nickolay Ponomarev at February 4, 2006 12:12 PM