Hi fops,
I've got some strange behaviour of the fop-mechanisms when I try to force a page break from within a table. Basically the page breaks seem to have no effect, as long as the height of an enclosing row is not reached. I'm using fop-0.93.
I attached a small set of files to illustrate that. In the file not_paging.fo, the page-break is the only block element within a row with enforced height of 10. The page break is ignored here. Changing to break-before doesn't change that.
After inserting a bit of text (as in is_paging.fo), the height of the cell is taller than indicated in the fo, and surprisingly the page break *is* included. Can you please check, if this is an intended behaviour? If so: How can I enforce a page break then without having to remove the height constraints?
Thanks DirkPS - On a different note: break-after crashes in the fo given in crash.fo with an illegal state exception (this surely is a bug, isn't it?):
java.lang.IllegalStateException: Invalid break class: -1at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:168)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115) at org.apache.fop.cli.Main.startFOP(Main.java:160) at org.apache.fop.cli.Main.main(Main.java:191) When I change to break-before, it doesn't crash.
<?xml version="1.0" encoding="UTF-8"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"><!-- defines page layout --> <fo:layout-master-set> <fo:simple-page-master master-name="1" page-height="297mm" page-width="210mm"> <fo:region-body /> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="1"> <fo:flow flow-name="xsl-region-body"> <fo:table table-layout="fixed" width="100%"> <fo:table-body> <fo:table-row> <fo:table-cell> <fo:table table-layout="fixed" width="100%"> <fo:table-body> <fo:table-row > <fo:table-cell display-align="auto" text-align="start"> <fo:block linefeed-treatment="ignore" font-family="Helvetica" font-size="12pt"> page </fo:block> </fo:table-cell> </fo:table-row> <fo:table-row > <fo:table-cell display-align="auto" text-align="start"> <fo:block break-after="page" /> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:table table-layout="fixed" width="100%"> <fo:table-body> <fo:table-row > <fo:table-cell display-align="auto" text-align="start"> <fo:block linefeed-treatment="ignore" font-family="Helvetica" font-size="12pt"> page </fo:block> </fo:table-cell> </fo:table-row> <fo:table-row > <fo:table-cell display-align="auto" text-align="start"> <fo:block break-after="page" /> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:table table-layout="fixed" width="100%"> <fo:table-body> <fo:table-row > <fo:table-cell display-align="auto" text-align="start"> <fo:block linefeed-treatment="ignore" font-family="Helvetica" font-size="12pt"> page </fo:block> </fo:table-cell> </fo:table-row> <fo:table-row > <fo:table-cell display-align="auto" text-align="start"> <fo:block break-after="page" /> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:table table-layout="fixed" width="100%"> <fo:table-body> <fo:table-row > <fo:table-cell display-align="auto" text-align="start"> <fo:block linefeed-treatment="ignore" font-family="Helvetica" font-size="12pt"> page </fo:block> </fo:table-cell> </fo:table-row> <fo:table-row > <fo:table-cell display-align="auto" text-align="start"> <fo:block break-after="page" /> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:table table-layout="fixed" width="100%"> <fo:table-body> <fo:table-row > <fo:table-cell display-align="auto" text-align="start"> <fo:block linefeed-treatment="ignore" font-family="Helvetica" font-size="12pt"> page </fo:block> </fo:table-cell> </fo:table-row> <fo:table-row > <fo:table-cell display-align="auto" text-align="start"> <fo:block break-after="page" /> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:table table-layout="fixed" width="100%"> <fo:table-body> <fo:table-row > <fo:table-cell display-align="auto" text-align="start"> <fo:block linefeed-treatment="ignore" font-family="Helvetica" font-size="12pt"> page </fo:block> </fo:table-cell> </fo:table-row> <fo:table-row > <fo:table-cell display-align="auto" text-align="start"> <fo:block break-after="page" /> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:flow> </fo:page-sequence> </fo:root>
<?xml version="1.0" encoding="UTF-8"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"><!-- defines page layout --> <fo:layout-master-set> <fo:simple-page-master master-name="1" page-height="297mm" page-width="210mm"> <fo:region-body /> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="1"> <fo:flow flow-name="xsl-region-body"> <fo:table table-layout="fixed" width="100%"> <fo:table-body> <fo:table-row height="10"> <fo:table-cell display-align="auto" text-align="start"> <fo:block linefeed-treatment="ignore" font-family="Helvetica" font-size="12pt"> Page 1 </fo:block> </fo:table-cell> </fo:table-row> <fo:table-row height="10"> <fo:table-cell display-align="auto" text-align="start"> <fo:table table-layout="fixed" width="100%"> <fo:table-body> <fo:table-row height="10"> <fo:table-cell display-align="auto" text-align="start"> <fo:block> Just adding a bit of text here... </fo:block> <fo:block break-after="page" /> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell display-align="auto" text-align="start"> <fo:block linefeed-treatment="ignore" font-family="Helvetica" font-size="12pt"> Page 2 </fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:flow> </fo:page-sequence> </fo:root>
<?xml version="1.0" encoding="UTF-8"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"><!-- defines page layout --> <fo:layout-master-set> <fo:simple-page-master master-name="1" page-height="297mm" page-width="210mm"> <fo:region-body /> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="1"> <fo:flow flow-name="xsl-region-body"> <fo:table table-layout="fixed" width="100%"> <fo:table-body> <fo:table-row height="10"> <fo:table-cell display-align="auto" text-align="start"> <fo:block linefeed-treatment="ignore" font-family="Helvetica" font-size="12pt"> Page 1 </fo:block> </fo:table-cell> </fo:table-row> <fo:table-row height="10"> <fo:table-cell display-align="auto" text-align="start"> <fo:block>Just adding a bit of text here...</fo:block> <fo:block break-after="page" /> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell display-align="auto" text-align="start"> <fo:block linefeed-treatment="ignore" font-family="Helvetica" font-size="12pt"> Page 2 </fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:flow> </fo:page-sequence> </fo:root>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]