Ok here is the latest.

   interface XPathQueryService : base::Service {
      const string serviceName = "XPathQueryService";
      const string version = "1.0";

void setNamespace( in string prefix, in string uri ) raises (base::XMLDBException);
void clearNamespaces() raises (base::XMLDBException);
base::ResourceSet query( in string query ) raises (base::XMLDBException);
base::ResourceSet queryResource( in string id, in string query ) raises (base::XMLDBException);
};


setNamespace when called with an exisiting prefix replaces the existing prefix mapping.
If the the URI for a prefix is null or empty then any existing mapping is removed.
If the prefix is null or empty then the URI is used to set the default namespace.


clearNamespaces removes all existing mappings.

I also added the queryResource method as a proposal. I'd like some feedback on whether this is a good idea. The goal with it is to make it easy to query a single document.

On Friday, August 3, 2001, at 01:20 AM, Jeremias Maerki wrote:

Ok, so XPathQueryService would look like this now. Comments?

  interface XPathQueryService : base::Service {
       const string serviceName = "XPathQueryService";
       const string version = "1.0";

       void setNamespace( in string prefix, in string uri ) raises
(base::XMLDBException);
       base::ResourceSet query( in string query) raises
(base::XMLDBException);
    };

Ok, but I think maybe a "resetNamespaces()" is necessary. It's possible (though unlikely) that the same prefix is used for different URIs and the user wants to have control over what's really registered. Or should the Service reset all Namespaces each time it is acquired? If yes, how is it notified? For setNamespace() it is necessary to document what happens when a prefix is reregistered (replace or Exception).

Jeremias M�rki

mailto:[EMAIL PROTECTED]

Freundliche Gr�sse
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Fon +41 (41) 317 2020 - Fax +41 (41) 317 2029
Internet http://www.outline.ch

----------------------------------------------------------------------
Post a message:         mailto:[EMAIL PROTECTED]
Unsubscribe:            mailto:[EMAIL PROTECTED]
Contact administrator:  mailto:[EMAIL PROTECTED]
Read archived messages: http://archive.xmldb.org/
----------------------------------------------------------------------


Kimbro Staken The dbXML Project htttp://www.dbxml.org ---------------------------------------------------------------------- Post a message: mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED] Contact administrator: mailto:[EMAIL PROTECTED] Read archived messages: http://archive.xmldb.org/ ----------------------------------------------------------------------

Reply via email to