You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Ahmed Haddad <ah...@carturis.fr> on 2007/07/30 00:14:08 UTC

Dynamic headers in FOP 0.93??

Hi FOP experts !

 

I am using version 0.93 of FOP. I am looking for the best way to generate a
dynamic page header. It will be great if I can use xsl :value-of in my
xsl-region-before ??

If it is not possible, how can I do it ???

The goal is to print invoices of many clients. For each invoice, I have to
generate a header with the client name, address. Some invoices will be
generated on many pages, so a header in xsl-region-before seems the best way
to do it. But the problem is that xsl-region-before can be fed only with a
static-content ??

 

Thanx.

 

 


RE: Dynamic headers in FOP 0.93?? => fo:marker works fine

Posted by Ahmed Haddad <ah...@carturis.fr>.
Thanks Andreas. It works fine.

BR.

-----Message d'origine-----
De : Andreas L Delmelle [mailto:a_l.delmelle@pandora.be] 
Envoyé : lundi 30 juillet 2007 00:28
À : fop-users@xmlgraphics.apache.org
Objet : Re: Dynamic headers in FOP 0.93??

On Jul 30, 2007, at 00:14, Ahmed Haddad wrote:

Hi
> I am using version 0.93 of FOP. I am looking for the best way to  
> generate a dynamic page header. It will be great if I can use  
> xsl :value-of in my xsl-region-before ??
>
> If it is not possible, how can I do it ???
>
> The goal is to print invoices of many clients… For each invoice, I  
> have to generate a header with the client name, address… Some  
> invoices will be generated on many pages, so a header in xsl-region- 
> before seems the best way to do it. But the problem is that xsl- 
> region-before can be fed only with a static-content ??
That is correct. You will definitely want to take a look at fo:marker  
and fo:retrieve-marker for this.

In short: put an fo:retrieve-marker in your static-content, and put  
fo:markers inside critical fo:blocks in the fo:flow marking the start  
of each invoice. The formatter (FOP) will then replace the  
fo:retrieve-marker with the corresponding fo:marker that ends up on  
each page.

HTH!

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Dynamic headers in FOP 0.93??

Posted by Andreas L Delmelle <a_...@pandora.be>.
On Jul 30, 2007, at 00:14, Ahmed Haddad wrote:

Hi
> I am using version 0.93 of FOP. I am looking for the best way to  
> generate a dynamic page header. It will be great if I can use  
> xsl :value-of in my xsl-region-before ??
>
> If it is not possible, how can I do it ???
>
> The goal is to print invoices of many clients… For each invoice, I  
> have to generate a header with the client name, address… Some  
> invoices will be generated on many pages, so a header in xsl-region- 
> before seems the best way to do it. But the problem is that xsl- 
> region-before can be fed only with a static-content ??
That is correct. You will definitely want to take a look at fo:marker  
and fo:retrieve-marker for this.

In short: put an fo:retrieve-marker in your static-content, and put  
fo:markers inside critical fo:blocks in the fo:flow marking the start  
of each invoice. The formatter (FOP) will then replace the  
fo:retrieve-marker with the corresponding fo:marker that ends up on  
each page.

HTH!

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org