]> granicus.if.org Git - docbook-dsssl/commitdiff
Fix process.root template so document title can come from info as well.
authorBob Stayton <bobs@sagehill.net>
Fri, 30 Aug 2013 21:10:59 +0000 (21:10 +0000)
committerBob Stayton <bobs@sagehill.net>
Fri, 30 Aug 2013 21:10:59 +0000 (21:10 +0000)
xsl/fo/docbook.xsl

index 5c41c245aecc98b23a1eb1c4b5a9628b1e0ab1d5..fbf6ef051dab81d518bfebaa3b2d136108340365 100644 (file)
 
   <xsl:variable name="title">
     <xsl:choose>
-      <xsl:when test="$document.element/title[1]">
-        <xsl:value-of select="$document.element/title[1]"/>
+      <xsl:when test="$document.element/title | $document.element/info/title">
+        <xsl:value-of 
+             select="($document.element/title | $document.element/info/title)[1]"/>
       </xsl:when>
       <xsl:otherwise>[could not find document title]</xsl:otherwise>
     </xsl:choose>