]> granicus.if.org Git - docbook-dsssl/commitdiff
Handle refentry with mode="toc" here since refentry mode="toc"
authorBob Stayton <bobs@sagehill.net>
Tue, 8 Jul 2003 06:50:11 +0000 (06:50 +0000)
committerBob Stayton <bobs@sagehill.net>
Tue, 8 Jul 2003 06:50:11 +0000 (06:50 +0000)
in autotoc.xsl does not use subtoc. This fixes bug #743612.

xsl/html/maketoc.xsl

index baa283851a34ac84c0f1b00737a243fee57022e1..3c264fce05911d2893e7a874aa5e1daf9d9cb831 100644 (file)
 
 <xsl:param name="toc.list.type" select="'tocentry'"/>
 
+<!-- refentry in autotoc.xsl does not use subtoc, so must
+     handle it explicitly here. -->
+<xsl:template match="refentry" 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 name="subtoc">
   <xsl:param name="nodes" select="NOT-AN-ELEMENT"/>
   <xsl:variable name="filename">