Question about page numbering

"Todeush, Serhiy" <[email protected]> Tue, 17 Sep 2002 10:30:54 +0100
Newsgroups gmane.text.xml.jfor.general
Message-ID <DD96E17B2F7BD3119213009027944BE00188A43A@DUBSEXC1>
Hello!

I have a question about page numbering and hope that somebody can help me.

I have a document with 2 sections. Each section is 2 pages long.

First section is a Title and should NOT have page numbers.
Second section HAS page numbering, which should start with page No 1.
In other words, page 3 of the document will have footer saying Page No:1, 
and page 4 will have footer with Page No:2.

I've created FO file (please see snippet below) with 2 fo:page-sequence. 
For the second sequence I've specified initial-page-number="1" to start page
numbering with 1.

This does work with FOP - and I can see proper numbering in PDF file.
However RTF created with JFOR has page 3 with footer saying Page No:3 and
page 4 with footer "Page No:4".

So, it looks like  [ initial-page-number="1" ] does not work in JFOR.

Or maybe I'm doing something wrong?

Is there a way in JFOR to create such kind of documents?


Any help or suggestion will be greatly appreciated.

Thank you,
Serhiy

=========                  testdoc.fo        ==========================

<?xml version="1.0" encoding="iso-8859-1" ?> 
  <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  <fo:layout-master-set >
	  <fo:simple-page-master 
		margin-right="30mm" 
		margin-left="30mm" 
		margin-bottom="50mm" 
		margin-top="100mm" 
		page-width="210mm" 
		page-height="297mm" 
	master-name="wordingA4">
		  <fo:region-body margin-bottom="50mm" margin-top="50mm" /> 
		  <fo:region-before extent="50mm" /> 
		  <fo:region-after extent="50mm" /> 
	  </fo:simple-page-master>
	
	  <fo:page-sequence-master master-name="wordingA4first">
		  <fo:repeatable-page-master-reference
master-reference="wordingA4" /> 
	  </fo:page-sequence-master>
	
	  <fo:page-sequence-master master-name="wordingA4rest">
		  <fo:repeatable-page-master-reference
master-reference="wordingA4" /> 
	  </fo:page-sequence-master>
  </fo:layout-master-set>

  <fo:page-sequence master-reference="wordingA4first">
	  <fo:static-content flow-name="xsl-region-after">
		<fo:block font-family="Times Roman" font-size="16pt"
text-align="center" >

			Section 1 - Footer Without Page Number

		</fo:block> 
	  </fo:static-content>

  	<fo:flow flow-name="xsl-region-body">
	  <fo:block  font-family="Helvetica" font-size="26pt" >

			This is Title Page

	  </fo:block>
	  <fo:block  break-before="page" /> 
	  <fo:block  font-family="Helvetica" font-size="26pt" >

			This is Another Title Page

	  </fo:block>
	</fo:flow>
  </fo:page-sequence>

  <fo:page-sequence master-reference="wordingA4rest"
initial-page-number="1">
	  <fo:static-content flow-name="xsl-region-after">
		  <fo:block font-family="Times Roman" font-size="16pt"
text-align="center" >

			Section 2 - Footer With Page Number </fo:block> 
			<fo:block>Page No:<fo:page-number/> </fo:block> 

	  </fo:static-content>
  	
	<fo:flow flow-name="xsl-region-body">
	  <fo:block  font-family="Helvetica" font-size="26pt" >
		<fo:inline font-style="italic" font-weight="bold">

			This is Body Page Number 1 - Footer should also have
Page No:1

		</fo:inline> 
	  </fo:block>
	  <fo:block  break-before="page" /> 
	  <fo:block  font-family="Helvetica" font-size="26pt" >
		<fo:inline font-style="italic" font-weight="bold">

			This is Another Body Page Number 2 - Footer should
also have Page No:2	

		</fo:inline> 
	  </fo:block>
  	</fo:flow>
  </fo:page-sequence>
</fo:root>

========= End of testdoc.fo =============


-------------------------------------------------------
Sponsored by: AMD - Your access to the experts on Hammer Technology! 
Open Source & Linux Developers, register now for the AMD Developer 
Symposium. Code: EX8664 http://www.developwithamd.com/developerlab