Google wrote some code that implements the w3c DOM level 1 spec as well
as code to support XSLT, including XPath support. This code is not
really maintained by google any more (the activity on it has dwindled to
the point where nothing really happens) and it has a few issues that
needed fixing, including
 
1. The xpath id() function did not work, and there were some issues more
generally with the parsing of some xpath expressions that included
predicate functions and paths. The parser would get confused thinking
the '/' was a division instead of a path and parse the expression
incorrectly.
 
2. The google code is not scoped at all, there are tons of functions and
variables declared at the top level. I moved these to all be under the
"google" global object rather than free-floating.
 
3. The googe code did not work with prototype.js because it used the
for...in syntax to loop over arrays, which prototype breaks by changing
the array prototype.
 
The google xpath implementation supports xpath well , it still has some
issues with predicate functions but it is a fairly complete
implementation. I don't have much familiarity with the XSLT stuff as we
aren't using it.
 
Does that answer your questions or are you you looking for something
more specific?
 
James Margaris
 
 
---
 
 
Hello,

google - The google dom/xpath implementation, modified with some bug
fixes and clean up of variable scoping.

What is this? Could you explain it further?

Thanks and best regards

Reply via email to