Commit 238da6a9 authored by Orderic-Vital Pain's avatar Orderic-Vital Pain
Browse files

Correction arbo dossier xsl

parent 90c142bd
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -195,10 +195,7 @@ declare function max.util:maxHome(){
    Returns resource file path from the edition folder if exists, from the max default one if not.
:)
declare function max.util:getResourceFilePath($projectId, $path){
    let $xmlFormat := max.config:getXMLFormat($projectId)
    let $overPath := if(contains($path,'core/')) then replace($path,'core/','') else $path
    let $overPath := if(contains($path,$xmlFormat||'/')) then replace($path,$xmlFormat||'/','') else $overPath
    let $editionFilePath := max.util:maxHome()  || "editions/" || $projectId || "/" || $overPath
    let $editionFilePath := max.util:maxHome()  || "editions/" || $projectId || "/" || $path
    return
        if(file:exists($editionFilePath))
        then $editionFilePath