]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed bug #1542773 section title in info not formatting correctly.
authorBob Stayton <bobs@sagehill.net>
Thu, 24 Aug 2006 09:16:14 +0000 (09:16 +0000)
committerBob Stayton <bobs@sagehill.net>
Thu, 24 Aug 2006 09:16:14 +0000 (09:16 +0000)
xsl/fo/sections.xsl

index 66528777929e4c51b5ed3b2c54c5a163424f8072..3fa7ac1b25589972f1c60a7311d1d1ad88f088fe 100644 (file)
                      |sect2/title
                      |sect3/title
                      |sect4/title
-                     |sect5/title"
+                     |sect5/title
+                     |section/info/title
+                     |simplesect/info/title
+                     |sect1/info/title
+                     |sect2/info/title
+                     |sect3/info/title
+                     |sect4/info/title
+                     |sect5/info/title"
               mode="titlepage.mode"
               priority="2">
-  <xsl:variable name="section" select="parent::*"/>
+
+  <xsl:variable name="section" 
+                select="(ancestor::section |
+                        ancestor::simplesect |
+                        ancestor::sect1 |
+                        ancestor::sect2 |
+                        ancestor::sect3 |
+                        ancestor::sect4 |
+                        ancestor::sect5)[position() = last()]"/>
+
   <fo:block keep-with-next.within-column="always">
     <xsl:variable name="id">
       <xsl:call-template name="object.id">