Loading rxq/config.xqm +3 −1 Original line number Diff line number Diff line Loading @@ -79,6 +79,7 @@ knowledge of the CeCILL-B license and that you accept its terms. module namespace max.config = 'pddn/max/config'; import module namespace rest = "http://exquery.org/ns/restxq"; import module namespace max.cons = 'pddn/max/cons' at 'cons.xqm'; import module namespace max.util = 'pddn/max/util' at 'util.xqm'; (: CONFIGURATION file path. :) declare variable $max.config:CONFIGURATION_FILE := "../configuration/configuration.xml"; Loading Loading @@ -125,6 +126,7 @@ declare function max.config:getPluginByName($projectId, $pluginName){ declare function max.config:getPluginParameterValue($projectId, $pluginName, $parameterKey){ doc($max.config:CONFIGURATION_FILE)//edition[@xml:id=$projectId]//plugin[@name=$pluginName] //parameter[@key=$parameterKey]/@value/string() }; (:Gets project dbpath:) Loading Loading @@ -266,7 +268,7 @@ Returns project's default XSLT to apply on text :) declare function max.config:getDefaultTextXSL($project as xs:string) as xs:string{ let $env := max.config:getXMLFormat($project) return "ui/xsl/" || $env || "/" || $env || ".xsl" return max.util:maxHome() || "/ui/xsl/" || $env || "/" || $env || ".xsl" }; (:Returns UI addon directory list:) Loading Loading
rxq/config.xqm +3 −1 Original line number Diff line number Diff line Loading @@ -79,6 +79,7 @@ knowledge of the CeCILL-B license and that you accept its terms. module namespace max.config = 'pddn/max/config'; import module namespace rest = "http://exquery.org/ns/restxq"; import module namespace max.cons = 'pddn/max/cons' at 'cons.xqm'; import module namespace max.util = 'pddn/max/util' at 'util.xqm'; (: CONFIGURATION file path. :) declare variable $max.config:CONFIGURATION_FILE := "../configuration/configuration.xml"; Loading Loading @@ -125,6 +126,7 @@ declare function max.config:getPluginByName($projectId, $pluginName){ declare function max.config:getPluginParameterValue($projectId, $pluginName, $parameterKey){ doc($max.config:CONFIGURATION_FILE)//edition[@xml:id=$projectId]//plugin[@name=$pluginName] //parameter[@key=$parameterKey]/@value/string() }; (:Gets project dbpath:) Loading Loading @@ -266,7 +268,7 @@ Returns project's default XSLT to apply on text :) declare function max.config:getDefaultTextXSL($project as xs:string) as xs:string{ let $env := max.config:getXMLFormat($project) return "ui/xsl/" || $env || "/" || $env || ".xsl" return max.util:maxHome() || "/ui/xsl/" || $env || "/" || $env || ".xsl" }; (:Returns UI addon directory list:) Loading