Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] How to display the previous page number

From: "Ranjitha Murthy Rao" <ranjithamrao@----------->
To:
Date: 3/1/2007 3:30:00 AM
Thank you very much, appreciate your quick and useful reply.
Regards,
Ranjitha Rao





From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] How to display the previous page number
Date: Tue, 27 Feb 2007 18:23:19 -0500

Arithmetic is not allowed on page numbers in XSL-FO.



Unless a vendor provides for you an extension for you to use, you are only 
able to access the current page number or a cited page number, not an 
algorithmically-determined page number.



The suggested solution would add the following to the bottom of the page:



     3 - 1 // 3



I hope this helps (though I realize it doesn't give you what you want).



. . . . . . . . . Ken



At 2007-02-27 20:56 +0530, Mukul Gandhi wrote:
I think, you can use the '-' operator to accomplish this (shown below):



<fo:page-number/> - 1 // <fo:page-number/>



but if you need to handle page 1 in a special way, where if you do not
want to display '0 //' before 1, this simple way may be difficult to
handle this case.

I am not a good expert here, but this hint might help you get started.



On 2/27/07, Ranjitha Murthy Rao <ranjithamrao@xxxxxxxxxxx> wrote:
I need to display the page number in the following format :
<previous_pageNumber> // <current_page Number>

For example:
On page 3, I need to display:
2 // 3
and on page 5
4 //5

We are using for 0.20.4 and xsl version 1.0
Thanks in advance,
Ranjitha Rao




--
World-wide corporate, govt. & user group XML, XSL and UBL training
RSS feeds:     publicly-available developer resources and training
G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
Male Cancer Awareness Aug'05  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal


_________________________________________________________________

"Airtel Song Catcher. Get your Hello Tunes instantly" 
http://www.airtel.in/songcatcher/SONG_CATCHER.html


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent