473,586 Members | 2,681 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

substracting two page number citations?

Hello all,

I need to generate (SHEET X of Y) in titles for figures contained in a
section (I already generate page A of B at the bottom right of every
page in the document).

Is there a way for example to substract 2 page number citations? That
would solve part of my problem. Or is there any other way of doing
this?

Here is an snippet of the XSLT I'm working with:

<fo:block start-indent="0pt">
<fo:table table-layout="fixed"
keep-together.within-page="always">
<fo:table-column column-width="proporti onal-column-width(1)"/>

<fo:table-body>
<fo:table-row>
<fo:table-cell border-color="black" border-style="solid"
border-width="0.4pt" height="0.5in">
<fo:block keep-with-next="always" font-weight="bold">
<xsl:text>FIGUR E </xsl:text><xsl:v alue-of
select="@figure no" />
<xsl:text>: </xsl:text><xsl:a pply-templates
select="./Heading" mode="Bold-Inline"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell display-align="center" border-color="black"
border-style="solid" border-width="0.4pt" height="8.0in">
<fo:block>
<fo:block id="first-sheet{@figureno }"
line-height="0"></fo:block>
<xsl:apply-templates />
<xsl:if test="following ::node()!='GRAP HIC' or
following::node ()!='Descriptio n'">
<fo:block id="last-sheet{@figureno }"
line-height="0"></fo:block>
</xsl:if>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell display-align="after" border-color="black"
border-style="solid" border-width="0.4pt" height="0.45in" >
<fo:block keep-with-next="always" font-weight="bold"
text-align="center">
<xsl:text>FIGUR E </xsl:text><xsl:v alue-of
select="@figure no" />
<xsl:text>: </xsl:text><xsl:a pply-templates
select="./Heading" mode="Bold-Inline"/>
</fo:block>
<fo:block font-weight="bold" text-align="center">
<xsl:text>(SHEE T </xsl:text><fo:pa ge-number-citation
ref-id="first-sheet{@figureno }" line-height="0" /> OF
<xsl:variable
name="figure_fi rst_page_var">< fo:page-number-citation
ref-id="first-sheet{@figureno }"/></xsl:variable>
<xsl:variable
name="figure_la st_page_var"><f o:page-number-citation
ref-id="last-sheet{@figureno }"/></xsl:variable>
<xsl:variable name="last_shee t_var"
select="$figure _last_page_var - $figure_first_p age_var"/>
<xsl:value-of select="$last_s heet_var"/>
<xsl:text>)</xsl:text>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>

Regards
Jean-Francois Michaud

Jun 29 '06 #1
0 1492

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

Similar topics

1
4183
by: Michael Brennan-White | last post by:
If I submit my for using a get action the resulting page loads . If I use a post action I get an error page saying "The page cannot be found". I am calling the originating page!!! This happens in IE as well as FireFox. This code has been tested on a Win2003 server, IIS6, PHP 5.0.3, mySQL 4.1.8 and it works fine. The problem server is...
4
5313
by: hilz | last post by:
Hi all: Is there a way to make the <fo:page-number> start from a value different than 1 ? (using fop to generate pdf) thanks hilz
1
2973
by: Michel | last post by:
Hi all, This is my first post, so I am very new at this. I am trying to use page-number-citation twice in my code, but the second time it just shows '0'. The output is in pdf format and I am using Antenna XSL formatter V3. This is what I have sofar: <fo:page-sequence master-reference="frame-pages" force-page- count="even"> <fo:flow...
6
6854
by: Sean C. | last post by:
Helpful folks, I am having a hard time figuring out how to reduce my percentage of dirty page steal activity. Below are statistics for three fairly normal days, with the bufferpool hit ratios and page clean percentages, as well as an average of transaction rate for the entire days work. The ORDERST_BP was created to service our most...
7
2118
by: Jean-David Beyer | last post by:
I have six hard drives (4 SCSI and 2 EIDE) on my main machine with parts of a database on each drive. The main index is on one SCSI drive all to itself. The main data are on the other three SCSI drives. Small relations are on one EIDE drive, and the logfiles are on the other EIDE drive. When running the task, below, the rest of the machine is...
32
76397
by: Cmorriskuerten | last post by:
HI, is this is this solution to test if a number is a prime number or not: /* * Is n a prime number? * Return TRUE (1): n is a prime number * Return FALSE (0): n is a *not* a prime number */ int is_prime_number(int n)
1
1143
by: Piotr Sobolewski | last post by:
Hello, I write a program which will stabilize a shaking video made with hand camera. Of course it involves substracting frames, and it is substracting a huge lot of one byte values. The problem is that it takes a lot of time. To find out how was the camera moved between two consecutive frames I have two substract that two frames in all...
7
2235
by: Shapper | last post by:
Hello, When creating an ASP.NET/VB web site I place my code in a code behind page, i.e., aspx.vb. Sometimes I have functions which are common to all aspx files. Is it possible in page1.aspx to use page1.aspx.vb and also a common file named global.aspx.vb which will hold all the functions common to all aspx files in a web site.
0
1952
by: Jean-François Michaud | last post by:
Hello people, I'm having a hard time figuring out how to align my page numbe properly to the right margin in the Table of content I'm generating. I'm using FOP and there are some known issues regarding inline/inline-containers that use the text-align="justify" attribute value. It seems to plain not work at all in my case. I tried many...
0
7839
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8202
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8338
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7959
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6614
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5390
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3865
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1449
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.