I'll cross-post this to smoothly move to the XAPI Developer list.


On Wed, 07 Mar 2001 11:35:34 -0800
Ronald Bourret <[EMAIL PROTECTED]> wrote:

> > I don't know.  I can easily see wanting to perform a query that just
> > simple extracts all text from a document.  Say you have Hamlet as XML,
> > and you want to get all of the text for ACT II, SCENE 1, but none of the
> > markup.  A set of Text nodes should be just as valid in processing as a
> > set of Elements.  This is especially useful for transformation.
> 
> Sounds good to me. It looks, then, like there might be five different
> possible return values:
> 
> whole document (as DOM, SAX, or text)
> node set
> forest

We should distinguish between "return values" and "return types".

Return value: whole document, node set, forest
Return type: DOM, SAX, test, binary?

But the return type is not the most important point, because it is
"wrapped" through an abstract resource interface.
 
> Which ones are actually used would depend on the service. For example,
> XPath returns node sets, while XQuery (I think) only returns whole
> documents.

Lars
--
______________________________________________________________________
Lars Martin                                    mailto:[EMAIL PROTECTED]
SMB GmbH                                        http://www.smb-tec.com


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

Reply via email to