Connecting Tech Pros Worldwide Help | Site Map

XSL:FO page break problem

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 20th, 2005, 07:29 AM
Anshul Seth
Guest
 
Posts: n/a
Default XSL:FO page break problem

I have been dealing with the page-break problem for long, and have not
been able to come to a solution.
I am using XSL:FO to generate PDF report for my XML, generating it in
tables.
I want that tables should completely be at one place, if there is a
page break , all the contents of the table should move to the next
page.
I implemented <keep-together.within-page="always"> in <fo:table row>
as FOP0.20.5 does not support it in any other place.
So, i created a virtual table with one row and one column,
and in that row i used <keep-together>.

but still, it is not serving the purpose.
can any one suggest a way out?

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

this is the kind of code i am using?

  #2  
Old July 20th, 2005, 07:29 AM
helmut fish
Guest
 
Posts: n/a
Default Re: XSL:FO page break problem

I don't know about FOP, but if keep-together is not implemented on fo:table,
try:

(a) putting the table inside a fo:block which has keep-together
(b) putting keep-with-next on every fo:row except the the last one
(c) putting keep-with-previous on every fo:row except the the first one

John

Visual Programming Ltd mail PO Box 22-222, Khandallah, Wellington, New
Zealand site Level 2, 2 Ganges Road, Khandallah, Wellington, New Zealand
phone +64 4 479 1738 fax +64 4 479 1294 web http://www.xmlpdf.com
"Anshul Seth" <anshul.seth@gmail.com> wrote in message
news:fbd76fec.0407080340.691dfc28@posting.google.c om...[color=blue]
> I have been dealing with the page-break problem for long, and have not
> been able to come to a solution.
> I am using XSL:FO to generate PDF report for my XML, generating it in
> tables.
> I want that tables should completely be at one place, if there is a
> page break , all the contents of the table should move to the next
> page.
> I implemented <keep-together.within-page="always"> in <fo:table row>
> as FOP0.20.5 does not support it in any other place.
> So, i created a virtual table with one row and one column,
> and in that row i used <keep-together>.
>
> but still, it is not serving the purpose.
> can any one suggest a way out?
>
> <fo:table>
> --
> --
> <fo:table-row keep-together.within-page="always>
> <fo:table-cell>
> <fo:table>
> </fo:table>
> </fo:table-cell>
> <fo:table-cell>
> <fo:table>
> </fo:table>
> </fo:table-cell>
> </fo:table-row>
> <fo:table>
>
> this is the kind of code i am using?[/color]


  #3  
Old July 20th, 2005, 07:33 AM
legetz
Guest
 
Posts: n/a
Default Re: XSL:FO page break problem

helmut fish wrote:[color=blue]
> *I don't know about FOP, but if keep-together is not implemented o
> fo:table,
> try:
>
> (a) putting the table inside a fo:block which has keep-together
> (b) putting keep-with-next on every fo:row except the the last one
> (c) putting keep-with-previous on every fo:row except the the firs
> one
>
> John
> *[/color]

Option-A does not work with FOP. I've already tried that
B and C works just fine, thanks for the tip.. :
-
leget
-----------------------------------------------------------------------
Posted via http://www.forum4designers.co
-----------------------------------------------------------------------
View this thread: http://www.forum4designers.com/message94221.htm

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.