W3C home > Mailing lists > Public > www-xsl-fo@w3.org > July 2009

FOP 0.95 and border-collapse

From: crischprolch <crischprolch@yahoo.fr>
Date: Mon, 27 Jul 2009 05:04:58 -0700 (PDT)
Message-ID: <24679540.post@talk.nabble.com>
To: www-xsl-fo@w3.org
Hi,

I'm using FOP 0.95 to build PDF files from XML files. When I am drawing
tables, I would like that all borders have the same size (ie I don't want
that some borders be in double) so I value the "border-collapse" attribute
on the "fo:table" element to "collapse". But there are some drawbacks : 

http://www.nabble.com/file/p24679540/coin_border-collapse.jpg 

here the entire table :

http://www.nabble.com/file/p24679540/table_border-collapse.jpg 

And the code :

<code>
<fo:table table-layout="fixed" width="100%" border-collapse="collapse"> 
   <fo:table-column column-width="20%"/> 
   <fo:table-column column-width="30%"/> 
   <fo:table-column column-width="50%"/> 
   <fo:table-header>
      <fo:table-row> 
         <fo:table-cell border="1.5pt solid #0000FF"
number-columns-spanned="2"> 
            <fo:block>1 - VOS COORDONNEES</fo:block> 
         </fo:table-cell> 
         <fo:table-cell> 
            <fo:block/> 
         </fo:table-cell> 
      </fo:table-row>
   </fo:table-header>
   <fo:table-body border="1.5pt solid #0000FF"> 
      <fo:table-row>
         <fo:table-cell number-columns-spanned="3">
            <fo:block>Titre</fo:block> 
         </fo:table-cell> 
      </fo:table-row> 
      <fo:table-row>
         <fo:table-cell number-columns-spanned="3">
            <fo:block>Nom</fo:block> 
         </fo:table-cell> 
      </fo:table-row>                                                         
   </fo:table-body> 
</fo:table>
</code>

Thanks for your help...
-- 
View this message in context: http://www.nabble.com/FOP-0.95-and-border-collapse-tp24679540p24679540.html
Sent from the w3.org - www-xsl-fo mailing list archive at Nabble.com.
Received on Tuesday, 28 July 2009 08:43:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 28 July 2009 08:43:08 GMT