]> granicus.if.org Git - docbook-dsssl/commitdiff
Add missing template with match="toc" mode="title.markup".
authorBob Stayton <bobs@sagehill.net>
Tue, 29 Oct 2013 05:07:39 +0000 (05:07 +0000)
committerBob Stayton <bobs@sagehill.net>
Tue, 29 Oct 2013 05:07:39 +0000 (05:07 +0000)
xsl/common/titles.xsl

index 7ba81f403980bee9d9e6b7834fa1ad5be8770e8e..ea98c11da1c52f2b4c2b061edf1092ae3d4b32ac 100644 (file)
@@ -828,5 +828,22 @@ title of the element. This does not include the label.
 
 <!-- ============================================================ -->
 
+<xsl:template mode="title.markup" match="toc">
+  <xsl:param name="allow-anchors" select="0"/>
+  <xsl:param name="verbose" select="1"/>
+  <xsl:choose>
+    <xsl:when test="title|info/title">
+      <xsl:apply-templates select="(title|info/title)[1]" mode="title.markup">
+        <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
+      </xsl:apply-templates>
+    </xsl:when>
+    <xsl:otherwise>
+      <xsl:call-template name="gentext">
+        <xsl:with-param name="key" select="'TableofContents'"/>
+      </xsl:call-template>
+    </xsl:otherwise>
+  </xsl:choose>
+</xsl:template>
+
 </xsl:stylesheet>