W3C home > Mailing lists > Public > www-xsl-fo@w3.org > March 2011

problem with deciding whether to or not to print heading on last page : xsl-fo

From: Arun Vijay <arunnvijay@gmail.com>
Date: Mon, 14 Mar 2011 22:33:11 -0700 (PDT)
Message-ID: <31151201.post@talk.nabble.com>
To: www-xsl-fo@w3.org

Hi i have a problem with pdf generation using xsl-fo. The pdf print invoice
lines in each page. So there is a conditional checking at the last page to
determine whether to or not to print the heading on last page. If there is
one or more lines in the last page then there should be a heading. Otherwise

currently it is done using the logic below

if(total number of invoice lines== preceding::number of invoice lines+1)
 call an empty marker
call a marker which prints the heading

when preceding number of invoice lines+1 is equal to total number of invoice
lines, heading will not be displayed. The logic holds true when there is no
more lines to be displayed in the last page or when the number of lines in
last page is greater than one.

Now the problem is,

the above logic fails when there is only one line in the last page.

The condition if(total number of invoice lines==preceeding::number of
invoice lines+1) will become true and an empty marker will be called which
will not display the heading. I need to display the heading even if there is
only one invoice line in the last page.

Is there any way to solve this problem?

Any help is appreciated.

View this message in context: http://old.nabble.com/problem-with-deciding-whether-to-or-not-to-print-heading-on-last-page-%3A-xsl-fo-tp31151201p31151201.html
Sent from the w3.org - www-xsl-fo mailing list archive at Nabble.com.
Received on Wednesday, 16 March 2011 10:36:43 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:10:14 UTC