I'm having an issue with a table and an absolutely positioned block container. 
I am unsure whether it is resulting from my lack of experience or a bug in FOP. 
I am using FOP 0.94 and rendering PDFs.
 
I want to position the table absolutely within the page header. The only way I 
know to do this is with a block-container. The problem is that when I include 
the absoulte-position attribute, FOP ignores my number-columns-spanned 
attribute on the cells in the third row. If I remove the absolute-position 
attribute, the table renders correctly (but obviously not where I want it to).
 
Also interesting to me is that if I specify a height="10mm" attribute for the 
table rows and leave the absolute-position attribute in place, the table 
structure is rendered correctly and positioned where I want, but 10mm is far to 
tall. If I go down to a more reasonable height="5mm", number-rows-spanned is 
ignored and I get the following message:
 
Jan 16, 2008 9:02:40 AM 
org.apache.fop.layoutmgr.table.TableContentLayoutManagercreateElementsForRowGroup
WARNING: The contents of row 4 are taller than they should be (there is a 
block-progression-dimension or height constraint on the indicated row). Due to 
its contents the row grows to 19200 millipoints, but the row shouldn't get any 
taller than MinOptMax[min=opt=max=14173] millipoints. (fo:table-row, location: 
121/28)
 
My inclination would be to call it a bug because Antenna House's XSL Formatter 
(V4.2 Evaluation) renders it correctly. I'm still quite new to XSL-FO, however, 
so I'm unsure if it's something I've done.
 
Any insight here? Is it a bug? Is my fo bad? Is there a way to absolutely 
position the table and get it's structure to render correctly?
 
Thanks!
 
Dave G.
 
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";
xmlns:barcode="http://barcode4j.krysalis.org/ns";>
<fo:layout-master-set>
<fo:simple-page-master master-name="only_page" page-width="8.5in" 
page-height="11in" margin-top="5mm"
margin-bottom="19mm"
margin-left="10mm"
margin-right="10mm">
<fo:region-body region-name="main_body" margin-top="102mm"/>
<fo:region-before region-name="std_header" extent="95mm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="only_page">
<fo:static-content flow-name="std_header" font-family="Courier" font-size="8pt">
<fo:block-container absolute-position="fixed" top="90mm" left="10mm">
<fo:table border-collapse="collapse" border-width="0.2mm" border-style="solid"
absolute-position="fixed"
top="90mm"
left="10mm">
<fo:table-column column-width="7mm" border-width="0.2mm" border-style="solid"/>
<fo:table-column column-width="7mm" border-width="0.2mm" border-style="solid"/>
<fo:table-column column-width="7mm" border-width="0.2mm" border-style="solid"/>
<fo:table-column column-width="15mm" border-width="0.2mm" border-style="solid"/>
<fo:table-column column-width="9mm" border-width="0.2mm" border-style="solid"/>
<fo:table-column column-width="6mm" border-width="0.2mm" border-style="solid"/>
<fo:table-column column-width="15mm" border-width="0.2mm" border-style="solid"/>
<fo:table-column column-width="39mm" border-width="0.2mm" border-style="solid"/>
<fo:table-column column-width="14mm" border-width="0.2mm" border-style="solid"/>
<fo:table-column column-width="20mm" border-width="0.2mm" border-style="solid"/>
<fo:table-column column-width="8mm" border-width="0.2mm" border-style="solid"/>
<fo:table-column column-width="20mm" border-width="0.2mm" border-style="solid"/>
<fo:table-column column-width="7mm" border-width="0.2mm" border-style="solid"/>
<fo:table-column column-width="7mm" border-width="0.2mm" border-style="solid"/>
<fo:table-column column-width="7mm" border-width="0.2mm" border-style="solid"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell number-columns-spanned="3">
<fo:block text-align="center">DATE</fo:block>
</fo:table-cell>
<fo:table-cell number-columns-spanned="2">
<fo:block text-align="center">INVOICE #</fo:block>
</fo:table-cell>
<fo:table-cell number-columns-spanned="2">
<fo:block text-align="center">ACCOUNT #</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="center">CUSTOMER ORDER #</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="center">TERMS</fo:block>
</fo:table-cell>
<fo:table-cell number-columns-spanned="3">
<fo:block text-align="center">SHIPPED VIA</fo:block>
</fo:table-cell>
<fo:table-cell number-columns-spanned="3">
<fo:block text-align="center">SHIP DATE</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block text-align="center">09</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="center">26</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="center">07</fo:block>
</fo:table-cell>
<fo:table-cell number-columns-spanned="2">
<fo:block text-align="center">123456</fo:block>
</fo:table-cell>
<fo:table-cell number-columns-spanned="2">
<fo:block text-align="center">1234567</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="center">Cust. 5</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="center">NET 30 </fo:block>
</fo:table-cell>
<fo:table-cell number-columns-spanned="3">
<fo:block>UPS GROUND (7-10 DAYS) CM</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="center">09 </fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="center">26 </fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="center">07 </fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell number-columns-spanned="3" number-rows-spanned="2">
<fo:block text-align="center">ITEM</fo:block>
<fo:block text-align="center">NUMBER</fo:block>
</fo:table-cell>
<fo:table-cell number-columns-spanned="4">
<fo:block text-align="center">QUANTITY</fo:block>
</fo:table-cell>
<fo:table-cell number-columns-spanned="2">
<fo:block text-align="center">Placed by: CSR</fo:block>
</fo:table-cell>
<fo:table-cell number-rows-spanned="2">
<fo:block text-align="center">RETAIL</fo:block>
<fo:block text-align="center">PRICE EA.</fo:block>
</fo:table-cell>
<fo:table-cell number-rows-spanned="2">
<fo:block text-align="center">%</fo:block>
<fo:block text-align="center">DISC</fo:block>
</fo:table-cell>
<fo:table-cell number-rows-spanned="2">
<fo:block text-align="center">DISCOUNTED</fo:block>
<fo:block text-align="center">PRICE EACH</fo:block>
</fo:table-cell>
<fo:table-cell number-columns-spanned="3" number-rows-spanned="2" 
display-align="after">
<fo:block text-align="center">AMOUNT</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell>
<fo:block text-align="center">ORDERED</fo:block>
</fo:table-cell>
<fo:table-cell number-columns-spanned="2">
<fo:block text-align="center">SHIPPED</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="center">BACK ORD</fo:block>
</fo:table-cell>
<fo:table-cell number-columns-spanned="2">
<fo:block text-align="center">DESCRIPTION</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block-container>
</fo:static-content>
<fo:flow flow-name="main_body" font-family="Courier" font-size="8pt">
<fo:block/>
</fo:flow>
</fo:page-sequence>
</fo:root>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to