473,466 Members | 1,331 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

<Fo:Block> Overflow onto new page (Formatting Objects)

I have a request to find out is there an easy way to solve this little
poblem.
___________________
| Block 1 |
| |
| |
| |
|__________________|
| Block 2 |
| |
|__________________|

Block 1 is a variable size.
Block 2 is a constant size.

How would I keep block 2 as a solid block with no overflow onto another
page if Block 1 is too big for one page.

eg.
Page 1
___________________
| Block 1 |
| |
| |
| |
|__________________|
| Block 2 |
|__________________|
Page 2
____________________
| Block 2 |
|__________________|

Where I want the whole of Block 2 together as a solid block so i'm
looking for:-
Page 1
___________________
| Block 1 |
| |
| |
| |
|__________________|

Page 2
____________________
| Block 2 |
| |
|__________________|

Any help would be great.

Morrell

Oct 2 '06 #1
2 2495
morrell wrote:
I have a request to find out is there an easy way to solve this little
poblem.
___________________
| Block 1 |
| |
| |
| |
|__________________|
| Block 2 |
| |
|__________________|

Block 1 is a variable size.
Block 2 is a constant size.

How would I keep block 2 as a solid block with no overflow onto another
page if Block 1 is too big for one page.

eg.
Page 1
___________________
| Block 1 |
| |
| |
| |
|__________________|
| Block 2 |
|__________________|
Page 2
____________________
| Block 2 |
|__________________|

Where I want the whole of Block 2 together as a solid block so i'm
looking for:-
Page 1
___________________
| Block 1 |
| |
| |
| |
|__________________|

Page 2
____________________
| Block 2 |
| |
|__________________|

Any help would be great.

Morrell
See http://www.w3.org/TR/xsl/slice7.html#keep-together

// Magnus
Oct 3 '06 #2

Magnus Henriksson wrote:
morrell wrote:
I have a request to find out is there an easy way to solve this little
poblem.
___________________
| Block 1 |
| |
| |
| |
|__________________|
| Block 2 |
| |
|__________________|

Block 1 is a variable size.
Block 2 is a constant size.

How would I keep block 2 as a solid block with no overflow onto another
page if Block 1 is too big for one page.

eg.
Page 1
___________________
| Block 1 |
| |
| |
| |
|__________________|
| Block 2 |
|__________________|
Page 2
____________________
| Block 2 |
|__________________|

Where I want the whole of Block 2 together as a solid block so i'm
looking for:-
Page 1
___________________
| Block 1 |
| |
| |
| |
|__________________|

Page 2
____________________
| Block 2 |
| |
|__________________|

Any help would be great.

Morrell

See http://www.w3.org/TR/xsl/slice7.html#keep-together

// Magnus
Thanks Magnus

Found out the FOP processor we are using does not support keep-together
in blocks. Unfortunate really but I have discovered it will work on a
table-row.
Not the best of ways round but it will do until support is provided in
the engine we use.

Thanks again

Morrell

Oct 3 '06 #3

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

Similar topics

4
by: lionel | last post by:
Hello yall, I can't find a way to center a <fo:table> element. I have tried many attributes (display-align,start-indent,padding-start,...). I have tried to encapslulate it in a <fo:block>...
2
by: llaxman | last post by:
Hello everyone, I was wondering if anyone can help me? I am having some problems wit the <noscript> tag. I actually use it to block banner advertisements from being displaye in my website. I...
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
3
by: Blaise Garant | last post by:
Hi I've made a stylesheet to transform my data into XSL-FO. This stylesheet used to work with MSXSL 4.0 but I've got some issues in ..NET. First, I changed removed all the "node-set()" function...
3
by: Ali Sahin | last post by:
Hi there, I'd like to transform a XML-File to PDF. The XML-File ist build like followed: <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <?xml-stylesheet type="text/xsl"...
0
by: annand00 | last post by:
hi! i have a quick question. i have an xsl transform that converts xml to xslfo. The transform generates two <fo:block> 's (say A & B) one after another (A --> B). This is due to the original xml...
1
by: morrell | last post by:
Hi all Is there any chance you can check if a fo:block with an id of "Tips" contains any data. The problem I'm having is creating a fo:block then for-each node within one part of the xml I'm...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
1
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
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...
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.