the attributes do pollute the resource. This is how dbXML currently works and having to strip those attributes to get a clean resource is a pain. I'
m not sure which route is better as there is pain in either case.
On Tuesday, August 7, 2001, at 01:43 AM, Jeremias Maerki wrote:
Here's another alternative. I think I like this one better. By default collectionURI is only set on the root but if you need it you can also set it on a child node.
<xapi:resourceSet xmlns:xapi="http://www.xmldb.org/xapi/ResourceSet" collectionURI="driver:/path/to/collection"> <somenode xapi:documentId="1" /> <somenode xapi:documentId="2" /> <somenode xapi:documentId="12" xapi:collectionURI="driver:/path/to/another/collection"/> ... </xapi:resourceSet>
Looks good to me except that I'd prefer an xapi:resource wrapper around <somenode>. That would help to keep the resources "clean" from XML:DB stuff. I'm not sure if this is a real benefit, but I prefer it. So, my preferred solution looks like this:
<xapi:resourceSet xmlns:xapi="http://www.xmldb.org/xapi/ResourceSet" collectionURI="driver:/path/to/collection">
<xapi:resource documentId="1">
<somenode/>
</xapi:resource>
<xapi:resource documentId="2">
<somenode/>
</xapi:resource>
<xapi:resource documentId="12" collectionURI="driver:/path/to/another/
collection">
<somenode/>
</xapi:resource>
...
</xapi:resourceSet>
What do you think?
Jeremias M�rki
mailto:[EMAIL PROTECTED]
OUTLINE AG 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/ ----------------------------------------------------------------------
