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. HTH Jay Bryant Bryant Communication Services (presently consulting at Synergistic Solution Technologies) "Richard Mixon (qwest)" <[EMAIL PROTECTED]> 05/09/2005 04:58 PM Please respond to [email protected] To [email protected] cc Subject How to force a page break between tables Sorry for the sudden flurry of FOP questions over the last two days. That's just my pattern of usage - I implement something new using FOP, then its six months before I have to do something again. I think that's a good thing, but makes me a stranger in between. Anyway, I am generating a series of tables and need each one to begin on a new page. I am only using an ".fo" file as input, i.e. not using an XSL file and doing a transform. I've searched and read and searched and read and not come up with an answer. Please tell me its something simple or obvious. Or if its not so simple still tell me how. Below is a representative FO file (simplified in that I've taken out my JSP tags that are used to generate). Thank you - Richard <!-- START OF FO FILE --> <?xml version="1.0" encoding="utf-8"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <!-- 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-before extent=".5in"/> <fo:region-after extent=".5in"/> <fo:region-body margin-top=".5in" margin-bottom=".5in"/><!-- This leaves about 9in for text --> </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-left-color="black" border-left-width="0.5pt" border-left-style="solid" border-right-color="black" border-right-width="0.5pt" border-right-style="solid" border-top-color="black" border-top-width="0.5pt" border-top-style="solid" border-bottom-color="black" border-bottom-width="0.5pt" border-bottom-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:table table-layout="fixed" border-collapse="separate" border-left-color="black" border-left-width="0.5pt" border-left-style="solid" border-right-color="black" border-right-width="0.5pt" border-right-style="solid" border-top-color="black" border-top-width="0.5pt" border-top-style="solid" border-bottom-color="black" border-bottom-width="0.5pt" border-bottom-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 --> </fo:flow> </fo:page-sequence> </fo:root> <!-- END OF FO FILE --> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
