Hi Jeremias: Many thanks.
We had explore the situation, however, still facing some problem when column span is present in a table cell. Without column span, the situation looks ok. But when we put column span in a cell, we see overlapping borders. Are we doing any mistake somewhere? Please help. The sample fo file is given below. Regards, Debasish ----- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:repro="http://www.anshinsoft.com/fop/extensions"> <fo:layout-master-set> <fo:simple-page-master master-name="repro0" margin-top="10.0pt" margin-bottom="10.0pt" margin-left="10.0pt" margin-right="10.0pt" page-height="842pt" page-width="595pt"> <fo:region-body margin-top="20.0pt" margin-bottom="15.0pt" margin-left="10.0pt" margin-right="10.0pt"> </fo:region-body> <fo:region-before region-name="Header"> </fo:region-before> <fo:region-after region-name="Footer" extent="15pt"> </fo:region-after> <fo:region-start region-name="LeftSide"> </fo:region-start> <fo:region-end region-name="RightSide" extent="10pt"> </fo:region-end> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="repro0"> <fo:static-content flow-name="Header"> <fo:block-container height="20pt" width="575pt" top="0pt" left="0pt" position="absolute"> <fo:block> </fo:block> </fo:block-container></fo:static-content> <fo:static-content flow-name="Footer"> <fo:block-container height="15pt" width="575pt" top="0pt" left="0pt" position="absolute"> <fo:block> </fo:block> </fo:block-container></fo:static-content> <fo:static-content flow-name="LeftSide"> <fo:block-container height="787pt" width="10pt" top="20pt" left="0pt" position="absolute" background-color="#3344FF"> <fo:block> </fo:block> </fo:block-container></fo:static-content> <fo:static-content flow-name="RightSide"> <fo:block-container height="787pt" width="10pt" top="20pt" left="0pt" position="absolute" background-color="#365EFF"> <fo:block> </fo:block> </fo:block-container></fo:static-content> <fo:flow flow-name="xsl-region-body"> <fo:block> <fo:table table-layout="fixed" padding-top="10.0pt" padding-bottom="10.0pt" padding-left="10.0pt" padding-right="10.0pt" margin-top="10.0pt" margin-bottom="10.0pt" margin-left="10.0pt" margin-right="10.0pt" border-top-width="10.0pt" border-top-style="solid" border-top-color="#F0181C" border-bottom-width="10.0pt" border-bottom-style="solid" border-bottom-color="#F0181C" border-left-width="10.0pt" border-left-style="solid" border-left-color="#F0181C" border-right-width="10.0pt" border-right-style="solid" border-right-color="#F0181C" background-color="#FFFFFF"> <fo:table-column column-width="124.0pt"></fo:table-column> <fo:table-column column-width="124.0pt"></fo:table-column> <fo:table-column column-width="124.0pt"></fo:table-column> <fo:table-column column-width="123.0pt"></fo:table-column> <fo:table-body> <fo:table-row height="80pt" > <fo:table-cell background-color="#FFFFFF" padding-top="10.0pt" padding-bottom="10.0pt" padding-left="10.0pt" padding-right="10.0pt" border-top-width="10.0pt" border-top-style="solid" border-top-color="#16F028" border-bottom-width="10.0pt" border-bottom-style="solid" border-bottom-color="#16F028" border-left-width="10.0pt" border-left-style="solid" border-left-color="#16F028" border-right-width="10.0pt" border-right-style="solid" border-right-color="#16F028" wrap-option="no-wrap" display-align="before" text-align="left"> <fo:block><fo:block text-align="left" white-space-collapse="false" linefeed-treatment="preserve" white-space-treatment="preserve" line-height="85%"><fo:inline color="#000000" text-decoration="none" font-family="'Tahoma'" font-size="12pt" font-weight="normal" font-style="normal">text11</fo:inline></fo:block></fo:block></fo:table-cell> <fo:table-cell background-color="#FFFFFF" padding-top="10.0pt" padding-bottom="10.0pt" padding-left="10.0pt" padding-right="10.0pt" border-top-width="10.0pt" border-top-style="solid" border-top-color="#14F745" border-bottom-width="10.0pt" border-bottom-style="solid" border-bottom-color="#14F745" border-left-width="10.0pt" border-left-style="solid" border-left-color="#14F745" border-right-width="10.0pt" border-right-style="solid" border-right-color="#14F745" wrap-option="no-wrap" display-align="before" text-align="left"> <fo:block><fo:block text-align="left" white-space-collapse="false" linefeed-treatment="preserve" white-space-treatment="preserve" line-height="85%"><fo:inline color="#000000" text-decoration="none" font-family="'Tahoma'" font-size="12pt" font-weight="normal" font-style="normal">text12</fo:inline></fo:block></fo:block></fo:table-cell> <fo:table-cell background-color="#FFFFFF" padding-top="10.0pt" padding-bottom="10.0pt" padding-left="10.0pt" padding-right="10.0pt" border-top-width="10.0pt" border-top-style="solid" border-top-color="#1FFF4F" border-bottom-width="10.0pt" border-bottom-style="solid" border-bottom-color="#1FFF4F" border-left-width="10.0pt" border-left-style="solid" border-left-color="#1FFF4F" border-right-width="10.0pt" border-right-style="solid" border-right-color="#1FFF4F" wrap-option="no-wrap" display-align="before" text-align="left"> <fo:block><fo:block text-align="left" white-space-collapse="false" linefeed-treatment="preserve" white-space-treatment="preserve" line-height="85%"><fo:inline color="#000000" text-decoration="none" font-family="'Tahoma'" font-size="12pt" font-weight="normal" font-style="normal">text13</fo:inline></fo:block></fo:block></fo:table-cell> <fo:table-cell background-color="#FFFFFF" padding-top="10.0pt" padding-bottom="10.0pt" padding-left="10.0pt" padding-right="10.0pt" border-top-width="10.0pt" border-top-style="solid" border-top-color="#12FF51" border-bottom-width="10.0pt" border-bottom-style="solid" border-bottom-color="#12FF51" border-left-width="10.0pt" border-left-style="solid" border-left-color="#12FF51" border-right-width="10.0pt" border-right-style="solid" border-right-color="#12FF51" wrap-option="no-wrap" display-align="before" text-align="left"> <fo:block><fo:block text-align="left" white-space-collapse="false" linefeed-treatment="preserve" white-space-treatment="preserve" line-height="85%"><fo:inline color="#000000" text-decoration="none" font-family="'Tahoma'" font-size="12pt" font-weight="normal" font-style="normal">text14</fo:inline></fo:block></fo:block></fo:table-cell> </fo:table-row> <fo:table-row height="80pt" > <fo:table-cell background-color="#FFFFFF" padding-top="10.0pt" padding-bottom="10.0pt" padding-left="10.0pt" padding-right="10.0pt" border-top-width="10.0pt" border-top-style="solid" border-top-color="#16F028" border-bottom-width="10.0pt" border-bottom-style="solid" border-bottom-color="#16F028" border-left-width="10.0pt" border-left-style="solid" border-left-color="#16F028" border-right-width="10.0pt" border-right-style="solid" border-right-color="#16F028" number-columns-spanned="4" wrap-option="no-wrap" display-align="before" text-align="left"> <fo:block><fo:block text-align="left" white-space-collapse="false" linefeed-treatment="preserve" white-space-treatment="preserve" line-height="85%"><fo:inline color="#000000" text-decoration="none" font-family="'Tahoma'" font-size="12pt" font-weight="normal" font-style="normal">text21</fo:inline></fo:block></fo:block></fo:table-cell> <fo:table-cell ><fo:block/></fo:table-cell> <fo:table-cell ><fo:block/></fo:table-cell> <fo:table-cell ><fo:block/></fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:block><fo:block id="theEnd4"></fo:block></fo:flow> </fo:page-sequence> </fo:root> -----Original Message----- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 12:54 PM To: fop-users@xmlgraphics.apache.org Subject: Re: FOP 0.92 Beta : fo:table under fo:table-cell Well, you just have to use consistent widths. You use different widths all over the place so it's no surprise the line don't end up in the right place. Once you use 3*184pt (=552pt) but then you use 550pt and 548pt in other places. You need to be aware that the borders on the start and end sides (left/right in lr-tb writing mode) are defined to lie outside the content rectangle [1] and that width properties usually specify the width of the content rectangle, not the allocation rectangle. Furthermore, there's no point in specifying width on a table-cell when the column widths are already specified through table-column elements. Finally, I'd have a closer eye to FOP's log output, i.e. add width properties to fo:table elements and fix those height properties all over the place. I'd work less with nested tables and more with cell spanning. That will also make your FO much more readable and it will be easier to deal with the borders. [1] http://www.w3.org/TR/xsl11/#area-geo On 18.07.2006 07:51:29 Debasish Jana wrote: > Hi: > > Many thanks for your prompt reply. > A sample xsl-fo file is given below. > > The problem we see is as follows: > > If we render this fo to PDF, the output shows, the tables with borders > unaligned on the right side. Ideally, we would love to have the borders of > the nested table falling on one another so that it looks nice. > > Any clue, please? > > Thanking you in anticipation, <snip/> Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]