Loading rxq/util.xqm +6 −3 Original line number Diff line number Diff line Loading @@ -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) Loading Loading
rxq/util.xqm +6 −3 Original line number Diff line number Diff line Loading @@ -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) Loading