Commit a4907618 authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

more context

parent 35a1ca1c
......@@ -95,7 +95,7 @@ return
then $return
else
let $doc := doc( $config-params:projects-dir || $config:project || "/config.xml" )
let $map := map:new(for $param in $doc/config/*[@key] return map:entry(string($param/@key), string($param)))
let $map := map:new(for $param in $doc/config/*[./@key] return map:entry(string($param/@key), string($param)))
return
switch ($key)
case "data-dir" return $config-params:projects-dir || $config:project || "/" || $map($key)
......@@ -150,6 +150,6 @@ declare function config:list-projects() as xs:string+ {
: the config, its config is checked for <container key="html-head" >
:)
declare function config:html-head($node as node(), $model as map(*)) {
let $head := $model("config")//container[@key='html-head']
let $head := $model("config")//container[./@key='html-head']
return $head/*
};
Markdown is supported
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