for $i in input()
let $uri := document-uri($i)
order by $uri
return
(
if (fn:starts-with($uri, '/word/fragments/mm/'))
then
()
else
if (fn:starts-with($uri, '/word/fragments/'))
then
$uri
else
()
)
Count all documents by uri name
let $col :=
for $i in input()
let $uri := document-uri($i)
return
(
if (fn:starts-with($uri, '/word/fragments/mm/'))
then
()
else
if (fn:starts-with($uri, '/word/fragments/'))
then
$uri
else
()
)
return count($col)