]> granicus.if.org Git - docbook-dsssl/commitdiff
Improve formatting of block quotes
authorNorman Walsh <ndw@nwalsh.com>
Fri, 12 Oct 2001 18:58:05 +0000 (18:58 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Fri, 12 Oct 2001 18:58:05 +0000 (18:58 +0000)
xsl/fo/block.xsl

index 2417c83cece6f2ea1547ddc8d69e21c123188301..45681a4c69d597e2a86f88836cf6ec9466c809fb 100644 (file)
 
 <xsl:template match="blockquote">
   <fo:block start-indent="0.5in" end-indent="0.5in">
-    <xsl:call-template name="semiformal.object"/>
+    <fo:block>
+      <xsl:if test="title">
+        <fo:block xsl:use-attribute-sets="formal.title.properties">
+          <xsl:apply-templates select="." mode="object.title.markup"/>
+        </fo:block>
+      </xsl:if>
+      <xsl:apply-templates select="*[local-name(.) != 'title'
+                                   and local-name(.) != 'attribution']"/>
+    </fo:block>
+    <xsl:if test="attribution">
+      <fo:block text-align="right">
+        <!-- mdash -->
+        <xsl:text>&#x2014;</xsl:text>
+        <xsl:apply-templates select="attribution"/>
+      </fo:block>
+    </xsl:if>
   </fo:block>
 </xsl:template>