From: Tom . (ptittom@free.fr)
Date: Mon Mar 05 2001 - 09:32:21 EST
Le 05/03/01 14:48:43, Daniel Veillard a écrit :
> > I'm writing such an API and will keep you informed.
>
> Humm, open source projects don't work that way ... You can't say
> "hold on I'm writing some code you may look at later", sorry :-)
Well, it hasn't yet passed the stage of ideas and drafts. I'll first write
a paper explaining its goals etc. I think of proposing it on the
www-xpath-comments@w3.org mailing list for discussion and improvements.
Then will begin the implementation stage with whoever will want to
participate: for libxml, in Java, etc.
I think this is open-source-oriented, isn't it? ;o)
Its first goal is XPath evaluation improvement.
One important point is a "compilation" phase, to separate parsing from
evaluation and allow reuse of the expression without parsing it each time.
Imagine you have a huge DOM tree and you want to apply an non-well-formed
expression. Without separating parsing from evaluation, you may have done
90% of the work (expensive for a huge document) to finally abandon it :
there is an error in the expression. It seems to me it's too much work for
nothing in result, and it can be prevented by parsing the expression before
trying to evaluate it.
A second goal is to provide a single parser for every XPath-like expression
: XPointer XPtrExpr's, XSLT Pattern's, etc. and their future evolution. I
first need to have a less restrictive language than the ones described on
the Recs, like CSS have a «forward-compatible language common to all
versions of CSS» (in SAC <http://www.w3.org/TR/SAC> ).
I have projects for other kinds of XPath evaluation and XSLT processing
improvements (allowing XPath and XSLT not needing complete DOM trees =>
incremental XPath/XSLT), leading to some "intelligent processors" that I'll
expose later on...
> > Another solution should be to evaluate the XPointer expression
> > and test the result type.
>
> yes and it seems quite simpler.
Sure, and I know you're a KISS follower ;o) , but quite more time
consuming...
Tom.
---- Message from the list xml@rpmfind.net Archived at : http://xmlsoft.org/messages/ to unsubscribe: echo "unsubscribe xml" | mail majordomo@rpmfind.net
This archive was generated by hypermail 2b29 : Mon Mar 05 2001 - 10:43:37 EST