On Thursday, January 10, 2002, at 06:57 PM, John Merrells wrote:



It seems that somewhere along the line whoever designed the XML:DB API
decided
that XPath queries should return ResourceSets which seem to map to very
coarse
grained database objects like XML documents and BLOBs even though XPath
queries can return strings, booleans, numbers and node lists.

This confused me also... The API implies that the result of executing an XPath expression against a container is the list of documents that match the expression. In some cases you may want the whole document, but in others you actually want the XPath expression projected over the matching documents... With this API you'd have to take each DOM that's returned and run the XPath over that DOM to get the actual result.

This only affects atomic values like the value of an attribute, not selection of document fragments. The query result Resource can encapsulate a node from anywhere in the document. Both Xindice and the reference impl work this way.



John




_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

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


Kimbro Staken
XML Database Software, Consulting and Writing
http://www.xmldatabases.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