You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2001/09/27 14:30:56 UTC

DO NOT REPLY [Bug 3854] New: - aligning text to 'right'

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3854>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3854

aligning text to 'right'

           Summary: aligning text to 'right'
           Product: Fop
           Version: all
          Platform: All
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: general
        AssignedTo: fop-dev@xml.apache.org
        ReportedBy: roba@bml.uk.com


I have the following XSL 

		<fo:table border-width="0.25mm" border-style="solid" border-
color="#e4e4e4">
			<fo:table-column column-width="1cm"/>
			<fo:table-column column-width="2cm"/>
			<fo:table-column column-width="2cm"/>
			<fo:table-column column-width="2cm"/>
			<fo:table-body>
				<fo:table-row font-size="8pt" font-family="sans-
serif" line-height="15pt" space-after.optimum="5pt" background-color="#8CAAE6" 
color="white" text-align="center" padding-top="3pt">
					<fo:table-cell number-columns-
spanned="4">
						<fo:block text-
align="center">VAT Analysis</fo:block>
					</fo:table-cell>
				</fo:table-row>
				<fo:table-row font-size="8pt" font-family="sans-
serif" line-height="15pt" space-after.optimum="5pt" background-color="#8CAAE6" 
color="white" text-align="center" padding-top="3pt">
					<fo:table-cell>
						<fo:block>Code</fo:block>
					</fo:table-cell>
					<fo:table-cell>
						<fo:block>Rate</fo:block>
					</fo:table-cell>
					<fo:table-cell>
						<fo:block>Goods</fo:block>
					</fo:table-cell>
					<fo:table-cell>
						<fo:block>VAT</fo:block>
					</fo:table-cell>
				</fo:table-row>
				<xsl:for-each select="Invoice/TaxSubTotal">
				<fo:table-row font-size="8pt" >
					<fo:table-cell>
						<fo:block><fo:inline text-
align="center"><xsl:value-of select="TaxRate/@Code"/></fo:inline></fo:block>
					</fo:table-cell>
					<fo:table-cell>
						<fo:block><fo:inline text-
align="right"><xsl:value-of select="TaxRate"/>%</fo:inline></fo:block>
					</fo:table-cell>
					<fo:table-cell>
						<fo:block><fo:inline text-
align="right"><xsl:value-of select="TaxableValueAtRate"/></fo:inline></fo:block>
					</fo:table-cell>
					<fo:table-cell>
						<fo:block><fo:inline text-
align="right"><xsl:value-of select="TaxAtRate"/></fo:inline></fo:block>
					</fo:table-cell>
				</fo:table-row>
				</xsl:for-each>
			</fo:table-body>
		</fo:table>


That when run though XSL gives me the following FO XSL:-

<fo:table border-color="#e4e4e4" border-style="solid" border-width="0.25mm">
<fo:table-column column-width="1cm"/>
<fo:table-column column-width="2cm"/>
<fo:table-column column-width="2cm"/>
<fo:table-column column-width="2cm"/>
<fo:table-body>
<fo:table-row padding-top="3pt" text-align="center" color="white" background-
color="#8CAAE6" space-after.optimum="5pt" line-height="15pt" font-family="sans-
serif" font-size="8pt">
<fo:table-cell number-columns-spanned="4">
<fo:block text-align="center">VAT Analysis</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row padding-top="3pt" text-align="center" color="white" background-
color="#8CAAE6" space-after.optimum="5pt" line-height="15pt" font-family="sans-
serif" font-size="8pt">
<fo:table-cell>
<fo:block>Code</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>Rate</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>Goods</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>VAT</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row font-size="8pt">
<fo:table-cell>
<fo:block>
<fo:inline text-align="center">Z</fo:inline>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<fo:inline text-align="right">21.00%</fo:inline>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<fo:inline text-align="right">100.00</fo:inline>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<fo:inline text-align="right">21.00</fo:inline>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row font-size="8pt">
<fo:table-cell>
<fo:block>
<fo:inline text-align="center">E</fo:inline>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<fo:inline text-align="right">0.00%</fo:inline>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<fo:inline text-align="right">15.00</fo:inline>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<fo:inline text-align="right"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row font-size="8pt">
<fo:table-cell>
<fo:block>
<fo:inline text-align="center">L</fo:inline>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<fo:inline text-align="right">0.00%</fo:inline>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<fo:inline text-align="right">10.00</fo:inline>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block>
<fo:inline text-align="right"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>


However the FOP engine ( java org.apache.fop.apps.Fop a.fo a.pdf )

Gives the following errors, and does not align the elements to the right hand 
side as required.

WARNING: Unknown enumerated value for property 'text-align': right
Error in text-align property value 'right': 
org.apache.fop.fo.expr.PropertyException: No conversion defined

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org