I just tried your fo file and I obtain 1 table on each page (pdf file attached) Works fine for me . I'm using FOP 0.20.5RC
-----Message d'origine----- De : Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] Envoy� : mardi 10 mai 2005 05:29 � : [email protected] Objet : RE: How to force a page break between tables 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]
test.pdf
Description: Binary data
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
