Hi to all,
I want to list all the content (documents and subcollections) of a specific
collection:
I'm using the following query:
let $host := 'http://localhost:8080'
let $col := xmldb:xcollection('/db')
for $p in $col
let $title := document-uri($p)
let $id := substring(document-uri($p),5,string-length(document-uri($p))-8)
return <p><a href='{$host}/{$id}'>{$title}</a></p>
This way i only list the documents of a specific collection.
How can i list the subcollections?
Thanks in advance!
--
Ricardo Queirós
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://x-query.com/pipermail/talk/attachments/20090521/defc8d3d/attachment.htm