You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Mathy V Arumugam <ma...@jpl.nasa.gov> on 2002/03/28 22:09:14 UTC

fop-0.20.3: table cell data on same page

Hi all,

How can I prevent the table cells from splitting on page break?

I thought the following should prevent the table cells from splitting on

page boundaries...but, does not work for me....

<fo:table-cell keep-together.within-page="always">
        <fo:block>....</fo:block>
   </fo:table-cell>

I have also tried:
<fo:table-row keep-with-next="always">
        <fo:table-cell ><fo:block>...</fo:block></fo:table-cell>
</fo:table-row>

Thanks
Mathy


Re: fop-0.20.3: table cell data on same page

Posted by Mathy V Arumugam <ma...@jpl.nasa.gov>.
Well, the table consists of about 150 rows, and some table-cells are as long
as the
ex. below.

Trimmed down FO file:
<fo:table-row display-align="center" height="15pt" keep-with-next="always">
<fo:table-cell column-number="1" border="0.5pt solid black" padding="0.6pt">

 <fo:block font-family="sans-serif" text-align="center"
font-size="10pt">testing
</fo:block>
</fo:table-cell>
<fo:table-cell column-number="2" border="0.5pt solid black" padding="0.6pt">

 <fo:block font-family="sans-serif" text-align="left" font-size="10pt">some
text
some textsome textsome textsome textsome textsome text some text some text
some
text some text some text some text some text some text some text some text
some
text some text text some text some text some text some text stext some text
some
text some text some text stext some text some text some text some text stext
some
text some text some text some text stext some text some text some text some
text
stext some text some text some text some text stext some text some text some
text
some text stext some text some text some text some text stext some text some
text
some text some text stext some text some text some text some text stext some
text
some text some text some text stext some text some text some text some text
stext
some text some text some text some text stext some text some text some text
some
text stext some text some text some text some text stext some text some text
some
text some text stext some text some text some text some text stext some text
some
text some text some text stext some text some text some text some text stext
some
text some text some text some text stext some text some text some text some
text
stext some text some text some text some text srated output</fo:block>
</fo:table-cell>
</fo:table-row>

thanks
Mathy

J.Pietschmann" wrote:

