Hi Steven,

The specific problem mentioned in Bug 1432 has been corrected since
then, but I'm not sure it was done before 0.18.1. I just did a few tests
with the current CVS and the keep properties seem to be working
correctly for table-rows. I do notice that when there is not
keep-withs-* on all the rows, FOP actually breaks within a row rather
than between rows, which is not so great. But that's a different
problem. I attached a test file so you can check it out.

HTH,
Karen Lease

"Olivieri, Steven" wrote:
> 
> Can someone please answer this?
> 
> I see that Bug 1432 (regarding keep-with-* not working in fo:tables in 0.17)
> is still assigned a high priority.  I'm using 0.18.1, and I believe it's not
> working in that version either.   Was the bug fixed (and perhaps I'm doing
> something wrong), or is it still open?
> 
> On my first row, I'm using keep-with-next="always" (inside my fo:table-row
> tag).  With each row after that, I'm using both keep-with-next="always" and
> keep-with-previous="always."   On the last row, I'm using
> keep-with-previous="always" (only).   Is this the correct way to do it?
> The grouping is not that large, but I'm noticing that say for example the
> group is comprised of 4 rows.   The rows are being split after 1 or 2 rows.
> My hope was that the group would move together to the next page.
> 
> thanks in advance for any help.
> 
> Regards,
> Steve Olivieri
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
  <fo:layout-master-set>
    <fo:simple-page-master 
        margin-right="1.5cm"
        margin-left="1.5cm"
        margin-bottom="2cm"
        margin-top="1cm"
        page-width="21cm"
        page-height="17cm"
        master-name="first">
      <fo:region-before extent="1cm"/>
      <fo:region-body margin-top="1cm" margin-bottom="1.5cm"/>
      <fo:region-after extent="1.5cm"/>
    </fo:simple-page-master>
  </fo:layout-master-set>
  
  <fo:page-sequence master-name="first">
    <fo:static-content flow-name="xsl-region-before">
      <fo:block line-height="14pt" font-size="10pt" 
                text-align="end">table examples</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">

      <fo:block>
        Test keep-with-next, keep-with-previous on all tables rows.
        the whole table should be pushed to the next page
      </fo:block>
      <fo:block space-before.optimum="30pt" space-after.optimum="15pt">
      Table 1: keep-with-next="always" on all rows except last and 
        keep-with-previous="always" on all rows except first
        
      </fo:block>

      <fo:table border-width="0.5pt" border-color="red" border-style="solid">
        <fo:table-column column-width="4cm"/>
        <fo:table-column column-width="4cm"/>
        <fo:table-column column-width="4cm"/>

    <fo:table-body>
          <fo:table-row border-width="0.5pt" keep-with-next="always">
            <fo:table-cell>
              <fo:block text-align="center">
              first row which has keep-with-next set to always
              </fo:block>
            </fo:table-cell>
            <fo:table-cell>
              <fo:block text-align="center">
              first row second column
              </fo:block>
            </fo:table-cell>
            <fo:table-cell>
              <fo:block text-align="center">
              first row in third column
              </fo:block>
            </fo:table-cell>
          </fo:table-row>
          <fo:table-row border-width="0.5pt" keep-with-next="always"
        keep-with-previous="always">
            <fo:table-cell>
              <fo:block text-align="center">
              second row which has both keep-with-next and keep-with-previous set to 
always
              </fo:block>
            </fo:table-cell>
            <fo:table-cell>
              <fo:block text-align="center">
              second column
              </fo:block>
            </fo:table-cell>
            <fo:table-cell>
              <fo:block text-align="center">
              last column
              </fo:block>
            </fo:table-cell>
          </fo:table-row>
          <fo:table-row border-width="0.5pt" keep-with-next="always"
        keep-with-previous="always">
            <fo:table-cell>
              <fo:block text-align="center">
              third row which has both keep-with-next and keep-with-previous set to 
always
              </fo:block>
            </fo:table-cell>
            <fo:table-cell>
              <fo:block text-align="center">
              second column
              </fo:block>
            </fo:table-cell>
            <fo:table-cell>
              <fo:block text-align="center">
              last column
              </fo:block>
            </fo:table-cell>
          </fo:table-row>
          <fo:table-row border-width="0.5pt" keep-with-next="always">
            <fo:table-cell>
              <fo:block text-align="center">
              fourth and last row which has keep-with-previous set to always
              </fo:block>
            </fo:table-cell>
            <fo:table-cell>
              <fo:block text-align="center">
              second column
              </fo:block>
            </fo:table-cell>
            <fo:table-cell>
              <fo:block text-align="center">
              last column
              </fo:block>
            </fo:table-cell>
          </fo:table-row>
        </fo:table-body>
      </fo:table>

      <fo:block break-before="page">
        Test keep-with-next, keep-with-previous on some tables rows.
        The table should be broken if FOP works as I think it does.
      </fo:block>
      <fo:block space-before.optimum="30pt" space-after.optimum="15pt">
      Table 2: keep-with-next="always" on first and second row
        no keep-with constraints on the third and fourth rows
        
      </fo:block>

      <fo:table border-width="0.5pt" border-color="red" border-style="solid">
        <fo:table-column column-width="4cm"/>
        <fo:table-column column-width="4cm"/>
        <fo:table-column column-width="4cm"/>

    <fo:table-body>
          <fo:table-row border-width="0.5pt" keep-with-next="always">
            <fo:table-cell>
              <fo:block text-align="center">
              first row which has keep-with-next set to always
              </fo:block>
            </fo:table-cell>
            <fo:table-cell>
              <fo:block text-align="center">
              first row second column
              </fo:block>
            </fo:table-cell>
            <fo:table-cell>
              <fo:block text-align="center">
              first row in third column
              </fo:block>
            </fo:table-cell>
          </fo:table-row>
          <fo:table-row border-width="0.5pt" keep-with-next="always"
        keep-with-previous="always">
            <fo:table-cell>
              <fo:block text-align="center">
              second row which has both keep-with-next and keep-with-previous set to 
always
              </fo:block>
            </fo:table-cell>
            <fo:table-cell>
              <fo:block text-align="center">
              second column
              </fo:block>
            </fo:table-cell>
            <fo:table-cell>
              <fo:block text-align="center">
              last column
              </fo:block>
            </fo:table-cell>
          </fo:table-row>
          <fo:table-row border-width="0.5pt">
            <fo:table-cell>
              <fo:block text-align="center">
              third row which has neither keep-with-next nor keep-with-previous 
properties
              </fo:block>
            </fo:table-cell>
            <fo:table-cell>
              <fo:block text-align="center">
              second column
              </fo:block>
            </fo:table-cell>
            <fo:table-cell>
              <fo:block text-align="center">
              last column
              </fo:block>
            </fo:table-cell>
          </fo:table-row>
          <fo:table-row border-width="0.5pt">
            <fo:table-cell>
              <fo:block text-align="center">
              fourth and last row which has no keep-with-previous constraint
              </fo:block>
            </fo:table-cell>
            <fo:table-cell>
              <fo:block text-align="center">
              second column
              </fo:block>
            </fo:table-cell>
            <fo:table-cell>
              <fo:block text-align="center">
              last column
              </fo:block>
            </fo:table-cell>
          </fo:table-row>
        </fo:table-body>
      </fo:table>
    </fo:flow>
  </fo:page-sequence>
</fo:root>

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

Reply via email to