XQuery Function Documentation

Search and Browse

http://exist-db.org/xquery/apps/config

/db/apps/doc/modules/config.xqm

Configuration settings for the eXist documentation app.

config:app-info

config:app-info($node as node(), $model as map(*)) as item()*

For debugging: generates a table showing all properties defined : in the application descriptors.

Parameters:
$node $node
$model $model
Returns:
item()*

config:app-meta

config:app-meta($node as node(), $model as map(*)) as element()*

Parameters:
$node $node
$model $model
Returns:
element()*

config:app-title

config:app-title($node as node(), $model as map(*)) as xs:string

Parameters:
$node $node
$model $model
Returns:
xs:string

config:expath-descriptor

config:expath-descriptor() as element()

Returns the expath-pkg.xml descriptor for the current application.

Returns:
element()

config:get-resource-path

config:get-resource-path($base-collection as xs:string, $resource as xs:string) as xs:string?

Finds the full path of (the first instance of) some resource underneath a collection, given its name. If the resource holds a path it is stripped first. The name is returned including a relative path.

Parameters:
$base-collection $base-collection
$resource $resource
Returns:
xs:string?

config:repo-descriptor

config:repo-descriptor() as element()

Returns the repo.xml descriptor for the current application.

Returns:
element()

config:resolve

config:resolve($relPath as xs:string) as item()*

Resolve the given path using the current application context (for if the app resides in the file system):

Parameters:
$relPath $relPath
Returns:
item()*

local:get-resource-path

local:get-resource-path($base-collection as xs:string, $resource as xs:string, $sub-path as xs:string?) as xs:string?

Parameters:
$base-collection $base-collection
$resource $resource
$sub-path? $sub-path?
Returns:
xs:string?