472,374 Members | 1,576 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,374 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 11517
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...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...

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.