]> granicus.if.org Git - docbook-dsssl/commitdiff
use make.subheading template to make subheadings for AUTHORS and
authorMichael Smith <xmldoc@users.sourceforge.net>
Tue, 26 Feb 2008 10:06:02 +0000 (10:06 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Tue, 26 Feb 2008 10:06:02 +0000 (10:06 +0000)
COPYRIGHT sections (instead of harcoding roff markup)

xsl/manpages/info.xsl

index cb57fa15236cbe0f51f2ea3dffb6e8e5a041c756..ec8cab9bda64712fb4541694e57e6f1541e042c9 100644 (file)
                       $info//othercredit)">
           </xsl:value-of>
         </xsl:variable>
-        <xsl:text>.SH "</xsl:text>
-        <xsl:call-template name="make.authorsecttitle">
-          <xsl:with-param name="authorcount" select="$authorcount"/>
+        <xsl:call-template name="make.subheading">
+          <xsl:with-param name="title">
+            <xsl:call-template name="make.authorsecttitle">
+              <xsl:with-param name="authorcount" select="$authorcount"/>
+            </xsl:call-template>
+          </xsl:with-param>
         </xsl:call-template>
         <!-- * Now output all the actual author, editor, etc. content -->
         <xsl:for-each
-            select="$info//author|$info//editor|$info//collab|
-                    $info//corpauthor|$info//corpcredit|
-                    $info//othercredit|$info/orgname|
-                    $info/publishername|$info/publisher">
+          select="$info//author|$info//editor|$info//collab|
+          $info//corpauthor|$info//corpcredit|
+          $info//othercredit|$info/orgname|
+          $info/publishername|$info/publisher">
           <xsl:apply-templates select="." mode="authorsect"/>
         </xsl:for-each>
       </xsl:when>
         </xsl:otherwise>
       </xsl:choose>
     </xsl:param>
-    <xsl:call-template name="string.upper">
-      <xsl:with-param name="string">
-        <xsl:call-template name="gentext">
-          <xsl:with-param name="key" select="$authorsecttitle"/>
-        </xsl:call-template>
-      </xsl:with-param>
+    <xsl:call-template name="gentext">
+      <xsl:with-param name="key" select="$authorsecttitle"/>
     </xsl:call-template>
-    <xsl:text>"&#10;</xsl:text>
   </xsl:template>
-  
+
   <xsl:template match="author|editor|othercredit" mode="authorsect">
     <xsl:variable name="person-name">
       <xsl:call-template name="person.name.normalized"/>
     <xsl:param name="info"/>
     <xsl:choose>
       <xsl:when test="$info//copyright|$info//legalnotice">
-        <xsl:text>.SH "</xsl:text>
-        <xsl:call-template name="string.upper">
-          <xsl:with-param name="string">
+        <xsl:call-template name="make.subheading">
+          <xsl:with-param name="title">
             <xsl:call-template name="gentext">
               <xsl:with-param name="key">Copyright</xsl:with-param>
             </xsl:call-template>
           </xsl:with-param>
         </xsl:call-template>
-        <xsl:text>"&#10;</xsl:text>
         <!-- * the copyright mode="titlepage.mode" template is -->
         <!-- * imported from the HTML stylesheets -->
         <xsl:for-each select="