W3C home > Mailing lists > Public > www-dom-xpath@w3.org > May 2000

Re: XPath API start

From: Scott Boag/CAM/Lotus <Scott_Boag@lotus.com>
Date: Wed, 3 May 2000 13:22:05 -0400
To: www-dom-xpath@w3.org
Message-ID: <OF6B6ADF69.08AD103A-ON852568D4.005DBC99@lotus.com>

jeroen@tcf.nl wrote:
> Below you can find an XPath API as we've been implementing

Cool.  This isn't so far from my thoughts, and much closer than having
methods directly on the Node object.

> - the interfaces should be simple and straight forward


> - it doesn't make too much sense to offer a complete API for parsed XPath

> queries although this is possible

What might you add if it was a "complete API"?  Interfaces for the
structure so that tools could manipulate it?

> - it should cover the complete XPath implementation

Should this include function extensions?  (I would think yes).

> - every query object has an authority object which organizes authority on

> queries. We've created it to serve our repository but it might easily be

Yeah, I would think this should belong to a full query API.

> - our product is a Java product so the API's are in java which is alright
> discussion purposes.

I think Java is fine.  But we should make sure a C++ API of some sort is
defined before we freeze, IMHO.

> - XPath queries should support the context supported by Xpath (the
context node,
> a set of variable bindings, a set of namespace declarations)

+1, adding extension bindings.

> and a clear module (something like
> org.w3c.dom.xpath) should be created.

Why org.w3c.dom.xpath and not org.w3c.xpath??  (as per my previous mails).

> XPathQuery

I don't think this object can be multi-threaded without locking, is that
correct?  Might it be better to have a simpler XPath object to which a
XPathContext is handed in?

> XPathResultIf

I don't understand the "If" postfix in the names.  I assume it has some

Received on Wednesday, 3 May 2000 13:21:52 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:43:07 UTC