What are your thoughts on adding a getResultsAsResource() method to ResourceSet? This is something we've been asked for in the dbXML project as a way to return all results as a textual XML document. Returning it as a Resource enables you to get the results in whatever form you want. This is especially handy if you just want to hand the results of the query to XSL-T. The Resource content value could look something like.

<xapi:results xmlns:xapi="http://www.xmldb.org/xapi/ResultNS"; count="10">
        <somenode/>
        <somenode/>
        ...
</xapi:results>

Or possibly with more metadata.

<xapi:results xmlns:xapi="http://www.xmldb.org/xapi/ResultNS"; count="10">
<xapi:result documentKey="1" collectionURI="driver:/path/to/collection">
<somenode/>
</xapi:result>
<xapi:result documentKey="2" collectionURI="driver:/path/to/collection">
<somenode/>
</xapi:result>
...
</xapi:results>


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