]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed bugs in simplesect handling.
authorBob Stayton <bobs@sagehill.net>
Sat, 13 Nov 2004 08:21:29 +0000 (08:21 +0000)
committerBob Stayton <bobs@sagehill.net>
Sat, 13 Nov 2004 08:21:29 +0000 (08:21 +0000)
xsl/html/autotoc.xsl

index 1005ed1f83f3a3d8e0bf8ea2b54d8e938668f051..95ffb04b718b51b85c2f69c117f290b15cc571bf 100644 (file)
   <xsl:call-template name="make.toc">
     <xsl:with-param name="toc-context" select="$toc-context"/>
     <xsl:with-param name="toc.title.p" select="$toc.title.p"/>
-    <xsl:with-param name="nodes" select="section|sect1|refentry
+    <xsl:with-param name="nodes" select="section|sect1|simplesect|refentry
                                          |article|bibliography|glossary
                                          |appendix|index
                                          |bridgehead[not(@renderas)
   </xsl:call-template>
 </xsl:template>
 
+<xsl:template match="simplesect" mode="toc">
+  <xsl:param name="toc-context" select="."/>
+
+  <xsl:call-template name="subtoc">
+    <xsl:with-param name="toc-context" select="$toc-context"/>
+  </xsl:call-template>
+</xsl:template>
+
 <xsl:template match="section" mode="toc">
   <xsl:param name="toc-context" select="."/>