]> granicus.if.org Git - docbook-dsssl/commitdiff
Support refsynopsisdiv in title.markup mode
authorNorman Walsh <ndw@nwalsh.com>
Tue, 11 Jun 2002 13:27:37 +0000 (13:27 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Tue, 11 Jun 2002 13:27:37 +0000 (13:27 +0000)
xsl/common/titles.xsl

index ff485b41ca9b979362c3190491cf3093c4ea89b0..8926f64fc7300ff8e6241715046802fb8f7978cc 100644 (file)
@@ -19,6 +19,7 @@ title of the element. This does not include the label.
 
 <xsl:template match="*" mode="title.markup">
   <xsl:param name="allow-anchors" select="0"/>
+
   <xsl:choose>
     <xsl:when test="title">
       <xsl:apply-templates select="title[1]" mode="title.markup">
@@ -47,6 +48,7 @@ title of the element. This does not include the label.
 
 <xsl:template match="title" mode="title.markup">
   <xsl:param name="allow-anchors" select="0"/>
+
   <xsl:choose>
     <xsl:when test="$allow-anchors != 0">
       <xsl:apply-templates/>
@@ -213,6 +215,22 @@ title of the element. This does not include the label.
   <xsl:apply-templates mode="title.markup"/>
 </xsl:template>
 
+<xsl:template match="refsynopsisdiv" mode="title.markup">
+  <xsl:param name="allow-anchors" select="0"/>
+  <xsl:choose>
+    <xsl:when test="title">
+      <xsl:apply-templates select="title" 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="'RefSynopsisDiv'"/>
+      </xsl:call-template>
+    </xsl:otherwise>
+  </xsl:choose>
+</xsl:template>
+
 <xsl:template match="bibliography" mode="title.markup">
   <xsl:param name="allow-anchors" select="0"/>
   <xsl:variable name="title" select="(bibliographyinfo/title|title)[1]"/>