> 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/ ----------------------------------------------------------------------
