diff options
author | Ulrich Müller <ulm@gentoo.org> | 2024-11-06 20:13:38 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2024-11-06 20:13:38 +0100 |
commit | dd4420fbd76d3a13012d3a8b8e4357a9bc5424eb (patch) | |
tree | 4f3a06a05393933b16dd0fb74ac256d4a9669342 | |
parent | appendices/editor-configuration/xemacs: Update for XEmacs 21.5 (diff) | |
download | devmanual-dd4420fbd76d3a13012d3a8b8e4357a9bc5424eb.tar.gz devmanual-dd4420fbd76d3a13012d3a8b8e4357a9bc5424eb.tar.bz2 devmanual-dd4420fbd76d3a13012d3a8b8e4357a9bc5424eb.zip |
devbook.xsl: Fix dropdown menu in appendices/todo-list
The contentsTree element must be skipped when it comes with an
extraction attribute.
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
-rw-r--r-- | devbook.xsl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/devbook.xsl b/devbook.xsl index 9bbac18..44aa0f5 100644 --- a/devbook.xsl +++ b/devbook.xsl @@ -623,7 +623,7 @@ </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Index <span class="caret"/></a> - <xsl:if test="/guide/chapter[1]/section or //contentsTree"> + <xsl:if test="/guide/chapter[1]/section or //contentsTree[not(@extraction)]"> <ul class="dropdown-menu"> <!-- List sections of this chapter first. --> <xsl:for-each select="/guide/chapter[1]/section"> @@ -634,7 +634,7 @@ </xsl:variable> <li><a class="reference" href="#{$anchor}"><xsl:value-of select="title"/></a></li> </xsl:for-each> - <xsl:if test="//contentsTree"> + <xsl:if test="//contentsTree[not(@extraction)]"> <li class="divider"><xsl:comment/></li> <!-- List any sub-documents included at first level. We cannot call "contentsTree" directly, because it would |