Re: Resources and Types

2002-01-13 Thread Dare Obasanjo
In addition I'd suggest that somewhere in the API a QName[] getSupportedTypes( ) ; is added as well as an error code be added in ErrorCodes such as UNSUPPORTED_RESOURCE_TYPE which can be one of the specified error codes when an XMLDBException is thrown from a Collection#storeResour

Resources and Types

2002-01-13 Thread Jonathan Borden
An XML:DB "Resource" corresponds to a DOM "Node". The sub-type "XMLResource" does directly correspond to a DOM Node, and hence supports the DOM Node types. Currently it is possible to support simple datatypes via this mechanism as each of these datatypes has a textual representation, and hence can

Re: Problems With Implementing XMLDB API

2002-01-13 Thread Dare Obasanjo
Like saying goes about opinions,.everybody has one. I merely stated my opinion about the XML:DB API after the trying to implement Core Level 1 Conformance over eXcelon's DXE[0] . My last manager told me I was opinionated, over time you'll realize this too and not feel that I am trying to _dictate_

Re: Problems With Implementing XMLDB API

2002-01-13 Thread Jonathan Borden
Dare Obasanjo wrote: > - Original Message - > From: "Jonathan Borden" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, January 11, 2002 3:05 PM > Subject: Re: Problems With Implementing XMLDB API > > > > > Err, so "addResource" on a BinaryResource is OK _from an interface point

Re: Problems With Implementing XMLDB API

2002-01-13 Thread Dare Obasanjo
- Original Message - From: "Jonathan Borden" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, January 12, 2002 8:11 PM Subject: Re: Problems With Implementing XMLDB API > Exactly, the XQuery 1.0 and XPath 2.0 data models have merged. If XML:DB is > really going to be the standar

Re: Problems With Implementing XMLDB API

2002-01-13 Thread Jonathan Borden
Jim Tivy wrote: > Hi folks > > This thread has got me thinking. What is returned from a query is a value. > What is a legal value should be defined in the API spec. XQuery has define > what a legal value is in their data model doc (see w3c data model doc). It > may be wise to adopt this as a val

RE: Problems With Implementing XMLDB API

2002-01-13 Thread Jim Tivy
Hi Dare Have a look at the XQuery and XPath Data Model document. Both XPath2 and XQuery share the same data model as defined in the document at http://www.w3.org/TR/query-datamodel/. You are right that primitive types are the schema primitive types - all the usual suspects - float, decimal, doub

Re: Problems With Implementing XMLDB API

2002-01-13 Thread Dare Obasanjo
The valid return types from an XQuery query are XML schema types while the valid return types from an XPath 1.0 query are a boolean, string, number, or nodeset (is there one I've forgotten?). So the question is if the XML:DB API promotes the results of a query to their own type will they be XPath 1

RE: Problems With Implementing XMLDB API

2002-01-13 Thread Jim Tivy
Hi folks This thread has got me thinking. What is returned from a query is a value. What is a legal value should be defined in the API spec. XQuery has define what a legal value is in their data model doc (see w3c data model doc). It may be wise to adopt this as a valid value in the xmldb API a