XQuery Function Documentation

Search and Browse

dbutil:find-by-mimetype

dbutil:find-by-mimetype($collection as xs:anyURI, $mimeType as xs:string+) as item()*

Parameters:
$collection $collection
$mimeType+ $mimeType+
Returns:
item()*

dbutil:find-by-mimetype

dbutil:find-by-mimetype($collection as xs:anyURI, $mimeType as xs:string+, $func as function(*)) as item()*

Parameters:
$collection $collection
$mimeType+ $mimeType+
$func $func
Returns:
item()*

dbutil:scan

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).

Parameters:
$root $root
$func $func
Returns:
item()*

dbutil:scan-collections

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

Parameters:
$root $root
$func $func
Returns:
item()*

dbutil:scan-resources

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.

Parameters:
$collection $collection
$func $func
Returns:
item()*