]> granicus.if.org Git - docbook-dsssl/commitdiff
fix bug 2949567 title in revhistory breaks FO transform.
authorBob Stayton <bobs@sagehill.net>
Sat, 20 Mar 2010 04:56:04 +0000 (04:56 +0000)
committerBob Stayton <bobs@sagehill.net>
Sat, 20 Mar 2010 04:56:04 +0000 (04:56 +0000)
xsl/fo/block.xsl

index 3c7a3b21117309622270f931ca5a5edf3deb8f5e..29e6178270a3f4af88a99ec30b9eb9a96e83f79c 100644 (file)
       <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>
+            <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>
   </fo:table>
 </xsl:template>
 
+<xsl:template match="revhistory/title">
+  <!-- Handled in titlepage.mode -->
+</xsl:template>
+
 <xsl:template match="revhistory/revision">
   <xsl:variable name="revnumber" select="revnumber"/>
   <xsl:variable name="revdate"   select="date"/>