473,415 Members | 1,519 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,415 software developers and data experts.

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?
Jul 20 '05 #1
2 11584
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" <an*********@gmail.com> wrote in message
news:fb**************************@posting.google.c om...
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?

Jul 20 '05 #2
helmut fish wrote:
*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
*


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

Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Philip Meyer | last post by:
1) setting image as Background with alignment in center not working..help Explanation : i need to set a image as background and also it should be dispalyed in the center.i am using apache fop...
4
by: David | last post by:
Hello list, I'm using XML + XSL + CSS to display my data to the web. I also want to publish my pages in PDF format. To accomplish this I first must transform my XML + XSL + CSS in XSL-FO. Is...
0
by: Gilles Kuhn | last post by:
I'm using fop and I would like to underline spaces, even those located out of the character string. To illustrate the problem, let's have a look at this: xml doc: <page> <line>(<u> abc ...
0
by: sp | last post by:
Hi, I'm trying to write an xsl-fo document that with fop translate it in PDF. It's all right, but I have a question: There is a manner to indicate to xsl-fo to join together a block section, so...
0
by: Rary | last post by:
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...
0
by: Nathan | last post by:
Hi, I seem to having a peculiar problem with the display of odd and even pages in XSL-FO. Here is a small background of the problem. My xsl stylesheet mentions my fo:layout-master-set as ...
0
by: jklBruin | last post by:
i'm trying to implement converting xsl-fo to pdf on a .Net page. i''m getting the error message: Root element must be root, not http://www.w3.org/1999/XSL/Transform:stylesheet here's the xsl...
5
by: cleary1981 | last post by:
Hi, Im a little out of my depth using xsl fo here. I have a table of items and each has a price in the second row of the table. I need to display a total at the bottom of the row. My problem is...
1
by: cleary1981 | last post by:
Hi, I am trying to add page numbers to my document in xsl fo. I can get the page numbers to work but I need them to show at the bottom of each page. I know you can define an area as region-after...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.