aboutsummaryrefslogtreecommitdiffstats
path: root/fop/test/pdf/1.5/test.fo
blob: 23e8405f3b581a0e7a2bc6d816dc9e791c23edac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
<?xml version="1.0" standalone="no"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<!-- $Id$ -->
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
  xmlns:fox="http://xmlgraphics.apache.org/fop/extensions" language="en" country="GB">
  <fo:layout-master-set>
    <fo:simple-page-master master-name="page"
      page-height="220pt" page-width="320pt" margin="10pt">
      <fo:region-body column-count="2" margin-top="15pt"/>
      <fo:region-before extent="12pt"/>
    </fo:simple-page-master>
  </fo:layout-master-set>
  <fo:page-sequence master-reference="page">
    <fo:static-content flow-name="xsl-region-before">
      <fo:block font-size="8pt" text-align-last="justify">This is the page header<fo:leader/>Page 
        <fo:page-number/></fo:block>
    </fo:static-content>
    <fo:static-content flow-name="xsl-footnote-separator">
      <fo:block><fo:leader leader-length="100pt" leader-pattern="rule"/></fo:block>
    </fo:static-content>
    <fo:flow flow-name="xsl-region-body" hyphenate="true" text-align="justify">
      <fo:block>(There’s another page sequence <fo:wrapper color="blue"><fo:basic-link 
            internal-destination="second">below</fo:basic-link></fo:wrapper>.)</fo:block>
      <fo:block font-family="sans-serif" font-weight="bold" space-before="1em" space-after="0.2em" 
        role="H1"><fo:block>About Apache FOP</fo:block></fo:block>
      <fo:block>It is a print formatter driven by XSL formatting objects (XSL-FO) and an output 
        independent formatter<fo:footnote><fo:inline baseline-shift="super" 
            font-size="70%">1</fo:inline><fo:footnote-body><fo:block>See the <fo:wrapper 
                color="blue"><fo:basic-link 
                  external-destination="http://xmlgraphics.apache.org/fop/">FOP 
                  website</fo:basic-link></fo:wrapper> for more 
              information</fo:block></fo:footnote-body></fo:footnote>. FOP has a nice logo: 
        <fo:external-graphic src="../../resources/images/fop-logo-color-24bit.png" 
          inline-progression-dimension.maximum="100%" content-width="scale-to-fit"
          fox:alt-text="FOP Logo"/></fo:block>
      <fo:table space-before="10pt" space-after="10pt" width="100%" table-layout="fixed">
        <fo:table-header>
          <fo:table-row>
            <fo:table-cell border="2pt solid black" padding="2pt 2pt 0">
              <fo:block>Header 1.1</fo:block>
            </fo:table-cell>
            <fo:table-cell border="2pt solid black" padding="2pt 2pt 0">
              <fo:block>Header 1.2</fo:block>
            </fo:table-cell>
          </fo:table-row>
        </fo:table-header>
        <fo:table-body>
          <fo:table-row>
            <fo:table-cell border="1pt solid black" padding="2pt 2pt 0">
              <fo:block>Cell 1.1</fo:block>
            </fo:table-cell>
            <fo:table-cell border="1pt solid black" padding="2pt 2pt 0">
              <fo:block>Cell 1.2</fo:block>
            </fo:table-cell>
          </fo:table-row>
          <fo:table-row>
            <fo:table-cell border="1pt solid black" padding="2pt 2pt 0">
              <fo:block>Cell 2.1</fo:block>
            </fo:table-cell>
            <fo:table-cell border="1pt solid black" padding="2pt 2pt 0">
              <fo:block>Cell 2.2</fo:block>
            </fo:table-cell>
          </fo:table-row>
        </fo:table-body>
      </fo:table>
      <fo:block>Apache FOP (Formatting Objects Processor) is a print formatter driven by XSL 
        formatting objects (XSL-FO) and an output independent formatter. It is a Java application 
        that reads a formatting object (FO) tree and renders the resulting pages to a specified 
        output.</fo:block>
      <fo:block span="all" border-top="1pt solid black" border-bottom="1pt solid black" 
        padding-before="2pt" padding-after="2pt">This fo:block element spans all the columns of the 
        document. This is intended to test the abilities of the text-to-speech program.</fo:block>
      <fo:block>And now we are back to normal content flowing in two columns. Let’s start a numbered 
        list:</fo:block>
      <fo:list-block provisional-distance-between-starts="15pt" provisional-label-separation="0mm" 
        keep-with-previous="auto">
        <fo:list-item keep-with-previous="always">
          <fo:list-item-label end-indent="label-end()">
            <fo:block>1.</fo:block>
          </fo:list-item-label>
          <fo:list-item-body start-indent="body-start()">
            <fo:block>
              <fo:block>Line 1 of item 1</fo:block>
              <fo:block>Line 2 of item 1</fo:block>
              <fo:block>Line 3 of item 1</fo:block>
            </fo:block>
          </fo:list-item-body>
        </fo:list-item>
        <fo:list-item keep-with-previous="always">
          <fo:list-item-label end-indent="label-end()">
            <fo:block>2.</fo:block>
          </fo:list-item-label>
          <fo:list-item-body start-indent="body-start()">
            <fo:block>
              <fo:block>Line 1 of item 2</fo:block>
              <fo:block>Line 2 of item 2</fo:block>
              <fo:block>Line 3 of item 2</fo:block>
            </fo:block>
          </fo:list-item-body>
        </fo:list-item>
      </fo:list-block>
      <fo:block>And now we are going to see how a second page sequence is handled.</fo:block>
    </fo:flow>
  </fo:page-sequence>
  <fo:page-sequence master-reference="page">
    <fo:static-content flow-name="xsl-region-before">
      <fo:block font-size="8pt" text-align-last="justify">This is the page header<fo:leader/>Page 
        <fo:page-number/></fo:block>
    </fo:static-content>
    <fo:static-content flow-name="xsl-footnote-separator">
      <fo:block><fo:leader leader-length="100pt" leader-pattern="rule"/></fo:block>
    </fo:static-content>
    <fo:flow flow-name="xsl-region-body" hyphenate="true" text-align="justify">
      <fo:block id="second">Apache FOP (Formatting Objects Processor) is a print formatter driven by 
        XSL formatting objects (XSL-FO) and an output independent formatter<fo:footnote><fo:inline 
            baseline-shift="super" font-size="70%">1</fo:inline><fo:footnote-body><fo:block>See the 
              <fo:wrapper color="blue"><fo:basic-link 
                  external-destination="http://xmlgraphics.apache.org/fop/">FOP 
                  website</fo:basic-link></fo:wrapper> for more 
              information</fo:block></fo:footnote-body></fo:footnote>. It is a Java application that 
        reads a formatting object (FO) tree and renders the resulting pages to a specified 
        output.</fo:block>
      <fo:table space-before="10pt" space-after="10pt" width="100%" table-layout="fixed">
        <fo:table-header>
          <fo:table-row>
            <fo:table-cell border="2pt solid black" padding="2pt 2pt 0">
              <fo:block>Header 1.1</fo:block>
            </fo:table-cell>
            <fo:table-cell border="2pt solid black" padding="2pt 2pt 0">
              <fo:block>Header 1.2</fo:block>
            </fo:table-cell>
          </fo:table-row>
        </fo:table-header>
        <fo:table-body>
          <fo:table-row>
            <fo:table-cell border="1pt solid black" padding="2pt 2pt 0">
              <fo:block>Cell 1.1</fo:block>
            </fo:table-cell>
            <fo:table-cell border="1pt solid black" padding="2pt 2pt 0">
              <fo:block>Cell 1.2</fo:block>
            </fo:table-cell>
          </fo:table-row>
          <fo:table-row>
            <fo:table-cell border="1pt solid black" padding="2pt 2pt 0">
              <fo:block>Cell 2.1</fo:block>
            </fo:table-cell>
            <fo:table-cell border="1pt solid black" padding="2pt 2pt 0">
              <fo:block>Cell 2.2</fo:block>
            </fo:table-cell>
          </fo:table-row>
        </fo:table-body>
      </fo:table>
      <fo:block language="fr" country="FR">Apache FOP (Formatting Objects Processor) est une 
        application de mise en page de documents respectant le standard XSL-FO. À partir d’un 
        document au format XSL-FO, cette application écrite en Java effectue une mise en page et 
        renvoie un document prêt pour impression.</fo:block>
      <fo:block span="all" border-top="1pt solid black" border-bottom="1pt solid black" 
        padding-before="2pt" padding-after="2pt">This fo:block element spans all the columns of the 
        document. This is intended to test the abilities of the text-to-speech program.</fo:block>
      <fo:block>And now we are back to normal content flowing in two columns. Let’s start a numbered 
        list:</fo:block>
      <fo:list-block provisional-distance-between-starts="15pt" provisional-label-separation="0mm" 
        keep-with-previous="auto">
        <fo:list-item keep-with-previous="always">
          <fo:list-item-label end-indent="label-end()">
            <fo:block>1.</fo:block>
          </fo:list-item-label>
          <fo:list-item-body start-indent="body-start()">
            <fo:block>
              <fo:block>Line 1 of item 1</fo:block>
              <fo:block>Line 2 of item 1</fo:block>
              <fo:block>Line 3 of item 1</fo:block>
            </fo:block>
          </fo:list-item-body>
        </fo:list-item>
        <fo:list-item keep-with-previous="always">
          <fo:list-item-label end-indent="label-end()">
            <fo:block>2.</fo:block>
          </fo:list-item-label>
          <fo:list-item-body start-indent="body-start()">
            <fo:block>
              <fo:block>Line 1 of item 2</fo:block>
              <fo:block>Line 2 of item 2</fo:block>
              <fo:block>Line 3 of item 2</fo:block>
            </fo:block>
          </fo:list-item-body>
        </fo:list-item>
      </fo:list-block>
      <fo:block>The end of the document has now been reached.</fo:block>
    </fo:flow>
  </fo:page-sequence>
</fo:root>