]> granicus.if.org Git - docbook-dsssl/commitdiff
Fix TOC entries for topic element.
authorBob Stayton <bobs@sagehill.net>
Thu, 19 Apr 2012 19:05:29 +0000 (19:05 +0000)
committerBob Stayton <bobs@sagehill.net>
Thu, 19 Apr 2012 19:05:29 +0000 (19:05 +0000)
xsl/html/autotoc.xsl

index e3f415d7e597eb44b18668f604678d46438481b8..3188b8a63ef1dd7a3da90440e22c64adeaa7e02d 100644 (file)
     <xsl:with-param name="nodes" select="part|reference
                                          |preface|chapter|appendix
                                          |article
+                                         |topic
                                          |bibliography|glossary|index
                                          |refentry
                                          |bridgehead[$bridgehead.in.toc != 0]"/>
     <xsl:with-param name="nodes" select="part|reference
                                          |preface|chapter|appendix
                                          |article
+                                         |topic
                                          |bibliography|glossary|index
                                          |refentry
                                          |bridgehead[$bridgehead.in.toc != 0]"/>
 
   <xsl:call-template name="subtoc">
     <xsl:with-param name="toc-context" select="$toc-context"/>
-    <xsl:with-param name="nodes" select="appendix|chapter|article
+    <xsl:with-param name="nodes" select="appendix|chapter|article|topic
                                          |index|glossary|bibliography
                                          |preface|reference|refentry
                                          |bridgehead[$bridgehead.in.toc != 0]"/>
   </xsl:call-template>
 </xsl:template>
 
-<xsl:template match="preface|chapter|appendix|article" mode="toc">
+<xsl:template match="preface|chapter|appendix|article|topic" mode="toc">
   <xsl:param name="toc-context" select="."/>
 
   <xsl:call-template name="subtoc">