Hi to all,<div><br></div><div>I want to list all the content (documents and subcollections) of a specific collection:<br></div><div>I&#39;m using the following query:</div><div><br></div><div><div>let $host := &#39;<a href="http://localhost:8080">http://localhost:8080</a>&#39;</div>
<div>let $col := xmldb:xcollection(&#39;/db&#39;)</div><div>for $p in $col</div><div>let $title := document-uri($p)</div><div>let $id := substring(document-uri($p),5,string-length(document-uri($p))-8)</div></div><div><div>
return &lt;p&gt;&lt;a href=&#39;{$host}/{$id}&#39;&gt;{$title}&lt;/a&gt;&lt;/p&gt;<br></div></div><div><br clear="all"><br></div><div>This way i only list the documents of a specific collection.</div><div>How can i list the subcollections?</div>
<div><br></div><div><br></div><div>Thanks in advance!</div><div><br></div><div><br></div><div><br>-- <br>Ricardo Queirós<br>
</div>