| From | Sent On | Attachments |
|---|---|---|
| ryan...@bloglines.com | Nov 15, 2004 7:22 am | |
| peter royal | Nov 15, 2004 10:17 am | |
| Baz | Nov 15, 2004 11:08 am | |
| ryan...@bloglines.com | Nov 15, 2004 1:27 pm | |
| Christian Nentwich | Nov 15, 2004 2:08 pm | |
| Baz | Nov 16, 2004 2:46 am | |
| peter royal | Nov 16, 2004 6:17 am | |
| ryan...@bloglines.com | Nov 16, 2004 7:23 am | |
| Baz | Nov 16, 2004 9:08 am |
| Subject: | Re: [jaxen-user] Java XPath Engine Comparison | |
|---|---|---|
| From: | Baz (bria...@gmail.com) | |
| Date: | Nov 15, 2004 11:08:20 am | |
| List: | org.codehaus.jaxen.user | |
well that patch (jaxen 31) should be "considered harmful". Once I dug into it I found there were nasty problems with what I had done, whenever you really need all the elements. There's a bunch of stuff that held me back from doing something better... - I experimented with trying to use jaxen under a tiger-a-like api[1]; the saxpath and navigator bits are fine, but I couldn't square the rest of it up without breaking things. (BTW did I mention that Navigator.getXPath() is evil? it prevents reuse of navigators with a different xpath api...) - there's better xpath algorithms that could be used instead of just making jaxen fail-fast; but these would pretty much require api changes. - the automated builds for the release never got going, so I lost a bit of motivation... - and of course theres lotsa non-jaxen stuff to do...
... however when I last looked, I think the only way to get my patch to work would be to go back to jaxen as it is now and replace all the Lists with implementations that are lazy. Which seemed like a pile of work.
I'm curious about a couple of the results: substring('12345', -42, 1 div 0) (jaxen fails)
Is this the release version of jaxen? I think the one in cvs does this correctly (I seem to remember fixing it). Ho hum, I'll have to check.
Also, there's no mention of what object model was used with jaxen? I notice there are preceding:: tests in there which I think jaxen only does right on the DOM navigator?
-Baz
[1] I'm not sure how much I like that api - you can't register functions in the default namespace, and its missing ones like current(). But it's a standard - a blessing and a curse.
On Mon, 15 Nov 2004 13:17:24 -0500, peter royal <pete...@pobox.com> wrote:
On Nov 15, 2004, at 10:22 AM, ryan...@bloglines.com wrote:
I've recently posted some comparison findings between available Java based XPath engines. Jaxen is included.
http://www.asciiarmor.com/blog/default/2004/11/13/ 38913ACE763A57A646F07BEF0C13CE52.txt
Thanks for doing the comparison Ryan.. Incentive for us(me) to get off my lazy ass and apply Brian's patch! -pete





