ZVON
>
References
>
Zvon Example Repository
Intro
/
Search
/
ZVON
Example repository:
index
|
categories
|
search
All
>
XSL FO
>
General
> Printing headers
|
PDF document
Print headers using the element
static-content
with
flow-name
set to value xsl-region-before.
Source
<
fo:root
xmlns:fo="
http://www.w3.org/1999/XSL/Format
" >
<
fo:layout-master-set
>
<
fo:simple-page-master
master-name
="simple">
<
fo:region-body
margin-top
="2cm"/>
<
fo:region-before
extent
="2cm"/>
</
fo:simple-page-master
>
</
fo:layout-master-set
>
<
fo:page-sequence
master-reference
="simple">
<
fo:static-content
flow-name
="xsl-region-before">
<
fo:block
>This header will be printed on each page.</
fo:block
>
</
fo:static-content
>
<
fo:flow
flow-name
="xsl-region-body">
<
fo:block
>Block on the first page.</
fo:block
>
<
fo:block
break-before
="page">Block on the second page.</
fo:block
>
</
fo:flow
>
</
fo:page-sequence
>
</
fo:root
>