]> granicus.if.org Git - docbook-dsssl/commitdiff
Updated abstract template so that the abstract.properties and
authorMauritz Jeanson <mj@johanneberg.com>
Sun, 15 Feb 2009 11:02:46 +0000 (11:02 +0000)
committerMauritz Jeanson <mj@johanneberg.com>
Sun, 15 Feb 2009 11:02:46 +0000 (11:02 +0000)
abstract.title.properties attribute-sets are used. See bug #1842865.

xsl/fo/titlepage.xsl

index 9f3c4cdda62726ab4398e2c7ec2ea37412c8bd5b..2dcf318895e288b3c96de17a46f8a48a2df526b8 100644 (file)
 </xsl:template>
 
 <xsl:template match="abstract" mode="titlepage.mode">
-  <fo:block>
-    <xsl:call-template name="formal.object.heading">
-      <xsl:with-param name="title">
-        <xsl:apply-templates select="." mode="title.markup"/>
-      </xsl:with-param>
-    </xsl:call-template>
-    <xsl:apply-templates mode="titlepage.mode"/>
+  <fo:block xsl:use-attribute-sets="abstract.properties">
+    <fo:block xsl:use-attribute-sets="abstract.title.properties">
+      <xsl:choose>
+       <xsl:when test="title|info/title">
+         <xsl:apply-templates select="title|info/title"/>
+       </xsl:when>
+       <xsl:otherwise>
+         <xsl:call-template name="gentext">
+           <xsl:with-param name="key" select="'Abstract'"/>
+         </xsl:call-template>
+       </xsl:otherwise>
+      </xsl:choose>
+    </fo:block>
+    <xsl:apply-templates select="*[not(self::title)]" mode="titlepage.mode"/>
   </fo:block>
 </xsl:template>