Commit ac23d030 authored by chauveau's avatar chauveau
Browse files

Patch chemin XSL. Le relatif étant instable d'une version BaseX à l'autre, on opte pour de l'absolu

parent 05e42113
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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";
@@ -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:)
@@ -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:)