aboutsummaryrefslogtreecommitdiffstats
path: root/fop/test/xml/bugtests/header_footer.fo
diff options
context:
space:
mode:
authorGlenn Adams <gadams@apache.org>2016-03-06 06:14:41 +0000
committerGlenn Adams <gadams@apache.org>2016-03-06 06:14:41 +0000
commit57949ba0cfffa2dd5933a103c6ad867de9f1e7a0 (patch)
treecd1d8100a9135449635251820f39f272151005ac /fop/test/xml/bugtests/header_footer.fo
parentc8cde713f54ca731f4a7f3bfaef8af9e8a1b9262 (diff)
downloadxmlgraphics-fop-57949ba0cfffa2dd5933a103c6ad867de9f1e7a0.tar.gz
xmlgraphics-fop-57949ba0cfffa2dd5933a103c6ad867de9f1e7a0.zip
Configure maven build.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/maven@1733788 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'fop/test/xml/bugtests/header_footer.fo')
-rw-r--r--fop/test/xml/bugtests/header_footer.fo137
1 files changed, 137 insertions, 0 deletions
diff --git a/fop/test/xml/bugtests/header_footer.fo b/fop/test/xml/bugtests/header_footer.fo
new file mode 100644
index 000000000..d278e818a
--- /dev/null
+++ b/fop/test/xml/bugtests/header_footer.fo
@@ -0,0 +1,137 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
+ <fo:layout-master-set>
+ <fo:simple-page-master master-name="simplePM"
+ page-height="25cm"
+ page-width="18cm"
+ margin-top="1cm"
+ margin-bottom="1cm"
+ margin-left="1.5cm"
+ margin-right="1.5cm">
+ <fo:region-body margin-top="4cm" margin-bottom="3cm"/>
+ <fo:region-before extent="3cm"/>
+ <fo:region-after extent="3cm"/>
+ </fo:simple-page-master>
+ </fo:layout-master-set>
+
+ <fo:page-sequence master-reference="simplePM">
+ <!-- header -->
+ <fo:static-content flow-name="xsl-region-before">
+ <fo:block-container width="5cm" height="3cm" position="absolute" background-color="#22CC55">
+ <fo:block text-align="start">
+ Left
+ </fo:block>
+ </fo:block-container>
+ <fo:block-container width="5cm" height="3cm" left="5cm" position="absolute" background-color="#55AA55">
+ <fo:block text-align="center">
+ Center
+ </fo:block>
+ </fo:block-container>
+ <fo:block-container width="5cm" height="3cm" left="10cm" position="absolute" background-color="#FFCCFF">
+ <fo:block text-align="end">
+ Right
+ </fo:block>
+ </fo:block-container>
+
+ </fo:static-content>
+
+ <!-- footer -->
+ <fo:static-content flow-name="xsl-region-after">
+ <fo:block-container width="5cm" height="3cm" position="absolute">
+ <fo:block text-align="start">
+ Left
+ </fo:block>
+ </fo:block-container>
+ <fo:block-container width="5cm" height="3cm" left="5cm" position="absolute">
+ <fo:block text-align="center">
+ Center
+ </fo:block>
+ </fo:block-container>
+ <fo:block-container width="5cm" height="3cm" left="10cm" position="absolute">
+ <fo:block text-align="end">
+ Right
+ </fo:block>
+ </fo:block-container>
+
+ </fo:static-content>
+
+ <fo:flow flow-name="xsl-region-body">
+ <fo:block>
+ There is top-margin for body region.This is bcos margin-top for body is greater than extent of region-before.
+ </fo:block>
+ <fo:block>
+ There is NO bottom-margin for body region. Bcos margin-bottom for body = extent for region-after.
+ </fo:block>
+ <fo:block>
+ </fo:block>
+ <fo:block>
+ The fo:static-content formatting object holds a sequence or a tree of formatting objects that is to be presented in a single region or repeated in like-named regions on one or more pages in the page-sequence. Its common use is for repeating or running headers and footers.
+ </fo:block>
+ <fo:block>
+ This content is repeated, in its entirety, on every page to which it is assigned.
+ </fo:block>
+ <fo:block>
+ This content is repeated, in its entirety, on every page to which it is assigned.
+ </fo:block>
+ <fo:block>
+ This content is repeated, in its entirety, on every page to which it is assigned.
+ </fo:block>
+ <fo:block>
+ This content is repeated, in its entirety, on every page to which it is assigned.
+ </fo:block>
+ <fo:block>
+ This content is repeated, in its entirety, on every page to which it is assigned.
+ </fo:block>
+ <fo:block>
+ This content is repeated, in its entirety, on every page to which it is assigned.
+ </fo:block>
+ <fo:block>
+ This content is repeated, in its entirety, on every page to which it is assigned.
+ </fo:block>
+ <fo:block>
+ This content is repeated, in its entirety, on every page to which it is assigned.
+ </fo:block>
+ <fo:block>
+ This content is repeated, in its entirety, on every page to which it is assigned.
+ </fo:block>
+ <fo:block>
+ This content is repeated, in its entirety, on every page to which it is assigned.
+ </fo:block>
+ <fo:block>
+ This content is repeated, in its entirety, on every page to which it is assigned.
+ </fo:block>
+ <fo:block>
+ This content is repeated, in its entirety, on every page to which it is assigned.
+ </fo:block>
+ <fo:block>
+ This content is repeated, in its entirety, on every page to which it is assigned.
+ </fo:block>
+ <fo:block>
+ This content is repeated, in its entirety, on every page to which it is assigned.
+ </fo:block>
+ <fo:block>
+ This content is repeated, in its entirety, on every page to which it is assigned.
+ </fo:block>
+ <fo:block>
+ This content is repeated, in its entirety, on every page to which it is assigned.
+ </fo:block>
+ <fo:block>
+ This content is repeated, in its entirety, on every page to which it is assigned.
+ </fo:block>
+ <fo:block>
+The fo:static-content formatting object does not generate any areas. The fo:static-content formatting object returns the sequence of areas created by concatenating the sequences of areas returned by each of the children of the fo:static-content. The order of concatenation is the same order as the children are ordered under the fo:static-content.
+ </fo:block>
+ <fo:block>
+The fo:static-content formatting object does not generate any areas. The fo:static-content formatting object returns the sequence of areas created by concatenating the sequences of areas returned by each of the children of the fo:static-content. The order of concatenation is the same order as the children are ordered under the fo:static-content.
+ </fo:block>
+ <fo:block>
+The fo:static-content formatting object does not generate any areas. The fo:static-content formatting object returns the sequence of areas created by concatenating the sequences of areas returned by each of the children of the fo:static-content. The order of concatenation is the same order as the children are ordered under the fo:static-content.
+ </fo:block>
+ <fo:block>
+The fo:static-content formatting object does not generate any areas. The fo:static-content formatting object returns the sequence of areas created by concatenating the sequences of areas returned by each of the children of the fo:static-content. The order of concatenation is the same order as the children are ordered under the fo:static-content.
+ </fo:block>
+
+ </fo:flow>
+
+ </fo:page-sequence>
+</fo:root>