W3C home > Mailing lists > Public > www-xsl-fo@w3.org > April 2002

A problem with numbered pages

From: Marina Pérel <marina.perel@sib.fr>
Date: Wed, 24 Apr 2002 17:52:47 +0100
Message-ID: <00fb01c1ebb0$7653f630$23255dc0@sib.fr>
To: <www-xsl-fo@w3.org>
I have a small problem but it will be great if somebody can resolve it. 

From a XML document and a XSL-FO stylesheet, i generate a PDF document within there are several documents (i use Fop). I would like to have a notation like "1/2" for each document within my PDF document.

I have already had a notation like "1/3" but for all my PDF document.
My stylesheet looks like :
   <fo:simple-page-master ...>
   <fo:page-sequence-master ...>

<xsl:for-each select="aDocument">
  <fo:page-sequence ...>
    <fo:static-content flow-name="xsl-region-after">
      page <fo:page-number/> / <fo:page-number-citation ref-id="endofdoc"> 
    <fo:block id="endofdoc"> </fo:block>

With this stylesheet, I have this error : the variable "endofdoc" already exists. 
this error is normal : i must have a unique id for the block but i try a lot of thinks and i didn't succeed to resolv my problem.

Anyone has an idea ? Is it possible to do that with xsl:fo or xslt ? I am interested in any help.

I hope you have understand my problem (sorry for my english!!!).

Thanks in advance for your help.

Received on Wednesday, 24 April 2002 11:49:43 UTC

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