]> granicus.if.org Git - docbook-dsssl/commitdiff
Check for attribution before generating markup for it.
authorNorman Walsh <ndw@nwalsh.com>
Sat, 21 Jun 2003 14:32:29 +0000 (14:32 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Sat, 21 Jun 2003 14:32:29 +0000 (14:32 +0000)
xsl/fo/block.xsl

index 15424ccf9a23d944265a98c8ff8f26843858bebf..46d723d8041aed81d339698fc55a3d82f01834af 100644 (file)
   <fo:block>
     <xsl:call-template name="anchor"/>
     <xsl:apply-templates select="para|simpara|formalpara|literallayout"/>
-    <fo:inline>
-      <xsl:text>--</xsl:text>
-      <xsl:apply-templates select="attribution"/>
-    </fo:inline>
+    <xsl:if test="attribution">
+      <fo:inline>
+        <xsl:text>--</xsl:text>
+        <xsl:apply-templates select="attribution"/>
+      </fo:inline>
+    </xsl:if>
   </fo:block>
 </xsl:template>