]> granicus.if.org Git - docbook-dsssl/commitdiff
fix issue #63 XHTML generate.toc no suppress part toc title
authorbobstayton <bobs@sagehill.net>
Thu, 12 Jul 2018 20:07:58 +0000 (13:07 -0700)
committerbobstayton <bobs@sagehill.net>
Thu, 12 Jul 2018 20:22:33 +0000 (13:22 -0700)
xsl/html/division.xsl
xsl/html/refentry.xsl

index e539763352f88d861fc3d295023899539c5468e4..27dd7e3f7b94c7ed60e7a3a5323262593d41ce6b 100644 (file)
       </xsl:call-template>
     </xsl:variable>
     <xsl:if test="not(d:partintro) and contains($toc.params, 'toc')">
-      <xsl:call-template name="division.toc"/>
+      <xsl:call-template name="division.toc">
+        <xsl:with-param name="toc.title.p" select="contains($toc.params, 'title')"/>
+      </xsl:call-template>
     </xsl:if>
     <xsl:apply-templates/>
   </div>
 </xsl:template>
 
 <xsl:template match="d:part" mode="make.part.toc">
-  <xsl:call-template name="division.toc"/>
+  <xsl:param name="toc.title.p" select="true()"/>
+  <xsl:call-template name="division.toc">
+    <xsl:with-param name="toc.title.p" select="$toc.title.p"/>
+  </xsl:call-template>
 </xsl:template>
 
 <xsl:template match="d:reference" mode="make.part.toc">
-  <xsl:call-template name="division.toc"/>
+  <xsl:param name="toc.title.p" select="true()"/>
+  <xsl:call-template name="division.toc">
+    <xsl:with-param name="toc.title.p" select="$toc.title.p"/>
+  </xsl:call-template>
 </xsl:template>
 
 <xsl:template match="d:part/d:docinfo"></xsl:template>
     </xsl:variable>
     <xsl:if test="contains($toc.params, 'toc')">
       <!-- not ancestor::part because partintro appears in reference -->
-      <xsl:apply-templates select="parent::*" mode="make.part.toc"/>
+      <xsl:apply-templates select="parent::*" mode="make.part.toc">
+        <xsl:with-param name="toc.title.p" select="contains($toc.params, 'title')"/>
+      </xsl:apply-templates>
     </xsl:if>
     <xsl:call-template name="process.footnotes"/>
   </div>
index 14872f60896354eed06f4434fbe2a5e905d23119..1563ee52c6d23861b4dfaecc175e7e94b56e369f 100644 (file)
@@ -34,7 +34,9 @@
     </xsl:variable>
 
     <xsl:if test="not(d:partintro) and contains($toc.params, 'toc')">
-      <xsl:call-template name="division.toc"/>
+      <xsl:call-template name="division.toc">
+        <xsl:with-param name="toc.title.p" select="contains($toc.params, 'title')"/>
+      </xsl:call-template>
     </xsl:if>
     <xsl:apply-templates/>
   </div>