RE: Page numbering

2003-02-10 Thread H. krishna
thanks all.


Regards,

H. Balakrishnan


--- Patrick Dean Rusk [EMAIL PROTECTED] wrote:
   now, the pagenumber is not displayed in the
 first
   page.
  
   But, i need the page number start with 2 page is
 left
   alignment and 3 page is right alignment.
 
  The same way, create different page masters for
 even and odd pages.
 
   That's right.  Extend my example to have page
 masters for firstPage,
 otherPageEven, otherPageOdd.  Changed the named
 header regions to
 firstPage-before, otherPageEven-before, and
 otherPageOdd-before.  Then use
 the odd-or-even in the
 conditional-page-master-reference element to
 distinguish them.
 
 Here's an updated fragmentary example:
 
 fo:layout-master-set
 
   fo:simple-page-master master-name=firstPage
   fo:region-before region-name=firstPage-before/
   fo:region-body/
   /fo:simple-page-master
 
   fo:simple-page-master master-name=otherPageOdd
   fo:region-before
 region-name=otherPageOdd-before/
   fo:region-body/
   /fo:simple-page-master
 
   fo:simple-page-master master-name=otherPageEven
   fo:region-before
 region-name=otherPageEven-before/
   fo:region-body/
   /fo:simple-page-master
 
   fo:page-sequence-master master-name=contents
   fo:repeatable-page-master-alternatives
   fo:conditional-page-master-reference
   master-reference=firstPage
   page-position=first/
   fo:conditional-page-master-reference
   master-reference=otherPageOdd
   odd-or-even=odd
   page-position=any/
   fo:conditional-page-master-reference
   master-reference=otherPageEven
   odd-or-even=even
   page-position=any/
   /fo:repeatable-page-master-alternatives
   /fo:page-sequence-master
 
 /fo:layout-master-set
 
 fo:page-sequence master-reference=contents
 
   fo:static-content flow-name=firstPage-before
   fo:block
   Look!  No page number here.
   /fo:block
   /fo:static-content
 
   fo:static-content flow-name=otherPageOdd-before
   fo:block text-align=right
   p. fo:page-number/
   /fo:block
   /fo:static-content
 
   fo:static-content
 flow-name=otherPageEven-before
   fo:block text-align=left
   p. fo:page-number/
   /fo:block
   /fo:static-content
 
   fo:flow flow-name=xsl-region-body
   fo:block
   Body text.
   /fo:block
   /fo:flow
 
 /fo:page-sequence
 
 
 Pat
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Page numbering

2003-02-09 Thread H. krishna
Dear Patrick Rusk,

Thanks all of your comments. 

now, the pagenumber is not displayed in the first
page. 

But, i need the page number start with 2 page is left
alignment and 3 page is right alignment.


Immediate replay is highly appreciated.

Regards,

Balakrishnan



