xsl fo - xsl-fo table - text align right - numbers not quite right-justified - a bit wonky -
having bit of problem doing table numbers - seems right justification bit wonky.
when fo renders this, seems right justification of invoice number (ie 2311678) tiny bit left, , of vat number bit much right.
i had table positioned top right of page in test, , right border of vat number tiny bit left.
<xsl:template name="testlayout"> <fo:table width="59mm"> <fo:table-column column-width="23mm"/> <fo:table-column column-width="20mm"/> <fo:table-column column-width="25mm"/> <fo:table-body> <fo:table-row> <fo:table-cell number-columns-spanned="3"> <fo:block font-weight="bold">details</fo:block> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:block>our ref:</fo:block> </fo:table-cell> <fo:table-cell number-columns-spanned="2"> <fo:block text-align="right"> e/2004/001234 </fo:block> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:block>policy no:</fo:block> </fo:table-cell> <fo:table-cell number-columns-spanned="2"> <fo:block text-align="right"> gb0012345678 </fo:block> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:block>invoice date:</fo:block> </fo:table-cell> <fo:table-cell number-columns-spanned="2"> <fo:block text-align="right"> 17th june, 2014 </fo:block> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:block>invoice no:</fo:block> </fo:table-cell> <fo:table-cell number-columns-spanned="2"> <fo:block text-align="right"> 2311678 </fo:block> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:block>due date:</fo:block> </fo:table-cell> <fo:table-cell number-columns-spanned="2"> <fo:block text-align="right"> 17th july, 2014 </fo:block> </fo:table-cell> </fo:table-row> <!-- vat details --> <fo:table-row> <fo:table-cell number-columns-spanned="2"> <fo:block>vat registration no:</fo:block> </fo:table-cell> <fo:table-cell text-align="right"> <fo:block>119 1699 59</fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </xsl:template>
xsl-fo
No comments:
Post a Comment