XQuery Function Documentation

Search and Browse

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

/db/apps/wiki/modules/config.xqm

A set of helper functions to access the application context from within a module.

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 text()

Parameters:
$node $node
$model $model
Returns:
text()

config:atom-url-from-feed

config:atom-url-from-feed($feed as node()) as item()*

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

config:entry-url-from-entry

config:entry-url-from-entry($entry as element()) as item()*

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

config:expath-descriptor

config:expath-descriptor() as element()

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

Returns:
element()

config:feed-from-entry

config:feed-from-entry($entry as element()) as item()*

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

config:feed-url

config:feed-url($feed as element()) as item()*

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

config:feed-url-from-entry

config:feed-url-from-entry($entry as element()) as item()*

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

config:get-entries

config:get-entries($feed as element(), $id as xs:string?, $wikiId as xs:string?) as element()*

Parameters:
$feed $feed
$id? $id?
$wikiId? $wikiId?
Returns:
element()*

config:get-entries

config:get-entries($feed as element(), $id as xs:string?, $wikiId as xs:string?, $recurse as xs:boolean) as element()*

Parameters:
$feed $feed
$id? $id?
$wikiId? $wikiId?
$recurse $recurse
Returns:
element()*

config:get-template

config:get-template($feed as element()) as item()*

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

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. If the app resides in the file system,

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

config:resolve-feed

config:resolve-feed($feed as xs:string) as item()*

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

config:resolve-resource

config:resolve-resource($feed as xs:string, $resource as xs:string) as item()*

Parameters:
$feed $feed
$resource $resource
Returns:
item()*