You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Debasish Jana <de...@anshinsoft.com> on 2006/08/17 13:44:38 UTC

border-collapse="collapse"

Quick question:

Does FOP 0.92 support border-collapse="collapse" for fo:table?
I need to collapse adjacent cell borders to one

Regards,

Debasish


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


Re: border-collapse="collapse"

Posted by Andreas L Delmelle <a_...@pandora.be>.
On Aug 18, 2006, at 07:20, Debasish Jana wrote:

Hi,

> Thanks, Chris.
> Is there any workaround to solve the problem? One solution could be to
> distribute the border-width parameters in adjacent cells, where  
> adjacency is
> with column margin or row margin? Any other workaround?

The trick is to use only half the border-width for each cell, and  
once on the table as well for the outer edges.

For example, if you need a 1pt border for all cells, something like  
this would suffice:

<fo:table border-collapse="separate"
           border="solid 0.5pt black">
   <fo:table-body>
     <fo:table-row>
       <fo:table-cell border="solid 0.5pt black">
       ...

Take care of the border-shorthand above. If the content of the table  
or of one cell can be broken over multiple pages, you'll need  
something like:

<fo:table border-collapse="separate"
           border-style="solid" border-color="black"
           border-before-width.length="0.5pt"
           border-before-width.conditionality="retain"
           border-after-width.length="0.5pt"
           border-after-width.conditionality="retain"
           border-start-width.length="0.5pt"
           border-and-width.length="0.5pt">
   <fo:table-body>
     <fo:table-row>
       <fo:table-cell border-style="solid" border-color="black"
           border-before-width.length="0.5pt"
           border-before-width.conditionality="retain"
           border-after-width.length="0.5pt"
           border-after-width.conditionality="retain"
           border-start-width.length="0.5pt"
           border-and-width.length="0.5pt">
       ...

HTH!

Cheers,

Andreas


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


RE: border-collapse="collapse"

Posted by Debasish Jana <de...@anshinsoft.com>.
Thanks, Chris. 
Is there any workaround to solve the problem? One solution could be to
distribute the border-width parameters in adjacent cells, where adjacency is
with column margin or row margin? Any other workaround?

Regards,

Debasish

-----Original Message-----
From: Chris Bowditch [mailto:bowditch_chris@hotmail.com] 
Sent: Thursday, August 17, 2006 6:21 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: border-collapse="collapse"

Debasish Jana wrote:

> Quick question:
> 
> Does FOP 0.92 support border-collapse="collapse" for fo:table?
> I need to collapse adjacent cell borders to one

Quick Answer: No, sorry!

Chris




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


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


Re: border-collapse="collapse"

Posted by Chris Bowditch <bo...@hotmail.com>.
Debasish Jana wrote:

> Quick question:
> 
> Does FOP 0.92 support border-collapse="collapse" for fo:table?
> I need to collapse adjacent cell borders to one

Quick Answer: No, sorry!

Chris




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