> Mathy V Arumugam wrote:
> > Thanks Stephen,
> >
> > I am using fop-0.20.3!!! and <fo:table-row keep-with-next="always"> DOES
NOT
> > work either :(
>
> It works, but may still give some unexpected results. If
> you have a long table and put keep-with-next on every row,
> earlier versions of FOP went into a nonterninating loop.
> The 0.20.3 version tries to detect it and inserts a break
> anyway. Similar situations could arise if space-before
> and other stuff.
>
> Can you explain in which sense it does not work for you?
> Preferably post a trimmed down FO file to the fop-user
> list.
>
> J.Pietschmann


Mathy V Arumugam wrote:

> Hi all,
>
> How can I prevent the table cells from splitting on page break?
>
> I thought the following should prevent the table cells from splitting on
>
> page boundaries...but, does not work for me....
>
> <fo:table-cell keep-together.within-page="always">
>         <fo:block>....</fo:block>
>    </fo:table-cell>
>
> I have also tried:
> <fo:table-row keep-with-next="always">
>         <fo:table-cell ><fo:block>...</fo:block></fo:table-cell>
> </fo:table-row>
>
> Thanks
> Mathy


Re: fop-0.20.3: table cell data on same page

Posted by Mathy V Arumugam <ma...@jpl.nasa.gov>.
Thanks Joe,

Yes, <.. keep-together="always"> worked!!!!!  Thank you so much!

Mathy

Joe Sytniak wrote:

> I've used keep-together="always" successfully.
>
> This works fine for me.
>
>       <fo:table-row keep-together="always">
>        <fo:table-cell>
>         <fo:block>
>                     .............................
>         </fo:block>
>        </fo:table-cell>
>       </fo:table-row>
>
> ----- Original Message -----
> From: "Mathy V Arumugam" <ma...@jpl.nasa.gov>
> To: <fo...@xml.apache.org>
> Sent: Thursday, March 28, 2002 5:05 PM
> Subject: Re: fop-0.20.3: table cell data on same page
>
> > Hmmmmm.. still does not work.. What is really wrong with my code then????
> >
> >
> > "Matthew L. Avizinis" wrote:
> >
> > > I've found that you have to have
> > >  <fo:table-row keep-with-next="always">
> > >          <fo:table-cell ><fo:block>...</fo:block></fo:table-cell>
> > >  </fo:table-row>
> > >  <fo:table-row keep-with-previous="always">
> > >          <fo:table-cell ><fo:block>...</fo:block></fo:table-cell>
> > >  </fo:table-row>
> > > for it to work properly.
> > > hth
> > >
> > > > -----Original Message-----
> > > > From: Mathy V Arumugam [mailto:mathy.v.arumugam@jpl.nasa.gov]
> > > > Sent: Thursday, March 28, 2002 4:09 PM
> > > > To: fop-user@xml.apache.org
> > > > Subject: fop-0.20.3: table cell data on same page
> > > >
> > > >
> > > > Hi all,
> > > >
> > > > How can I prevent the table cells from splitting on page break?
> > > >
> > > > I thought the following should prevent the table cells from splitting
> on
> > > >
> > > > page boundaries...but, does not work for me....
> > > >
> > > > <fo:table-cell keep-together.within-page="always">
> > > >         <fo:block>....</fo:block>
> > > >    </fo:table-cell>
> > > >
> > > > I have also tried:
> > > > <fo:table-row keep-with-next="always">
> > > >         <fo:table-cell ><fo:block>...</fo:block></fo:table-cell>
> > > > </fo:table-row>
> > > >
> > > > Thanks
> > > > Mathy
> > > >
> >


Re: fop-0.20.3: table cell data on same page

Posted by Joe Sytniak <jo...@usol.com>.
I've used keep-together="always" successfully.

This works fine for me.


      <fo:table-row keep-together="always">
       <fo:table-cell>
        <fo:block>
                    .............................
        </fo:block>
       </fo:table-cell>
      </fo:table-row>



----- Original Message -----
From: "Mathy V Arumugam" <ma...@jpl.nasa.gov>
To: <fo...@xml.apache.org>
Sent: Thursday, March 28, 2002 5:05 PM
Subject: Re: fop-0.20.3: table cell data on same page


> Hmmmmm.. still does not work.. What is really wrong with my code then????
>
>
> "Matthew L. Avizinis" wrote:
>
> > I've found that you have to have
> >  <fo:table-row keep-with-next="always">
> >          <fo:table-cell ><fo:block>...</fo:block></fo:table-cell>
> >  </fo:table-row>
> >  <fo:table-row keep-with-previous="always">
> >          <fo:table-cell ><fo:block>...</fo:block></fo:table-cell>
> >  </fo:table-row>
> > for it to work properly.
> > hth
> >
> > > -----Original Message-----
> > > From: Mathy V Arumugam [mailto:mathy.v.arumugam@jpl.nasa.gov]
> > > Sent: Thursday, March 28, 2002 4:09 PM
> > > To: fop-user@xml.apache.org
> > > Subject: fop-0.20.3: table cell data on same page
> > >
> > >
> > > Hi all,
> > >
> > > How can I prevent the table cells from splitting on page break?
> > >
> > > I thought the following should prevent the table cells from splitting
on
> > >
> > > page boundaries...but, does not work for me....
> > >
> > > <fo:table-cell keep-together.within-page="always">
> > >         <fo:block>....</fo:block>
> > >    </fo:table-cell>
> > >
> > > I have also tried:
> > > <fo:table-row keep-with-next="always">
> > >         <fo:table-cell ><fo:block>...</fo:block></fo:table-cell>
> > > </fo:table-row>
> > >
> > > Thanks
> > > Mathy
> > >
>


RE: fop-0.20.3: table cell data on same page

Posted by "Matthew L. Avizinis" <ml...@gleim.com>.
Sorry, what I actually meant was
<fo:table-row keep-with-previous="always" keep-with-next="always" ....etc
This is precisely what I have used and it works.

> -----Original Message-----
> From: Mathy V Arumugam [mailto:mathy.v.arumugam@jpl.nasa.gov]
> Sent: Thursday, March 28, 2002 5:06 PM
> To: fop-user@xml.apache.org
> Subject: Re: fop-0.20.3: table cell data on same page
> 
> 
> Hmmmmm.. still does not work.. What is really wrong with my code then????
> 
> 
> "Matthew L. Avizinis" wrote:
> 
> > I've found that you have to have
> >  <fo:table-row keep-with-next="always">
> >          <fo:table-cell ><fo:block>...</fo:block></fo:table-cell>
> >  </fo:table-row>
> >  <fo:table-row keep-with-previous="always">
> >          <fo:table-cell ><fo:block>...</fo:block></fo:table-cell>
> >  </fo:table-row>
> > for it to work properly.
> > hth
> >
> > > -----Original Message-----
> > > From: Mathy V Arumugam [mailto:mathy.v.arumugam@jpl.nasa.gov]
> > > Sent: Thursday, March 28, 2002 4:09 PM
> > > To: fop-user@xml.apache.org
> > > Subject: fop-0.20.3: table cell data on same page
> > >
> > >
> > > Hi all,
> > >
> > > How can I prevent the table cells from splitting on page break?
> > >
> > > I thought the following should prevent the table cells from 
> splitting on
> > >
> > > page boundaries...but, does not work for me....
> > >
> > > <fo:table-cell keep-together.within-page="always">
> > >         <fo:block>....</fo:block>
> > >    </fo:table-cell>
> > >
> > > I have also tried:
> > > <fo:table-row keep-with-next="always">
> > >         <fo:table-cell ><fo:block>...</fo:block></fo:table-cell>
> > > </fo:table-row>
> > >
> > > Thanks
> > > Mathy
> > >
> 


Re: fop-0.20.3: table cell data on same page

Posted by Mathy V Arumugam <ma...@jpl.nasa.gov>.
Hmmmmm.. still does not work.. What is really wrong with my code then????


"Matthew L. Avizinis" wrote:

> I've found that you have to have
>  <fo:table-row keep-with-next="always">
>          <fo:table-cell ><fo:block>...</fo:block></fo:table-cell>
>  </fo:table-row>
>  <fo:table-row keep-with-previous="always">
>          <fo:table-cell ><fo:block>...</fo:block></fo:table-cell>
>  </fo:table-row>
> for it to work properly.
> hth
>
> > -----Original Message-----
> > From: Mathy V Arumugam [mailto:mathy.v.arumugam@jpl.nasa.gov]
> > Sent: Thursday, March 28, 2002 4:09 PM
> > To: fop-user@xml.apache.org
> > Subject: fop-0.20.3: table cell data on same page
> >
> >
> > Hi all,
> >
> > How can I prevent the table cells from splitting on page break?
> >
> > I thought the following should prevent the table cells from splitting on
> >
> > page boundaries...but, does not work for me....
> >
> > <fo:table-cell keep-together.within-page="always">
> >         <fo:block>....</fo:block>
> >    </fo:table-cell>
> >
> > I have also tried:
> > <fo:table-row keep-with-next="always">
> >         <fo:table-cell ><fo:block>...</fo:block></fo:table-cell>
> > </fo:table-row>
> >
> > Thanks
> > Mathy
> >


RE: fop-0.20.3: table cell data on same page

Posted by "Matthew L. Avizinis" <ml...@gleim.com>.
I've found that you have to have
 <fo:table-row keep-with-next="always">
         <fo:table-cell ><fo:block>...</fo:block></fo:table-cell>
 </fo:table-row>
 <fo:table-row keep-with-previous="always">
         <fo:table-cell ><fo:block>...</fo:block></fo:table-cell>
 </fo:table-row>
for it to work properly.
hth

> -----Original Message-----
> From: Mathy V Arumugam [mailto:mathy.v.arumugam@jpl.nasa.gov]
> Sent: Thursday, March 28, 2002 4:09 PM
> To: fop-user@xml.apache.org
> Subject: fop-0.20.3: table cell data on same page
> 
> 
> Hi all,
> 
> How can I prevent the table cells from splitting on page break?
> 
> I thought the following should prevent the table cells from splitting on
> 
> page boundaries...but, does not work for me....
> 
> <fo:table-cell keep-together.within-page="always">
>         <fo:block>....</fo:block>
>    </fo:table-cell>
> 
> I have also tried:
> <fo:table-row keep-with-next="always">
>         <fo:table-cell ><fo:block>...</fo:block></fo:table-cell>
> </fo:table-row>
> 
> Thanks
> Mathy
>