Your FO code works fine in FOP 0.20.5.

I get two tables - and table 2 starts on a fresh page.
(and the separator row spans across columns).

So - a mystery or something else not yet implemented in 1.0?

BTW - my primary use for FOP is for the layout of analysis tables, so I've done many 1000s of hours experimenting with the table layout options.

There are only two problems that I can't overcome:
1 - With text in a footnote / below a table the bottom margin is not correctly calculated - and FOP will sometimes split a table onto the next page before it reaches the bottom of the previous page.
(usually the margin seems to be about 2 x the height of the trailing text.)
2 - A slightly different behaviour than other renderers in how background and border colors overlap each other - producing some small, jagged breaks in lines.
(and there are a few features not implemented in 0.20.5).



Mike

Richard Mixon (qwest) wrote:

Mike Trotman wrote:


If you wrap you table inside
<fo:block break-before='page'>
...............Table ...............
</fo:block>
it should work as Jay said.



I had tried that before, then I say you used single quote (should not matter, I know) so I said let's try it that way. I still end up with both tables run against each other on the same page. Immediately below is the FO file I'm running. Please let me know if you see anything wrong, or better yet if it renders correctly for you.

Thank you - Richard

<?xml version="1.0" encoding="utf-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";
xmlns:xlink="http://www.w3.org/1999/xlink";
xmlns:xsl="http://www.w3.org/1999/Transform";


 <!-- defines the layout master -->
 <fo:layout-master-set>
   <fo:simple-page-master
       master-name="report1"
       page-height="8.5in"
       page-width="11in"
       margin-top=".5in"
       margin-bottom=".5in"
       margin-left=".5in"
       margin-right=".5in">
     <fo:region-body margin-top=".5in" margin-bottom=".5in"/><!-- This
leaves about 10in for text -->
     <fo:region-before extent=".5in"/>
     <fo:region-after extent=".5in"/>
   </fo:simple-page-master>
 </fo:layout-master-set>

 <!-- starts actual layout -->

 <fo:page-sequence master-reference="report1">
   <fo:static-content flow-name="xsl-region-before">
     <fo:block line-height="14pt" font-size="10pt"
       text-align="end">${report.headerLeft[0]}</fo:block>
   </fo:static-content>
   <fo:static-content flow-name="xsl-region-after">
     <fo:block line-height="14pt" font-size="10pt"
       text-align="end">Page
       <fo:page-number/>
     </fo:block>
   </fo:static-content>

<fo:flow flow-name="xsl-region-body">


     <!-- table 1 start -->
     <fo:table table-layout="fixed" border-collapse="separate"
border-color="black" border-width="0.5pt" border-style="solid" >
       <fo:table-column column-width=".5in"/><!-- Learning Item Number
-->
       <fo:table-column column-width="1in"/><!-- Total Responses -->
       <fo:table-column column-width="1in"/><!-- Total Correct -->
       <fo:table-column column-width="1in"/><!-- Total Correct Percent
(of Total Responses) -->
       <fo:table-column column-width="1in"/><!-- Total Errors -->
       <fo:table-column column-width="1in"/><!-- Total Incorrect
Percent (of Total Responses) -->
       <fo:table-header>
         <fo:table-row>
           <fo:table-cell ><fo:block text-align="right">Item
Num</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">Responses</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">Correct</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block text-align="right">%
Correct</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">Errors</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block text-align="right">%
Errors</fo:block></fo:table-cell>
         </fo:table-row>
       </fo:table-header>
       <fo:table-body>
         <fo:table-row><!-- SEPARATOR ROW -->
           <fo:table-cell  number-columns-spanned="6"><fo:block
text-align="left">Group of Rows #1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1</fo:block></fo:table-cell>
         </fo:table-row>
         <fo:table-row>
           <fo:table-cell ><fo:block
text-align="right">1</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">A</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">B</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">C</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">D</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">E</fo:block></fo:table-cell>
         </fo:table-row>
         <fo:table-row>
           <fo:table-cell ><fo:block
text-align="right">2</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">A</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">B</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">C</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">D</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">E</fo:block></fo:table-cell>
         </fo:table-row>
         <fo:table-row>
           <fo:table-cell ><fo:block
text-align="right">3</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">A</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">B</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">C</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">D</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">E</fo:block></fo:table-cell>
         </fo:table-row>
         <fo:table-row>
           <fo:table-cell ><fo:block
text-align="right">4</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">A</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">B</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">C</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">D</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">E</fo:block></fo:table-cell>
         </fo:table-row>
         <fo:table-row><!-- SEPARATOR ROW -->
           <fo:table-cell  number-columns-spanned="6"><fo:block
text-align="left">Group of Rows #2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2</fo:block></fo:table-cell>
         </fo:table-row>
         <fo:table-row>
           <fo:table-cell ><fo:block
text-align="right">1</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">A</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">B</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">C</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">D</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">E</fo:block></fo:table-cell>
         </fo:table-row>
         <fo:table-row>
           <fo:table-cell ><fo:block
