Added left, right, center, justify items to cater for role text alignment as for color needed for PDF.

[SVN r86784]
This commit is contained in:
Paul A. Bristow 2013-11-22 09:35:22 +00:00
parent 37b65b9320
commit 90c06c4483

View File

@ -312,6 +312,39 @@
</fo:inline>
</xsl:template>
<!-- alignment -->
<xsl:template match="phrase[@role='aligncenter']">
<fo:inline>
<fo:block text-align="center">
<xsl:apply-templates/>
</fo:block>
</fo:inline>
</xsl:template>
<xsl:template match="phrase[@role='alignleft']">
<fo:inline>
<fo:block text-align="left">
<xsl:apply-templates/>
</fo:block>
</fo:inline>
</xsl:template>
<xsl:template match="phrase[@role='alignright']">
<fo:inline>
<fo:block text-align="right">
<xsl:apply-templates/>
</fo:block>
</fo:inline>
</xsl:template>
<xsl:template match="phrase[@role='alignjustify']">
<fo:inline>
<fo:block text-align="justify">
<xsl:apply-templates/>
</fo:block>
</fo:inline>
</xsl:template>
<!--