https://issues.apache.org/bugzilla/show_bug.cgi?id=27717

--- Comment #18 from Jeremy Boynes <jboy...@apache.org> 2010-07-04 21:28:58 EDT 
---
(In reply to comment #17)
> CachedXPathAPI says that:  "A faster way is to precompile the XPaths using the
> low-level API, and then just use the XPaths over and over". That sounds quite
> attractive - each x:out could precompile an XPath and run it on its node. The
> pain there is figuring out how to use the low level XPath API.

Java5 introduced a standard XPath API that supports pre-compilation of XPath
expressions. How about parsing the supplied XPath in the setter for the tag
attribute and relying on tag pooling to avoid unnecessary recompilations?

The API also provides for a XPathVariableResolver that could work with the
ELResolver to handle variables present in the XPath expressions.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to