xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steffanina, Jeff" <Jeff.Steffan...@marriott.com>
Subject RE: Page numbers
Date Tue, 14 Sep 2010 12:27:21 GMT
A single XML file contains many invoices.  Any single invoice may contain multiple pages.
 For EACH invoice in the file, I need to produce a page count in the form of:  Page x of 
z for that invoice.
Any ideas?


	From: Georg Datterl [mailto:georg.datterl@geneon.de] 
	Sent: Monday, September 13, 2010 3:00 PM
	To: fop-users@xmlgraphics.apache.org
	Subject: AW: Page numbers

	Hi Jeff,


	your block <fo:block id="last-page"> is inside of a <for-each>. So you probably
get such a block once per invoice. You only want it on the last invoice.


	Mit freundlichen Grüßen


	Georg Datterl


	------ Kontakt ------


	Georg Datterl


	Geneon media solutions gmbh

	Gutenstetter Straße 8a

	90449 Nürnberg


	HRB Nürnberg: 17193

	Geschäftsführer: Yong-Harry Steiert 


	Tel.: 0911/36 78 88 - 26

	Fax: 0911/36 78 88 - 20




	Weitere Mitglieder der Willmy MediaGroup:


	IRS Integrated Realization Services GmbH:    www.irs-nbg.de <http://www.irs-nbg.de>

	Willmy PrintMedia GmbH:                            www.willmy.de <http://www.willmy.de>

	Willmy Consult & Content GmbH:                 www.willmycc.de <http://www.willmycc.de>


	Von: Steffanina, Jeff [mailto:Jeff.Steffanina@marriott.com] 
	Gesendet: Montag, 13. September 2010 20:48
	An: fop-users@xmlgraphics.apache.org
	Betreff: Page numbers



	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 id="last-page"> 


	Any suggestions? 



View raw message