Re: Table overflows block

At 2011-10-25 16:47 +0300, Indrek Siitan wrote:
>Hi,
>
>I have the following XSL:
>
><fo:block border-width="2pt" border-style="solid" 
>border-color="black" space-before="0.4cm">
>  <fo:table table-layout="fixed" width="100%">
>    <fo:table-column column-width="7.5cm"/>
>    <fo:table-column column-width="9.5cm"/>
>    <fo:table-body>
>      <fo:table-row keep-together.within-column="always">
>        <fo:table-cell><fo:block font-size="9" font-weight="bold" 
> text-align="center" background-color="#E8E6DC" padding-left="0.1cm" 
> padding-after="0.1cm" padding-before="0.1cm" 
> padding-right="0.1cm">Tasumine</fo:block></fo:table-cell>
>        <fo:table-cell><fo:block font-size="9" font-weight="bold" 
> text-align="center" background-color="#E8E6DC" padding-left="0.1cm" 
> padding-after="0.1cm" padding-before="0.1cm" 
> padding-right="0.1cm">Poliisi maksumus</fo:block></fo:table-cell>
>      </fo:table-row>
>    </fo:table-body>
>  </fo:table>
></fo:block>
>
>(Note: omitted the XSL for content rows as they're irrelevant)
>
>The problem is that it outputs the table as follows:
>http://tfr.cafe.ee/kama/xsl-fo-broken-table.png
>
>Is there a way to fix it so the background color for the header row 
>doesn't overflow over the outer border?

Must be a problem with your formatter engine.  When I run the above 
code untouched, the attached PDF shows no such overlap.

Note that it is often unsafe to mix width="percentage" with 
column-width="absolute", as can be seen in the attached PDF the 
arithmetic doesn't add up for my page size.  It might be fine for 
your page size, but you don't show what the page size is.

I hope this helps, though I don't know what to advise about your FO processor.

. . . . . . . . . . . . Ken 
--
Contact us for world-wide XML consulting and instructor-led training
Crane Softwrights Ltd.            http://www.CraneSoftwrights.com/f/
G. Ken Holman                   mailto:gkholman@CraneSoftwrights.com
Google+ profile: https://plus.google.com/116832879756988317389/about
Legal business disclaimers:    http://www.CraneSoftwrights.com/legal

Received on Tuesday, 25 October 2011 15:24:24 UTC