]> granicus.if.org Git - docbook-dsssl/commitdiff
Added support for title in revhistory. Closes bug #1842847.
authorMauritz Jeanson <mj@johanneberg.com>
Fri, 15 Feb 2008 19:31:59 +0000 (19:31 +0000)
committerMauritz Jeanson <mj@johanneberg.com>
Fri, 15 Feb 2008 19:31:59 +0000 (19:31 +0000)
xsl/fo/titlepage.xsl

index 75dfd2dfd6f86ee67e3fce5fe0acbb0a7cb0ac77..55ac5eb4ac0b0839f4fc547022b6039661bcfbdd 100644 (file)
     </xsl:choose>
   </xsl:variable>
 
 <fo:table table-layout="fixed" width="{$table.width}" xsl:use-attribute-sets="revhistory.table.properties">
+ <fo:table table-layout="fixed" width="{$table.width}" xsl:use-attribute-sets="revhistory.table.properties">
     <fo:table-column column-number="1" column-width="proportional-column-width(1)"/>
     <fo:table-column column-number="2" column-width="proportional-column-width(1)"/>
     <fo:table-column column-number="3" column-width="proportional-column-width(1)"/>
       <fo:table-row>
         <fo:table-cell number-columns-spanned="3" xsl:use-attribute-sets="revhistory.table.cell.properties">
           <fo:block xsl:use-attribute-sets="revhistory.title.properties">
-            <xsl:call-template name="gentext">
-              <xsl:with-param name="key" select="'RevHistory'"/>
-            </xsl:call-template>
-          </fo:block>
+           <xsl:choose>
+             <xsl:when test="title|info/title">
+               <xsl:apply-templates select="title|info/title" mode="titlepage.mode"/>
+             </xsl:when>
+             <xsl:otherwise>
+               <xsl:call-template name="gentext">
+                 <xsl:with-param name="key" select="'RevHistory'"/>
+               </xsl:call-template>
+             </xsl:otherwise>
+           </xsl:choose>
+         </fo:block>
         </fo:table-cell>
       </fo:table-row>
-      <xsl:apply-templates mode="titlepage.mode"/>
+      <xsl:apply-templates select="*[not(self::title)]" mode="titlepage.mode"/>
     </fo:table-body>
   </fo:table>
+
 </xsl:template>
 
+
 <xsl:template match="revhistory/revision" mode="titlepage.mode">
   <xsl:variable name="revnumber" select="revnumber"/>
   <xsl:variable name="revdate"   select="date"/>