]> granicus.if.org Git - docbook-dsssl/commitdiff
Add graphic/@align value to fo:block text-align property
authorBob Stayton <bobs@sagehill.net>
Wed, 18 Dec 2002 19:53:18 +0000 (19:53 +0000)
committerBob Stayton <bobs@sagehill.net>
Wed, 18 Dec 2002 19:53:18 +0000 (19:53 +0000)
since text-align on external-graphic doesn't seem to work.

xsl/fo/graphics.xsl

index 134e627a9395bb237c42684fa4a720362e81524b..c6738143384fea73d1a35b1f86022b2db1cba38c 100644 (file)
     </xsl:when>
     <xsl:otherwise>
       <fo:block>
+        <xsl:if test="@align">
+          <xsl:attribute name="text-align">
+            <xsl:value-of select="@align"/>
+          </xsl:attribute>
+        </xsl:if>
         <xsl:call-template name="process.image"/>
       </fo:block>
     </xsl:otherwise>