Re: Re: Re: RE: [xsl] number total of page

Subject: Re: Re: Re: RE: [xsl] number total of page
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 7 Jul 2003 18:08:31 +0100
> Sorry I don't anderstand, can you explain . it could work . :)


Currently you are generating an FO file that will look like

... lots of stuff...
</xsl:fo:page-sequence>
</xsl:fo:root>


If instead it looked like


... lots of stuff...
<fo:block id="last-page"/>
</xsl:fo:page-sequence>
</xsl:fo:root>

then it would print the same way, but you could use page-citation to
that last empty block to produce the string value of the last page
number,

ie some other template could write out
	
<fo:page-number-citation ref-id="last-lage/> 


and this will be the final page number.

depending on your stylesheet it may or may not be trivial to determine
exactly which page-sequence template you need to change, but a little
experimentation should let you find it (for example you could change
them all, adding blocks with different ids and just look at the result)

david

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread