----- Original Message -----
From: "bob mcwhirter" <[EMAIL PROTECTED]>
> > I vote "nay" to a navigator registry, and "ecch" to anything remotely
> > resembling the JDBC API.
>
> Lemme expound on my personal position...
>
> I personally don't really find anything too wrong with the current
> implementation, aside from the split between JaXPath and BaseXPath.
> That's only there for assisting in testing some things, and I'm
> certain they could be worked around.
>
> I personally don't care for any dynamic, run-time discovery of
> the object-model to pick the right navigator.  I just don't really
> see the point.
>
> Suggestions I've made here are simply because folks keep saying
> "Something *must* be done!".  So, might as well throw in my
> thoughts for possible solutions.  But I'm not convinced anything
> really needs to be done.
>
> So, let's take a step backwards, and justify anything reflection-related.
>
> Why do we really need it?  Use-cases, anyone?

I agree with you bob.

Though I do like the idea of a generic XPath object too. The use case is
JSTL (the JSP Standard Tag Library) which has a bunch of XPath related tags
which are based on XPath. It would be really cool to have a flexible XPath
implementation that could autodetect whether a JSP user was working with
DOM, dom4j, EXML, JDOM et al - provided the performance overhead is pretty
minimal.

So we could have

org.jaxen.BaseXPath
org.jaxen.dom.XPath
org.jaxen.dom4j.XPath
org.jaxen.jdom.XPath
etc.

Then when folks are working with one model in their code they can use the
import to denote which XPath object they use.

Then if folks wanna be generic the can use (say)

org.jaxen.generic.XPath


BTW I find DOMXPath, Dom4jXPath, JDOMXPath idea all very ugly class names -
I far prefer to use package names to namespace these things. The use of the
name XPath for all different model-centric object is similar to most XML
models naving an Element and Document type - they don't call them
JDOMElement or DOMDocument etc.

James


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

Reply via email to