]> granicus.if.org Git - docbook-dsssl/commitdiff
Support titleabbrev (outside of info elements anyway)
authorNorman Walsh <ndw@nwalsh.com>
Wed, 1 Jan 2003 20:55:38 +0000 (20:55 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Wed, 1 Jan 2003 20:55:38 +0000 (20:55 +0000)
xsl/common/titles.xsl

index bb858ce8c9ffafb29b79ada1b6d3c4c8505a5ada..4d408b0ae3e38cc470c916f95e0cd6e29820d635 100644 (file)
@@ -373,6 +373,40 @@ title of the element. This does not include the label.
 
 <!-- ============================================================ -->
 
+<xsl:template match="*" mode="titleabbrev.markup">
+  <xsl:param name="allow-anchors" select="0"/>
+  <xsl:param name="verbose" select="1"/>
+
+  <xsl:choose>
+    <xsl:when test="titleabbrev">
+      <xsl:apply-templates select="titleabbrev[1]" mode="title.markup">
+        <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
+      </xsl:apply-templates>
+    </xsl:when>
+    <xsl:otherwise>
+      <xsl:apply-templates select="." mode="title.markup">
+        <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
+        <xsl:with-param name="verbose" select="$verbose"/>
+      </xsl:apply-templates>
+    </xsl:otherwise>
+  </xsl:choose>
+</xsl:template>
+
+<xsl:template match="titleabbrev" mode="title.markup">
+  <xsl:param name="allow-anchors" select="0"/>
+
+  <xsl:choose>
+    <xsl:when test="$allow-anchors != 0">
+      <xsl:apply-templates/>
+    </xsl:when>
+    <xsl:otherwise>
+      <xsl:apply-templates mode="no.anchor.mode"/>
+    </xsl:otherwise>
+  </xsl:choose>
+</xsl:template>
+
+<!-- ============================================================ -->
+
 <xsl:template match="*" mode="no.anchor.mode">
   <xsl:apply-templates mode="no.anchor.mode"/>
 </xsl:template>