i tried it this way: <fo:flow flow-name="xsl-region-body"> <xsl:apply-templates select="data"/> <fo:block id="lastpage"></fo:block> <!-- IMPORTANT: THIS MUST BE THE LAST THING!!!--> </fo:flow>
but one of my page-sequences has "initial-page-number="1"". FOP only count x pages, but my document has x+1 pages. without "initial-page-number="1"" everything works fine? -----Ursprungliche Nachricht----- Von: J.Pietschmann [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 10. April 2002 21:40 An: [EMAIL PROTECTED] Betreff: Re: page-number Henrik Holle wrote: > how can i count all pages in my document? i have different "page-sequence > master-reference" but want to something like :" this document has 12 pages". > is it possible? Yes, you got some hints already. Keep in mind that this will force FOP to keep all pages in memory until the last page is rendered. If you get a memory overflow exception, remove the forward reference to the last page first. J.Pietschmann --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]