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

xsl-fo last page (variables?)

Hello everyone,
i tried to find in the archives, no luck.

Maybe it's simple, i really cant get it done.
Need to output an invoice (pdf) from a xml file. It has (n) lines and a
bottom. If the page is the last, in the bottom i shall print the total
amount, otherwise the bottom must be with no amount.

How can i say to fop... if it is the last page do not print the amount?

(i could reach the number of the last page with
[fo:page-number-citation ref-id="last-page"] .. but i am stuck there..

Thanks a lot

Oct 17 '06 #1
3 2667
I haven't worked with XSL-FO anywhere near enough, but a quick scan
through the XSL FAQ fount
http://www.dpawson.co.uk/xsl/sect3/f...html#d12444e16
which puts one kind of mark on the last page and a different mark on all
other pages, by setting up two different page masters and switching
between them based on page-position="last". Sounds like the kind of
thing you're looking for...

--
Joe Kesselman / Beware the fury of a patient man. -- John Dryden
Oct 17 '06 #2

Joseph Kesselman ha scritto:
I haven't worked with XSL-FO anywhere near enough, but a quick scan
through the XSL FAQ fount
http://www.dpawson.co.uk/xsl/sect3/f...html#d12444e16
which puts one kind of mark on the last page and a different mark on all
other pages, by setting up two different page masters and switching
between them based on page-position="last". Sounds like the kind of
thing you're looking for...
thanks a lot, i am gonna try and i'll let you know
Luigi

Oct 19 '06 #3
Joseph Kesselman wrote:
fount
.... "found". Sorry. Sigh.

--
Joe Kesselman / Beware the fury of a patient man. -- John Dryden
Oct 19 '06 #4

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 ...
1
by: MArc Baumgartner | last post by:
Hello all, I have got a Question about XSL:FO: A XML-File contains any customers. For every customer I have to generate a letter. This letter can contain - depending on the information about...
2
by: Anshul Seth | last post by:
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...
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...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.