<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><HTML><head><META content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<title></title>
</head><BODY>
<DIV>
<font size="-1">Created issue
<a class="moz-txt-link-freetext" href="https://github.com/hunterhacker/jdom/issues/45">https://github.com/hunterhacker/jdom/issues/45</a> to track XPath 2.0<br>
<br>
By my estimate it would make sense to possibly run concurrent
interfaces if we go with an XPath 2.0 implementation.... in other
words, have both an XPath and an XPath2.0 interface.<br>
<br>
That way we can contiue to support those libraries that have not
(yet) made the leap.<br>
<br>
Rolf<br>
</font><br>
On 09/19/2011 04:28 AM, Michael Kay wrote:
<blockquote cite="mid:4E76FD2E.6090008@saxonica.com" type="cite">
<br>
<blockquote type="cite">Further, with that change, the XPath class
can easily become an interface... which may improve the
flexibility of some things.
<br>
<br>
The XPathFactory class can have the same newInstance(),
selectNodes() And selectSingleNode() methods which will in turn
use a shortcut to the defaultFactory(). But, it can also be used
to allow for different implementations of the factory.
<br>
<br>
</blockquote>
<br>
The methods selectNodes() and selectSingleNode() are very
XPath-1.0 oriented. If there's going to be an API change at this
stage of the game, it would really make sense to anticipate XPath
2.0. Unfortunately that's potentially quite complex, for example
how do you handle an XPath expression that returns a sequence of
dates? For two attempts to solve this problem, you can look at the
XQJ API and Saxon's s9api API.
<br>
<br>
Michael Kay
<br>
_______________________________________________
<br>
To control your jdom-interest membership:
<br>
<a class="moz-txt-link-freetext" href="http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com">http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com</a>
<br>
<br>
</blockquote>
</DIV>
<DIV> </DIV>
<DIV STYLE="FONT-SIZE: 9pt; FONT-FAMILY: Courier New">
<HR>
<DIV ALIGN="justify" STYLE="FONT-SIZE: 9pt; FONT-FAMILY: Courier New"><FONT FACE="Arial" SIZE="1">This email and any files transmitted with it are confidential and proprietary to Algorithmics Incorporated and its affiliates ("Algorithmics"). If received in error, use is prohibited. Please destroy, and notify sender. Sender does not waive confidentiality or privilege. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. Algorithmics does not accept liability for any errors or omissions. Any commitment intended to bind Algorithmics must be reduced to writing and signed by an authorized signatory.</FONT></DIV>
<HR>
<DIV></DIV></DIV></BODY></HTML>