this version of the dbutil module was copied from shared resources v0.9.1
dbutil:find-by-mimetype($collection as xs:anyURI, $mimeType as xs:string+) as item()*
$collection | $collection |
$mimeType+ | $mimeType+ |
dbutil:find-by-mimetype($collection as xs:anyURI, $mimeType as xs:string+, $func as function(*)) as item()*
$collection | $collection |
$mimeType+ | $mimeType+ |
$func | $func |
dbutil:scan($root as xs:anyURI, $func as function(*)) as item()*
Scan a collection tree recursively starting at $root. Call the supplied function once for each resource encountered. The first parameter to $func is the collection URI, the second the resource path (including the collection part).
$root | $root |
$func | $func |
dbutil:scan-collections($root as xs:anyURI, $func as function(*)) as item()*
Scan a collection tree recursively starting at $root. Call $func once for each collection found
$root | $root |
$func | $func |
dbutil:scan-resources($collection as xs:anyURI, $func as function(*)) as item()*
List all resources contained in a collection and call the supplied function once for each resource with the complete path to the resource as parameter.
$collection | $collection |
$func | $func |