Commit 9bba676a authored by Jerome Chauveau's avatar Jerome Chauveau
Browse files

default toc xslt. Fixes #147

parent 4c41738f
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -269,12 +269,15 @@ declare function max.util:getProjectTOCXSL($projectId) {
    let $xsltFile := max.util:getResourceFilePath($projectId, "ui/xsl/"|| $max.cons:TOC_XSL_FILENAME)
    return if(file:exists($xsltFile))
    then $xsltFile
    else max.util:getResourceFilePath($projectId, "ui/xsl/"|| $xmlFormat || "/" || $max.cons:TOC_XSL_FILENAME)
    else
        let $formatXslt := max.util:getResourceFilePath($projectId, "/ui/xsl/"|| $xmlFormat || "/" || $max.cons:TOC_XSL_FILENAME)
        return if(file:exists($formatXslt))
               then $formatXslt
               else  max.util:getResourceFilePath($projectId, "/ui/xsl/core/" || $max.cons:TOC_XSL_FILENAME)
};


(:
 Returns project's TOC xsl
 Returns document's TOC xsl
:)
declare function max.util:getDocumentTitleTOCXSL($projectId) {
    let $xmlFormat:=max.config:getXMLFormat($projectId)