Commit 64e350e1 authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

fixes #18

parent db3224c8
......@@ -110,13 +110,13 @@ declare function config:keys() {
};
declare function config:module-get($module-name as xs:string, $key as xs:string) as item()? {
let $module := $config:configDoc//module[string(@key)=$module-name]
let $module := $config:configDoc//*[string(@key)=$module-name]
return
$module/param[ string(@key)=$key ]/node()
};
declare function config:module-get($module-name as xs:string, $key as xs:string, $default as item()?) as item()? {
let $value := config:module-get($module-name , $key)
let $value := config:module-get($module-name, $key)
return if (empty($value)) then
$default
else
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment