Dmitri,

I'm still looking at the code, so I can't comment on a fix yet.
What I had in mind in implementing an interface that signals the jxpath
implementation that a context (or pointer or something) is able of evaluating 
queries
which result in the parsed query structure to be passed to the context.

HTH,
Michael

> Michael,
> 
> I believe, adding this type of delegation for query evaluation would require 
> quite significant refactoring of JXPath.  However, I could be wrong.  Do you 
> have a particular fix in mind?
> 
> Thank you,
> 
> - Dmitri
> 
> ----- Original Message ----- 
> From: "Michael Homeijer" <[EMAIL PROTECTED]>
> To: "Jakarta Commons Developers List" <[email protected]>
> Sent: Monday, January 31, 2005 2:43 PM
> Subject: [jxpath] optimize xpath query on xpath enabled containers
> 
> 
> Hi,
> 
> Im am looking at executing jxpath queries against a model that supports lazy 
> loading and queries. Queries like "[EMAIL PROTECTED] = ''test']" will be 
> executed 
> by looping through all nodes and testing if the expression is true for a 
> node.
> Because my model supports queries itself, It would be much faster to query 
> the model and have the model itself execute the query that will load only 
> the nodes for which the expression is true.
> I saw a xalan integration in the code, possibly for the same purpose. Is 
> there a way to extend jxpath with functionality that uses the model (or the 
> nodepointer) itself to execute the rest of the query?
> 
> TIA,
> Michael 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to