[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: dynamic table in report
At 2011-08-03 10:14 +0200, Mathis Mvrke wrote:
Hi all, I think you are approaching this at too low a level. But if there are to many rows in a subcluster, there will be a page overflow, which makes sense. But how can I handle this? If the number of rows in a subcluster is too big, there should be automatically a page break.
Simply put each sub-cluster into a separate <table-body> and use keep-together.within-column="always" on that body segment. No other keeps are needed. I am using Apache FOP 0.95.
I hope this helps. . . . . . . . . . . Ken <?xml version="1.0" encoding="US-ASCII"?><!--mathis.fo--> <root xmlns="http://www.w3.org/1999/XSL/Format" font-family="Times" font-size="20pt"> <layout-master-set> <simple-page-master master-name="frame" page-height="297mm" page-width="210mm" margin-top="15mm" margin-bottom="15mm" margin-left="15mm" margin-right="15mm"> <region-body region-name="frame-body"/> </simple-page-master> </layout-master-set> <page-sequence master-reference="frame"> <flow flow-name="frame-body" xmlns="http://www.w3.org/1999/XSL/Format"> <block>This is a test</block> <table> <table-body keep-together.within-column="always"> <table-row><table-cell><block>Test 1</block></table-cell></table-row> <table-row><table-cell><block>Test 1</block></table-cell></table-row> <table-row><table-cell><block>Test 1</block></table-cell></table-row> <table-row><table-cell><block>Test 1</block></table-cell></table-row> <table-row><table-cell><block>Test 1</block></table-cell></table-row> <table-row><table-cell><block>Test 1</block></table-cell></table-row> <table-row><table-cell><block>Test 1</block></table-cell></table-row> <table-row><table-cell><block>Test 1</block></table-cell></table-row> </table-body> <table-body keep-together.within-column="always"> <table-row><table-cell><block>Test 2</block></table-cell></table-row> <table-row><table-cell><block>Test 2</block></table-cell></table-row> <table-row><table-cell><block>Test 2</block></table-cell></table-row> <table-row><table-cell><block>Test 2</block></table-cell></table-row> <table-row><table-cell><block>Test 2</block></table-cell></table-row> <table-row><table-cell><block>Test 2</block></table-cell></table-row> <table-row><table-cell><block>Test 2</block></table-cell></table-row> <table-row><table-cell><block>Test 2</block></table-cell></table-row> <table-row><table-cell><block>Test 2</block></table-cell></table-row> <table-row><table-cell><block>Test 2</block></table-cell></table-row> <table-row><table-cell><block>Test 2</block></table-cell></table-row> <table-row><table-cell><block>Test 2</block></table-cell></table-row> <table-row><table-cell><block>Test 2</block></table-cell></table-row> <table-row><table-cell><block>Test 2</block></table-cell></table-row> <table-row><table-cell><block>Test 2</block></table-cell></table-row> <table-row><table-cell><block>Test 2</block></table-cell></table-row> <table-row><table-cell><block>Test 2</block></table-cell></table-row> <table-row><table-cell><block>Test 2</block></table-cell></table-row> <table-row><table-cell><block>Test 2</block></table-cell></table-row> <table-row><table-cell><block>Test 2</block></table-cell></table-row> <table-row><table-cell><block>Test 2</block></table-cell></table-row> <table-row><table-cell><block>Test 2</block></table-cell></table-row> <table-row><table-cell><block>Test 2</block></table-cell></table-row> <table-row><table-cell><block>Test 2</block></table-cell></table-row> <table-row><table-cell><block>Test 2</block></table-cell></table-row> <table-row><table-cell><block>Test 2</block></table-cell></table-row> <table-row><table-cell><block>Test 2</block></table-cell></table-row> <table-row><table-cell><block>Test 2</block></table-cell></table-row> <table-row><table-cell><block>Test 2</block></table-cell></table-row> <table-row><table-cell><block>Test 2</block></table-cell></table-row> <table-row><table-cell><block>Test 2</block></table-cell></table-row> </table-body> </table> </flow> </page-sequence> </root> -- Contact us for world-wide XML consulting & instructor-led training Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Legal business disclaimers: http://www.CraneSoftwrights.com/legal
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|