]> granicus.if.org Git - docbook-dsssl/commitdiff
refined mechanism for generating SH titles
authorMichael Smith <xmldoc@users.sourceforge.net>
Wed, 27 Feb 2008 07:42:28 +0000 (07:42 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Wed, 27 Feb 2008 07:42:28 +0000 (07:42 +0000)
xsl/manpages/refentry.xsl

index 7f42d2f4f0be0ef28b115bf0c0dea96c0d3c021a..fa07eb0d6e2b3f7043998badfd773c2aacffd0b8 100644 (file)
         <xsl:text>.br&#10;</xsl:text>
       </xsl:when>
       <xsl:otherwise>
-        <xsl:call-template name="mark.subheading"/>
-        <xsl:text>.SH "</xsl:text>
-        <xsl:apply-templates select="." mode="subheading.markup"/>
-        <xsl:text>"</xsl:text>
-        <xsl:text>&#10;</xsl:text>
+        <xsl:call-template name="make.subheading">
+          <xsl:with-param name="title">
+            <xsl:apply-templates select="." mode="subheading.markup"/>
+          </xsl:with-param>
+        </xsl:call-template>
       </xsl:otherwise>
     </xsl:choose>
     <xsl:call-template name="mark.subheading"/>
       |refsectioninfo/title
       |refsect1info/title
       |title)[1]"/>
-    <xsl:variable name="string">
-      <xsl:apply-templates select="$title" mode="title.markup"/>
-    </xsl:variable>
-    <xsl:call-template name="make.title.pair">
-      <xsl:with-param name="title" select="$string"/>
-    </xsl:call-template>
+    <xsl:apply-templates select="$title" mode="title.markup"/>
   </xsl:template>
 
   <xsl:template match="refsect1|refentry/refsection"
         <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
       </xsl:call-template>
     </xsl:variable>
-    <xsl:call-template name="make.title.pair">
-      <xsl:with-param name="title" select="$title"/>
-    </xsl:call-template>
+    <xsl:value-of select="$title"/>
   </xsl:template>
 
   <xsl:template match="refsynopsisdiv" mode="title.markup">