Commit 6a198507 authored by Anne Goloubkoff-Duponchel's avatar Anne Goloubkoff-Duponchel
Browse files

rangement document_toc.xsl

parent 4b337b28
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -305,7 +305,8 @@ declare function max.util:getDocumentTitleXQueryFile($xmlFormat as xs:string){
 Returns project's doc toc XSL
:)
declare function max.util:getProjectDocumentTOCXSL($projectId){
    let $xsltFile := file:parent(file:parent(static-base-uri())) || "editions/" || $projectId || "/ui/xsl/"|| $max.cons:DOCUMENT_TOC_XSL_FILEPATH
    let $xmlFormat:=max.config:getXMLFormat($projectId)
    let $xsltFile := file:parent(file:parent(static-base-uri())) || "editions/" || $projectId || "/ui/xsl/" || $xmlFormat|| "/" || $max.cons:DOCUMENT_TOC_XSL_FILEPATH
    return if(file:exists($xsltFile))
    then $xsltFile
    else file:parent(file:parent(static-base-uri())) || "ui/xsl/" || max.config:getXMLFormat($projectId) ||'/'|| $max.cons:DOCUMENT_TOC_XSL_FILEPATH