text-align="right">2</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">A</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">B</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">C</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">D</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">E</fo:block></fo:table-cell>
         </fo:table-row>
         <fo:table-row>
           <fo:table-cell ><fo:block
text-align="right">3</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">A</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">B</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">C</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">D</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">E</fo:block></fo:table-cell>
         </fo:table-row>
         <fo:table-row>
           <fo:table-cell ><fo:block
text-align="right">4</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">A</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">B</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">C</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">D</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">E</fo:block></fo:table-cell>
         </fo:table-row>
       </fo:table-body>
     </fo:table>
     <!-- table end -->

     <!-- table 2 start -->
     <fo:block break-before='page'>
     <fo:table table-layout="fixed"  border-collapse="separate"
border-color="black" border-width="0.5pt" border-style="solid" >
       <fo:table-column column-width=".5in"/><!-- Learning Item Number
-->
       <fo:table-column column-width="1in"/><!-- Total Responses -->
       <fo:table-column column-width="1in"/><!-- Total Correct -->
       <fo:table-column column-width="1in"/><!-- Total Correct Percent
(of Total Responses) -->
       <fo:table-column column-width="1in"/><!-- Total Errors -->
       <fo:table-column column-width="1in"/><!-- Total Incorrect
Percent (of Total Responses) -->
       <fo:table-header >
         <fo:table-row >
           <fo:table-cell ><fo:block text-align="right">Item
Num</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">Responses</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">Correct</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block text-align="right">%
Correct</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">Errors</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block text-align="right">%
Errors</fo:block></fo:table-cell>
         </fo:table-row>
       </fo:table-header>
       <fo:table-body >
         <fo:table-row><!-- SEPARATOR ROW -->
           <fo:table-cell   number-columns-spanned="6"><fo:block
text-align="left">Group of Rows #1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1</fo:block></fo:table-cell>
         </fo:table-row>
         <fo:table-row >
           <fo:table-cell  ><fo:block
text-align="right">1</fo:block></fo:table-cell>
           <fo:table-cell  ><fo:block
text-align="right">A</fo:block></fo:table-cell>
           <fo:table-cell  ><fo:block
text-align="right">B</fo:block></fo:table-cell>
           <fo:table-cell  ><fo:block
text-align="right">C</fo:block></fo:table-cell>
           <fo:table-cell  ><fo:block
text-align="right">D</fo:block></fo:table-cell>
           <fo:table-cell  ><fo:block
text-align="right">E</fo:block></fo:table-cell>
         </fo:table-row>
         <fo:table-row>
           <fo:table-cell ><fo:block
text-align="right">2</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">A</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">B</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">C</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">D</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">E</fo:block></fo:table-cell>
         </fo:table-row>
         <fo:table-row>
           <fo:table-cell ><fo:block
text-align="right">3</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">A</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">B</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">C</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">D</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">E</fo:block></fo:table-cell>
         </fo:table-row>
         <fo:table-row>
           <fo:table-cell ><fo:block
text-align="right">4</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">A</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">B</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">C</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">D</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">E</fo:block></fo:table-cell>
         </fo:table-row>
         <fo:table-row><!-- SEPARATOR ROW -->
           <fo:table-cell  number-columns-spanned="6"><fo:block
text-align="left">Group of Rows #2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2</fo:block></fo:table-cell>
         </fo:table-row>
         <fo:table-row>
           <fo:table-cell ><fo:block
text-align="right">1</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">A</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">B</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">C</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">D</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">E</fo:block></fo:table-cell>
         </fo:table-row>
         <fo:table-row>
           <fo:table-cell ><fo:block
text-align="right">2</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">A</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">B</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">C</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">D</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">E</fo:block></fo:table-cell>
         </fo:table-row>
         <fo:table-row>
           <fo:table-cell ><fo:block
text-align="right">3</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">A</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">B</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">C</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">D</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">E</fo:block></fo:table-cell>
         </fo:table-row>
         <fo:table-row>
           <fo:table-cell ><fo:block
text-align="right">4</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">A</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">B</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">C</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">D</fo:block></fo:table-cell>
           <fo:table-cell ><fo:block
text-align="right">E</fo:block></fo:table-cell>
         </fo:table-row>
       </fo:table-body>
     </fo:table>
     </fo:block>
     <!-- table end -->
   </fo:flow>
 </fo:page-sequence>

</fo:root>


<SNIP>


Richard Mixon (qwest) wrote:



[EMAIL PROTECTED] wrote:




Hi, Richard,

No worries on the usage pattern. I did similar things with even
longer breaks between until my current project.

Try  break-before="page" on your table elements (though perhaps not
the first one). If that doesn't work, try wrapping the table in a
block and setting  break-before="page" on the block.




Jay,

Thanks - but no joy. I've put break-before="page" on the table, the
first rows, first 6 cells, header, what have you - but am unable to
force a page break between tables.

Does the fact that I am not using a stylesheet affect the processing?


Thanks again - Richard




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





--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.8 - Release Date: 10/05/2005


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



Reply via email to