How to force a page break between tables

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

How to force a page break between tables

Richard M
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: How to force a page break between tables

JBryant
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)" <[hidden email]>
05/09/2005 04:58 PM
Please respond to
[hidden email]


To
[hidden email]
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: [hidden email]
For additional commands, e-mail: [hidden email]




---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: How to force a page break between tables

Richard M
[hidden email] 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

>
> HTH
>
> Jay Bryant
> Bryant Communication Services
> (presently consulting at Synergistic Solution Technologies)
>
>
>
>
> "Richard Mixon (qwest)" <[hidden email]>
> 05/09/2005 04:58 PM
> Please respond to
> [hidden email]
>
>
> To
> [hidden email]
> 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: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: How to force a page break between tables

Mike Trotman
In reply to this post by Richard M
If you wrap you table  inside
<fo:block break-before='page'>
...............Table ...............
</fo:block>
it should work as Jay said.

Mike


Richard Mixon (qwest) wrote:

>[hidden email] 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
>
>  
>



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: How to force a page break between tables

Richard M
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:
>
>> [hidden email] 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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: How to force a page break between tables

Rymasz Jacky
In reply to this post by Richard M
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:[hidden email]]
Envoyé : mardi 10 mai 2005 05:29
À : [hidden email]
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:
>
>> [hidden email] 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: [hidden email]
For additional commands, e-mail: [hidden email]


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

test.pdf (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: How to force a page break between tables

Mike Trotman
In reply to this post by Richard M
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:
>>
>>    
>>
>>>[hidden email] 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: [hidden email]
>For additional commands, e-mail: [hidden email]
>
>  
>


--
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: How to force a page break between tables

Chris Bowditch
Mike Trotman wrote:

> 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?

break-before wasnt working in the HEAD code until recently. If you absolutely
need to use 1.0 make sure you get latest off the Temp_KnuthStylePageBreaking
branch. Or if possible use 0.20.5 until 1.0 is ready.

Chris


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: How to force a page break between tables

Richard M
In reply to this post by Richard M
Chris Bowditch wrote:

> Mike Trotman wrote:
>
>> 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?
>
> break-before wasnt working in the HEAD code until recently. If you
> absolutely need to use 1.0 make sure you get latest off the
> Temp_KnuthStylePageBreaking branch. Or if possible use 0.20.5 until
> 1.0 is ready.  

Chris,

The Temp_KnuthStylePageBreaking branch appears to have fixed
break-before. I did notice that not all of the Junit tests run
correctly, but after commenting out the junit target I was able to get a
good build. Placed it in my web applications "lib" directory and voila!
Thank you.

I do notice that my region-body is running a bit deeper, overlapping my
footer. Do you know if this is something I should adjust for temporarily
or is it going to be a permanent change?

Thanks to all of you working on FOP and the great support you give.

 - Richard

BTW, I have updated to the CVS HEAD twice in the past. I moved from
0.20.5 on 2004/05/29 because of a loop caused by hyphenation and updated
again on 2005/05/08 because I needed number-columns-spanned to work.

ALSO, I just went to CVS to pull down the Temp_KnuthStylePageBreaking
branch. From Eclipse all I see is the FOP_0-20-0_Alt-Design branch. If I
browse CVS from the FOP web site I can see all of the branches. I punted
and just used the CVS command line client. However if anyone knows why
Eclipse could not see the other branches, I would appreciate the tip.


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: How to force a page break between tables

Andreas L Delmelle
In reply to this post by Richard M
> -----Original Message-----
> From: Richard Mixon (qwest) [mailto:[hidden email]]
>

Hi Richard,

> The Temp_KnuthStylePageBreaking branch appears to have fixed
> break-before. I did notice that not all of the Junit tests run
> correctly, but after commenting out the junit target I was able to get a
> good build. Placed it in my web applications "lib" directory and voila!
> Thank you.

Well, you could also simply have run Ant with target 'package', which only
compiles the sources and builds the jar... Would have saved you a few
keystrokes :-)

>
> I do notice that my region-body is running a bit deeper, overlapping my
> footer. Do you know if this is something I should adjust for temporarily
> or is it going to be a permanent change?
>

I don't know for sure. If you really are certain that the effect is
wrong --i.e. that it should be different according to the Rec or according
to common sense-- then by all means, post a small sample FO file to
illustrate this, and we'll look into it.

> Thanks to all of you working on FOP and the great support you give.

You're welcome, and of course, thank *you* for being part of our test-team
:-)


Cheers,

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: How to force a page break between tables

Richard M
Andreas L. Delmelle wrote:
>> -----Original Message-----
>> From: Richard Mixon (qwest) [mailto:[hidden email]]
>>
>
> Hi Richard,
>
<SNIP>

>>
>> I do notice that my region-body is running a bit deeper, overlapping
>> my footer. Do you know if this is something I should adjust for
>> temporarily or is it going to be a permanent change?
>>
>
> I don't know for sure. If you really are certain that the effect is
> wrong --i.e. that it should be different according to the Rec or
> according to common sense-- then by all means, post a small sample FO
> file to illustrate this, and we'll look into it.  

Honestly, I am not certain whether its just "different than the main
branch" or "out of spec". But as soon as I have some last little details
worked out I will sit down with the spec and take a closer look  with a
ruler, though it will be on output form my laserjet printer.

Also, I just noticed there is a HUGE amount of debugging output in my
Tomcat log. Is there any way to turn this off? I do not believe I have
done anything specific to turn debugging on.

Thanks again - Richard


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: How to force a page break between tables

Andreas L Delmelle
In reply to this post by Richard M
> -----Original Message-----
> From: Richard Mixon (qwest) [mailto:[hidden email]]
>

Hi,

> Also, I just noticed there is a HUGE amount of debugging output in my
> Tomcat log. Is there any way to turn this off? I do not believe I have
> done anything specific to turn debugging on.

Unfortunately a side-effect of a 'rough' version :-/

This is due to a number of System.(out|err).println's that still need to be
converted to log.debug() (in fop.layoutmgr.AbstractBreaker mainly)

One can reasonably expect this to change some time soon, but if you need it
now, your only immediate option is to comment these out and rebuild...

Sorry 'bout that!


Cheers,

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: How to force a page break between tables

Richard M
Andreas L. Delmelle wrote:

>> -----Original Message-----
>> From: Richard Mixon (qwest) [mailto:[hidden email]]
>> Also, I just noticed there is a HUGE amount of debugging output in my
>> Tomcat log. Is there any way to turn this off? I do not believe I
>> have done anything specific to turn debugging on.
>
> Unfortunately a side-effect of a 'rough' version :-/
>
> This is due to a number of System.(out|err).println's that still need
> to be converted to log.debug() (in fop.layoutmgr.AbstractBreaker
> mainly)  
>
> One can reasonably expect this to change some time soon, but if you
> need it now, your only immediate option is to comment these out and
> rebuild...  

No apologies needed. Thanks for the pointer of where to look. I can
"comment out" with the best of them.

Thanks - Richard


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]