Commit 2d1ecf62 authored by Jérôme Chauveau's avatar Jérôme Chauveau
Browse files

pas de nav_bar pour les routes de la forme /doc/doc.xml si pas nécessaire

parent 8f4a71fb
Loading
Loading
Loading
Loading
+2 −1
Changes for rxq/html.xqm: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -257,7 +257,8 @@ declare function max.html:getFooter($project){
declare function max.html:getNavbarForDocument($project, $doc, $selectedId){

    let $xml := max.toc:getDocumentTOC($project, $doc) (:max.route:getRouteNavigationEntriesAsHTML($project, $routeId):)
    return if (count($xml//ul/li) > 1)
    let $hasTarget := $xml//ul//li[@id=$selectedId]
    return if (count($xml//ul/li) > 1 and $hasTarget)
    then
        xslt:transform($xml,
                max.config:getNavigationBarXSL($project),