Commit 7637a57e authored by Jerome Chauveau's avatar Jerome Chauveau
Browse files

improve utils:get-bundles-path() and fix tests

parent da3ce8b3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -68,7 +68,8 @@ declare function utils:xml-to-html($lang as xs:string, $path as xs:string, $id a
 : @return directory
 :)
declare function utils:get-bundles-path() as xs:string{
     db:option('webpath') || 'max/bundles/'
    (: basex sometimes adds / at the end of db:option('webpath'), sometimes not...:, remove it to avoid // :)
     replace(db:option('webpath'), '/$', '') || '/max/bundles/'
};


+1 −1
Original line number Diff line number Diff line
module namespace test = 'https://certic.unicaen.fr/max/tests';

import module namespace conf = 'https://certic.unicaen.fr/max/conf' at '../main/core/conf.xqm';
import module namespace conf = 'https://certic.unicaen.fr/max/conf';


declare %unit:test function test:get-vocabulary-bundle(){