--- Patrick Dean Rusk [EMAIL PROTECTED] wrote:
 The key is in having a different header (or footer)
 on the first page versus
 the others.  The steps to do this are:
 
 1) Have a separate page master for the first page
 versus the rest of the
 pages.
 
 2) Add different region-names to the header (or
 footer) regions on those
 pages.
 
 3) Use the repeatable-page-master-alternatives
 feature to invoke the proper
 page masters for the first versus the other pages.
 
 4) In your actual page sequence, define the contents
 of the header (or
 footer) regions to include the page number on in the
 other pages header
 region.
 
 Here's a fragmentary example:
 
 fo:layout-master-set
 
   fo:simple-page-master master-name=firstPage
   fo:region-before region-name=firstPage-before/
   fo:region-body/
   /fo:simple-page-master
 
   fo:simple-page-master master-name=otherPage
   fo:region-before region-name=otherPage-before/
   fo:region-body/
   /fo:simple-page-master
 
   fo:page-sequence-master master-name=contents
   fo:repeatable-page-master-alternatives
   fo:conditional-page-master-reference
   master-reference=firstPage
   page-position=first/
   fo:conditional-page-master-reference
   master-reference=otherPage
   page-position=any/
   /fo:repeatable-page-master-alternatives
   /fo:page-sequence-master
 
 /fo:layout-master-set
 
 fo:page-sequence master-reference=contents
 
   fo:static-content flow-name=firstPage-before
   fo:block
   Look!  No page number here.
   /fo:block
   /fo:static-content
 
   fo:static-content flow-name=otherPage-before
   fo:block
   The page number is fo:page-number/
   /fo:block
   /fo:static-content
 
   fo:flow flow-name=xsl-region-body
   fo:block
   Body text.
   /fo:block
   /fo:flow
 
 /fo:page-sequence
 
   Hope this helps.
 
 Patrick Rusk
 
 
 -Original Message-
 From: H. krishna
 [mailto:[EMAIL PROTECTED]
 Sent: Saturday, February 08, 2003 5:43 AM
 To: [EMAIL PROTECTED]
 Subject: Page numbering
 
 
 Hai,
 
 
 i don't need the page number in the first page only.
 but, want to second page start like 2.
 
 Immediate response is highly appreciated.
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Page numbering

2003-02-09 Thread Oleg Tkachenko
H. krishna wrote:
now, the pagenumber is not displayed in the first
page. 

But, i need the page number start with 2 page is left
alignment and 3 page is right alignment.
The same way, create different page masters for even and odd pages.
--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Page numbering

2003-02-09 Thread Patrick Dean Rusk
  now, the pagenumber is not displayed in the first
  page.
 
  But, i need the page number start with 2 page is left
  alignment and 3 page is right alignment.

 The same way, create different page masters for even and odd pages.

That's right.  Extend my example to have page masters for firstPage,
otherPageEven, otherPageOdd.  Changed the named header regions to
firstPage-before, otherPageEven-before, and otherPageOdd-before.  Then use
the odd-or-even in the conditional-page-master-reference element to
distinguish them.

Here's an updated fragmentary example:

fo:layout-master-set

fo:simple-page-master master-name=firstPage
fo:region-before region-name=firstPage-before/
fo:region-body/
/fo:simple-page-master

fo:simple-page-master master-name=otherPageOdd
fo:region-before region-name=otherPageOdd-before/
fo:region-body/
/fo:simple-page-master

fo:simple-page-master master-name=otherPageEven
fo:region-before region-name=otherPageEven-before/
fo:region-body/
/fo:simple-page-master

fo:page-sequence-master master-name=contents
fo:repeatable-page-master-alternatives
fo:conditional-page-master-reference
master-reference=firstPage
page-position=first/
fo:conditional-page-master-reference
master-reference=otherPageOdd
odd-or-even=odd
page-position=any/
fo:conditional-page-master-reference
master-reference=otherPageEven
odd-or-even=even
page-position=any/
/fo:repeatable-page-master-alternatives
/fo:page-sequence-master

/fo:layout-master-set

fo:page-sequence master-reference=contents

fo:static-content flow-name=firstPage-before
fo:block
Look!  No page number here.
/fo:block
/fo:static-content

fo:static-content flow-name=otherPageOdd-before
fo:block text-align=right
p. fo:page-number/
/fo:block
/fo:static-content

fo:static-content flow-name=otherPageEven-before
fo:block text-align=left
p. fo:page-number/
/fo:block
/fo:static-content

fo:flow flow-name=xsl-region-body
fo:block
Body text.
/fo:block
/fo:flow

/fo:page-sequence


Pat


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Page numbering

2003-02-08 Thread Oleg Tkachenko
H. krishna wrote:
i don't need the page number in the first page only.
but, want to second page start like 2.
That's XSL-Fo basics actually. You have to have different page masters 
for the first page and for the rest ones and put page master only on the 
second master. See Dave's book for example 
http://www.dpawson.co.uk/xsl/sect3/bk/ch05.html#d0e1448.

--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Page numbering

2003-02-08 Thread J.Pietschmann
H. krishna wrote:
i don't need the page number in the first page only.
but, want to second page start like 2.
That's a variant of this FAQ:
  http://xml.apache.org/fop/faq.html#faq-N10532
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Page numbering

2003-02-08 Thread Patrick Dean Rusk
The key is in having a different header (or footer) on the first page versus
the others.  The steps to do this are:

1) Have a separate page master for the first page versus the rest of the
pages.

2) Add different region-names to the header (or footer) regions on those
pages.

3) Use the repeatable-page-master-alternatives feature to invoke the proper
page masters for the first versus the other pages.

4) In your actual page sequence, define the contents of the header (or
footer) regions to include the page number on in the other pages header
region.

Here's a fragmentary example:

fo:layout-master-set

fo:simple-page-master master-name=firstPage
fo:region-before region-name=firstPage-before/
fo:region-body/
/fo:simple-page-master

fo:simple-page-master master-name=otherPage
fo:region-before region-name=otherPage-before/
fo:region-body/
/fo:simple-page-master

fo:page-sequence-master master-name=contents
fo:repeatable-page-master-alternatives
fo:conditional-page-master-reference
master-reference=firstPage
page-position=first/
fo:conditional-page-master-reference
master-reference=otherPage
page-position=any/
/fo:repeatable-page-master-alternatives
/fo:page-sequence-master

/fo:layout-master-set

fo:page-sequence master-reference=contents

fo:static-content flow-name=firstPage-before
fo:block
Look!  No page number here.
/fo:block
/fo:static-content

fo:static-content flow-name=otherPage-before
fo:block
The page number is fo:page-number/
/fo:block
/fo:static-content

fo:flow flow-name=xsl-region-body
fo:block
Body text.
/fo:block
/fo:flow

/fo:page-sequence

Hope this helps.

Patrick Rusk


-Original Message-
From: H. krishna [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 08, 2003 5:43 AM
To: [EMAIL PROTECTED]
Subject: Page numbering


Hai,


i don't need the page number in the first page only.
but, want to second page start like 2.

Immediate response is highly appreciated.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Page Numbering when using multiple fo:page-squence tags

2002-05-10 Thread J.Pietschmann
Abhijat Upadhyay wrote:
if i am using mutiple page sequence (these are generated thru an iterator like 
using xsl:for-each tag, phisically there's just one fo:page-sequence tag)... 
then i am not able to show Page X of Y  correctly in my page... could someone 
give a solution for this
There is no way to do this with XSLFO alone, because
fo:page-number-citation will only get page numbers, not page
counts.
Look here for a possibility to overcome this:
 http://marc.theaimsgroup.com/?l=fop-userm=102002702026609w=2
J.Pietschmann