473,320 Members | 2,147 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,320 software developers and data experts.

absolute position in FOP and following/preceding text

I am using FOP to create PDF documents.

I have the problem where I need to create line of text on a document in
a certain line (absolute position), then the rest of the text needs to
follow after that fixed line of text.

What I am getting is the fixed line of text starting at the correct
place, but then the rest of the text is then starting at the top of the
document.

Is there any way of getting the rest of the text to follow the line of
the fixed line of text.

The rest of the text can be in any format, and there may be another
fixed line of text after the initial one, in these cases the text would
have to follow the next fixed line of text.

I am using MATCH templates, and cannot use for-each.

XML example

<fixed text 1>
<text>bla fixed 1</text>
<fixed text 1>
<normal text 1>
<text>bla normal 1</text>
<normal text 1>
<normal text 2>
<text>bla normal 2</text>
<normal text 2>
<normal text 3>
<text>bla normal 3</text>
<normal text 3>
<fixed text 2>
<text>bla fixed 2</text>
<fixed text 2>
<normal text 4>
<text>bla normal 4</text>
<normal text 4>
<normal text 5>
<text>bla normal 5</text>
<normal text 5>
<normal text 6>
<text>bla normal 6</text>
<normal text 6>

Document example

-----------------------------------------top of doc
----------------------------------------------------------------
bla fixed 1
bla normal 1
bla normal 2
bla normal 3


bla fixed 2

bla normal 4
bla normal 5
bla normal 6
---------------------------------------------- end of doc
----------------------------------------------------------------

Nov 8 '05 #1
0 1354

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

Similar topics

2
by: Angus McIntyre | last post by:
Can this be done with XPath? I have input XML that is basically of the form: <list> <item att="a">s1</item> <item att="a">s2</item> <item att="b">s3</item> <item att="c">s4</item> <item...
1
by: discomiller | last post by:
Mario Mueller: Hello *, radiobuttons belong to other radiobuttons by the "name="any_value"" attribut. Thats a fakt. I got the following XML:...
2
by: Zeke Koos | last post by:
<body> <div style="position:absolute; left:0px; top:0px; width:780px; height:42px; "> <img src="images/CW---Webpage_01.png" width=780 height=42> </div> <div style="position:absolute; left:0px;...
4
by: Peter Pfannenschmid | last post by:
Hello experts, I would be very grateful if you would have a look at the following URL: http://www.omeganet.de/test.html The html file and the associated style have been validated...
4
by: Robert | last post by:
Hi, I am trying to add a background to a cell that contains multiple horizontal coloured layers on top of eachother. I managed to do this in IE, but firefox displays something very different...
7
by: Alex | last post by:
Hi Everone, I need some advice on how to setup 4 columns where the outside two are absolute (120px) and the inner two (side by side) are relevent (Fluid) and change with the screen. Here's my...
3
by: horusprim | last post by:
Is there a CSS absolute positioning rendering bug in FF1.02 and IE 6? I have been experimenting with precision absolute positioning in CSS. The following test content was used in the...
2
by: nino9stars | last post by:
Hello, I have just started messing with absolute positioning on webpages, and it definitely let's you do some creative things. Well, after much searching and help, I got the images I was using...
14
by: Fistro | last post by:
I'm trying to find a design that would allow me to build web pages without having to worry about compatibility issues (not too much, in any case,,,) I've came across this CSS layout technique:...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.