> Which object-model are you using, by the way?

DOM (Xerces)


> If you can track this down, and have a fix, I'll grant you CVS
> write access to integrate your changes back, if you like.  Just
> send me your sourceforge username.

I've tracked it down. The problem seems to be that the algorithm is as
follows:

forall steps
    
   newset=0

   forall contextnodes
      newset+=evaluate for context node i
   
   apply predicate filtering to newset
   contextnodes=newset
    
This is not quite correct. In the case of the sample file, this produces
"foo" on the first step, then "bar,bar", and then
"baz,baz,baz,baz,baz,baz". It then filters over the 6 "baz" steps, to
produce 1 result "baz", which is incorrect.

It seems the loops need to be changed, to use a stack of contextnodes
rather than just a set. I'm hacking it right now :)

Christian





_______________________________________________
Jaxen-interest mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jaxen-interest

Reply via email to