473,692 Members | 2,375 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 11612
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*********@gm ail.com> wrote in message
news:fb******** *************** ***@posting.goo gle.com...
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
2154
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 0.25 Problem : i am using apache fop 0.25 and i used the below to set a gif as background and alignment to be center...
4
2728
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 there a know technique to transform my data to XSL-FO without loosing my markup. For example, transformation my data to XHTML first and later from XHTML to XSL-FO? Hope someone can help me on this one.
0
1607
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 </u>)</line> </page> I would like the result of xsl:fo transformation to be:
0
1419
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 that if there is a page break it decide to print the block in the new page to avoid to break the block? Please help me.
0
3945
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 move to the next page. can any one suggest a way out? This is my code (number 18, Brunelli Rocco, should move to the next page): XML: <?xml version="1.0" encoding="windows-1252"?>
0
2430
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 <fo:layout-master-set> <fo:simple-page-master margin-left="0.5in" margin-right="0.5in" page-width="8.5in" margin-bottom="0.5in" master-name="Section-odd-page" margin-top="0.5in" page-height="14in"> <fo:region-after region-name="xsl-region-after-odd"
0
2490
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 i'm using. <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet
5
5108
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 that I can't work out how to perform addition in xsl fo. Here's my xsl file where I have created the table. <!-- Nextpage: Quote --> <fo:block break-before="page" space-before="2in" space-after="2in"> <fo:block...
1
5322
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 but don't know how. Heres my xsl file so far. <?xml version="1.0" encoding="ISO-8859-1" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" ...
0
8608
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8543
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8964
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8806
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8808
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6460
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4324
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2975
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2241
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.