List all collections:
<collections>{
for $collection in cts:collections()
return <collection> { $collection } </collection>
}</collections>
Select latest record from collection:
let $uris := cts:uris( (), (), cts:properties-query( cts:and-query(( cts:collection-query('/collections/coll-A'), cts:collection-query('latest') )) ) )
return doc($uris)
2014 Q2 <->
// Proudly powered by Apache, PHP, MySQL, WordPress, Bootstrap, etc,.