xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Baier" ...@solyp.de>
Subject AW: Problem : Table not correctly aligned ...
Date Tue, 01 Jul 2003 15:39:19 GMT
Hello,

check the FAQ site of FOP...

greez,
mark

-----Urspr├╝ngliche Nachricht-----
Von: Selber Jean-Fran├žois [mailto:jfselber@oxymel.com]
Gesendet: Dienstag, 1. Juli 2003 17:37
An: fop-user@xml.apache.org
Betreff: Problem : Table not correctly aligned ...


Hello,

I want to write a paragraph with a left margin of 5 centimeters, this
paragraph includes a table and I would like to see what the behavior of the
included table is in such a situation. The result I expect is to see the
table and the text correctly aligned.
But the table is not  correctly aligned.
May be my Fo is not correct?
It would be find if  somebody could help me?

Best regards
Thanks
See the FO sample file :

<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:ofcR="http://www.oxymel.com/ofc/reporting"
xmlns:fox="http://xml.apache.org/fop/extensions"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<fo:layout-master-set>
<fo:simple-page-master master-name="*_*" margin-left="2.5cm"
page-width="21cm" margin-right="2.5cm" margin-bottom="2.5cm"
margin-top="2.5cm" page-height="29.7cm">
<fo:region-body region-name="xsl-region-body"/>
<fo:region-before region-name="xsl-region-before-*_*"/>
<fo:region-after region-name="xsl-region-after-*_*"/>
<fo:region-start region-name="xsl-region-start-*_*"/>
<fo:region-end region-name="xsl-region-end-*_*"/>
</fo:simple-page-master>
<fo:page-sequence-master master-name="*">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference odd-or-even="any" page-position="any"
master-reference="*_*"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
</fo:layout-master-set>



<fo:page-sequence master-reference="*">
<fo:flow flow-name="xsl-region-body">
<fo:block>
<fo:block margin-left="5cm" text-align="justify">
This is a paragraph with a left margin of 5 centimeters, this paragraph
includes a table and I would like to see what the behavior of the included
table is in such a situation. The result I expect is to see the table and
the text correctly aligned.
<fo:table width="100%" table-layout="fixed">
<fo:table-column
column-width="proportional-column-width(33.333333333333336)"/>
<fo:table-column
column-width="proportional-column-width(33.333333333333336)"/>
<fo:table-column
column-width="proportional-column-width(33.333333333333336)"/>
<fo:table-body>
<fo:table-row>
 <fo:table-cell number-rows-spanned="1" number-columns-spanned="1"
border-color="black" border-style="solid">
<fo:block>Id</fo:block>
</fo:table-cell>
 <fo:table-cell number-rows-spanned="1" number-columns-spanned="1"
border-color="black" border-style="solid">
<fo:block>Name</fo:block>
</fo:table-cell>
 <fo:table-cell number-rows-spanned="1" number-columns-spanned="1"
border-color="black" border-style="solid">
<fo:block>Compagny</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
 <fo:table-cell number-rows-spanned="1" number-columns-spanned="1"
border-color="black" border-style="solid">
<fo:block>0</fo:block>
</fo:table-cell>
 <fo:table-cell number-rows-spanned="1" number-columns-spanned="1"
border-color="black" border-style="solid">
<fo:block>Marthe GRONGI</fo:block>
</fo:table-cell>
 <fo:table-cell number-rows-spanned="1" number-columns-spanned="1"
border-color="black" border-style="solid">
<fo:block>Ford</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
 <fo:table-cell number-rows-spanned="1" number-columns-spanned="1"
border-color="black" border-style="solid">
<fo:block>1</fo:block>
</fo:table-cell>
 <fo:table-cell number-rows-spanned="1" number-columns-spanned="1"
border-color="black" border-style="solid">
<fo:block>John FANTA</fo:block>
</fo:table-cell>
 <fo:table-cell number-rows-spanned="1" number-columns-spanned="1"
border-color="black" border-style="solid">
<fo:block>Macdonald</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
 <fo:table-cell number-rows-spanned="1" number-columns-spanned="1"
border-color="black" border-style="solid">
<fo:block>2</fo:block>
</fo:table-cell>
 <fo:table-cell number-rows-spanned="1" number-columns-spanned="1"
border-color="black" border-style="solid">
<fo:block>Marie SAN</fo:block>
</fo:table-cell>
 <fo:table-cell number-rows-spanned="1" number-columns-spanned="1"
border-color="black" border-style="solid">
<fo:block>Citroen</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
And this is the last part of the test, the same paragraph with the same left
margin.

</fo:block>

</fo:block>

</fo:flow>
</fo:page-sequence>
</fo:root>



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


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


Mime
View raw message