FOP 0.95  Java 5

I receive a single, large XML invoice file.  A single file contains
multiple invoices of varying length.  When the XML contains only ONE
invoice my page numbering works fine. I am trying to number the pages in
the form of:   Page x  of  z

However, when I include multiple invoices within ONE  XML file, my
"last-page" logic fails.  I get this error:
      ValidationException: Property id "last-page" previously used; id
values must be unique in document.

When I remove the references to "last-page", my invoices print as
expected.

Currently, I use the following logic:
 <fo:block-container position="absolute" top="2.0in" left="5.5in">
    <fo:block font-size="9pt" text-align="left">
       Page <fo:page-number/> of <fo:page-number-citation
ref-id="last-page"/>
    </fo:block>
...
...
...

        <fo:block id="last-page">
        </fo:block>
    </fo:flow>
  </fo:page-sequence>
</xsl:for-each>


Any suggestions?



Jeff 

Reply via email to