DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31147>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31147

using Node variables with JSTL XML tags





------- Additional Comments From [EMAIL PROTECTED]  2004-09-10 09:00 -------
Maybe there is another (faster) way to achieve the same result. instead of
creating a new Document and prepend "/*" to the original XPath, we may simply
remove the starting slash from the XPath.

xpath = xpath.substring( xpath.indexOf("/"));
(XPathUtils 648)

would become:
xpath = xpath.substring( xpath.indexOf("/") + 1);

Then evaluate the XPath with the original Node as its context.
I don't know if this may have side-effects, but I think this is the way to go.
What do you think?

flavio

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

Reply via email to