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

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

From: Arun Vijay <arunnvijay@gmail.com>
Date: Thu, 17 Mar 2011 05:13:20 -0700 (PDT)
Message-ID: <31171972.post@talk.nabble.com>
To: www-xsl-fo@w3.org

<pre>count(preceding::number of invoice lines) will give the number of lines
up to current line (not including the current line). So 1 must be added to
get actual no. of lines.

i hope the following images gives you a better idea.

this is the logic used

This is the general kind of invoice received. No problem with heading in the
last page

When there are only two lines in the last page, the logic still holds

But when there is only one line in the last page the conditional check 
if(total number of invoice lines==preceeding::number of invoice lines+1) 
become true and the heading is not displayed.
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-tp31151201p31171972.html
Sent from the w3.org - www-xsl-fo mailing list archive at Nabble.com.
Received on Thursday, 17 March 2011 12:13:47 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:34 UTC