Thanks Cyril,
please see answers below
-----Original Message-----
From: Cyril Rognon [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 03, 2001 3:46 PM
To: [EMAIL PROTECTED]
Subject: Re: a custom header according to page number

Your question is a little underspecified ...

if you want to distinguish odd and even pages, the page master conditionnal part is for you (see the page master fo definition : chapter 6.4.11 http://www.w3.org/TR/xsl/slice6.html#fo_conditional-page-master-reference). I think you may handle more than just odd-even with this. Use this with different header section...

[Ismaeil, Sameh] no, I don't want to distinguish odd and even pages, specifically, I need to distinguish the frist page from the rest of the pages, any clue? 
Don't think about using some predicate considering the page number, xsl fo and fop are loosely coupled, it is meant to be that way. So it forbids the user to use the internal page number programaticaly (some FO processor provide extension to do this, fop does not).
[Ismaeil, Sameh] yes, I kind of noticed that , it is usually one way: FOP code -> fo XSL ->pdf document
if your need is more complex and you have some magic formula to guess wich page is affected, conditionnal master-page may be to low level ...
[Ismaeil, Sameh] I'll give conditional-master-page some insight and hope it will work, thanks a lot
Good luck.

At 13:13 03/12/2001 +0000, you wrote:
Hello everybody
I am a FOP beginner, can somebody help me please with this problem

I need to put a cutsomized header in my pages, the header should contain a
different block (of text) according to the page currently being generated,
so the condition will be based on the page number

1. is there an fo property I can use (say for the static-content or the
block elemtents) that makes certain blocks appear/disappear from headers
according to page number
2. how can I use FOP to generate this content

Cyril Rognon
http://www.objectiva.fr

Reply via email to