[challenge] To implement XPath 2.0 in D

2010-09-13 Thread Justin Johansson
Is D2 suitable to implementing the W3C specifications for XPath 2.0, and particularly the XPath & XQuery Data Model (XDM), with both coding succinctness and runtime time and space efficiency? The reference links to the W3C specs are as follows: XML Path Language (XPath) 2.0 (Second Edition) http

Re: [challenge] To implement XPath 2.0 in D

2010-09-13 Thread Yao G.
On Mon, 13 Sep 2010 09:46:31 -0500, Justin Johansson wrote: Is D2 suitable to implementing the W3C specifications for XPath 2.0, and particularly the XPath & XQuery Data Model (XDM), with both coding succinctness and runtime time and space efficiency? [snip] For this. First we would need a be

Re: [challenge] To implement XPath 2.0 in D

2010-09-13 Thread Russel Winder
On Mon, 2010-09-13 at 11:19 -0500, Yao G. wrote: [ . . . ] > For this. First we would need a better module to manipulate XML files than > the one in std.xml. The Python community seem to be gravitating towards using lxml which wraps libxml2 and libxslt. If D can make calls to C libraries why re

Re: [challenge] To implement XPath 2.0 in D

2010-09-14 Thread Kagamin
Justin Johansson Wrote: > Is D2 suitable to implementing the W3C specifications > for XPath 2.0, and particularly the XPath & XQuery Data > Model (XDM), with both coding succinctness and runtime > time and space efficiency? First you should implement DOM. The hardest part will be standard complia

Re: [challenge] To implement XPath 2.0 in D

2010-09-14 Thread Olivier Pisano
Le 14/09/2010 06:58, Russel Winder a écrit : On Mon, 2010-09-13 at 11:19 -0500, Yao G. wrote: [ . . . ] For this. First we would need a better module to manipulate XML files than the one in std.xml. The Python community seem to be gravitating towards using lxml which wraps libxml2 and libxslt.

Re: [challenge] To implement XPath 2.0 in D

2010-09-15 Thread Justin Johansson
On 14/09/2010 12:16 AM, Justin Johansson wrote: Is D2 suitable to implementing the W3C specifications for XPath 2.0, and particularly the XPath & XQuery Data Model (XDM), with both coding succinctness and runtime time and space efficiency? Now, by suitability, I don't mean if it can be done. Of