You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

complete.fo 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. <?xml version="1.0" standalone="no"?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. -->
  16. <!-- $Id$ -->
  17. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
  18. xmlns:fox="http://xmlgraphics.apache.org/fop/extensions">
  19. <fo:layout-master-set>
  20. <fo:simple-page-master master-name="page"
  21. page-height="220pt" page-width="320pt" margin="10pt">
  22. <fo:region-body column-count="2" margin-top="15pt"/>
  23. <fo:region-before extent="12pt"/>
  24. </fo:simple-page-master>
  25. </fo:layout-master-set>
  26. <fo:page-sequence master-reference="page" language="en" country="GB">
  27. <fo:static-content flow-name="xsl-region-before">
  28. <fo:block font-size="8pt" text-align-last="justify">This is the page header<fo:leader/>Page
  29. <fo:page-number/></fo:block>
  30. </fo:static-content>
  31. <fo:static-content flow-name="xsl-footnote-separator">
  32. <fo:block><fo:leader leader-length="100pt" leader-pattern="rule"/></fo:block>
  33. </fo:static-content>
  34. <fo:flow flow-name="xsl-region-body" hyphenate="true" text-align="justify">
  35. <fo:block>(There’s another page sequence <fo:wrapper color="blue"><fo:basic-link
  36. internal-destination="second">below</fo:basic-link></fo:wrapper>.)</fo:block>
  37. <fo:block>Apache FOP (Formatting Objects Processor) is a print formatter driven by XSL
  38. formatting objects (XSL-FO) and an output independent formatter<fo:footnote><fo:inline
  39. baseline-shift="super" font-size="70%">1</fo:inline><fo:footnote-body><fo:block>See the
  40. <fo:wrapper color="blue"><fo:basic-link
  41. external-destination="http://xmlgraphics.apache.org/fop/">FOP
  42. website</fo:basic-link></fo:wrapper> for more
  43. information</fo:block></fo:footnote-body></fo:footnote>. FOP has a nice logo:
  44. <fo:external-graphic src="../resources/images/fop-logo-color-24bit.png"
  45. inline-progression-dimension.maximum="100%" content-width="scale-to-fit"
  46. fox:alt-text="FOP Logo"/></fo:block>
  47. <fo:table space-before="10pt" space-after="10pt" width="100%" table-layout="fixed">
  48. <fo:table-header>
  49. <fo:table-row>
  50. <fo:table-cell border="2pt solid black" padding="2pt 2pt 0">
  51. <fo:block>Header 1.1</fo:block>
  52. </fo:table-cell>
  53. <fo:table-cell border="2pt solid black" padding="2pt 2pt 0">
  54. <fo:block>Header 1.2</fo:block>
  55. </fo:table-cell>
  56. </fo:table-row>
  57. </fo:table-header>
  58. <fo:table-body>
  59. <fo:table-row>
  60. <fo:table-cell border="1pt solid black" padding="2pt 2pt 0">
  61. <fo:block>Cell 1.1</fo:block>
  62. </fo:table-cell>
  63. <fo:table-cell border="1pt solid black" padding="2pt 2pt 0">
  64. <fo:block>Cell 1.2</fo:block>
  65. </fo:table-cell>
  66. </fo:table-row>
  67. <fo:table-row>
  68. <fo:table-cell border="1pt solid black" padding="2pt 2pt 0">
  69. <fo:block>Cell 2.1</fo:block>
  70. </fo:table-cell>
  71. <fo:table-cell border="1pt solid black" padding="2pt 2pt 0">
  72. <fo:block>Cell 2.2</fo:block>
  73. </fo:table-cell>
  74. </fo:table-row>
  75. </fo:table-body>
  76. </fo:table>
  77. <fo:block>Apache FOP (Formatting Objects Processor) is a print formatter driven by XSL
  78. formatting objects (XSL-FO) and an output independent formatter. It is a Java application
  79. that reads a formatting object (FO) tree and renders the resulting pages to a specified
  80. output.</fo:block>
  81. <fo:block span="all" border-top="1pt solid black" border-bottom="1pt solid black"
  82. padding-before="2pt" padding-after="2pt">This fo:block element spans all the columns of the
  83. document. This is intended to test the abilities of the text-to-speech program.</fo:block>
  84. <fo:block>And now we are back to normal content flowing in two columns. Let’s start a numbered
  85. list:</fo:block>
  86. <fo:list-block provisional-distance-between-starts="15pt" provisional-label-separation="0mm"
  87. keep-with-previous="auto">
  88. <fo:list-item keep-with-previous="always">
  89. <fo:list-item-label end-indent="label-end()">
  90. <fo:block>1.</fo:block>
  91. </fo:list-item-label>
  92. <fo:list-item-body start-indent="body-start()">
  93. <fo:block>
  94. <fo:block>Line 1 of item 1</fo:block>
  95. <fo:block>Line 2 of item 1</fo:block>
  96. <fo:block>Line 3 of item 1</fo:block>
  97. </fo:block>
  98. </fo:list-item-body>
  99. </fo:list-item>
  100. <fo:list-item keep-with-previous="always">
  101. <fo:list-item-label end-indent="label-end()">
  102. <fo:block>2.</fo:block>
  103. </fo:list-item-label>
  104. <fo:list-item-body start-indent="body-start()">
  105. <fo:block>
  106. <fo:block>Line 1 of item 2</fo:block>
  107. <fo:block>Line 2 of item 2</fo:block>
  108. <fo:block>Line 3 of item 2</fo:block>
  109. </fo:block>
  110. </fo:list-item-body>
  111. </fo:list-item>
  112. </fo:list-block>
  113. <fo:block>And now we are going to see how a second page sequence is handled.</fo:block>
  114. </fo:flow>
  115. </fo:page-sequence>
  116. <fo:page-sequence master-reference="page" language="en" country="GB">
  117. <fo:static-content flow-name="xsl-region-before">
  118. <fo:block font-size="8pt" text-align-last="justify">This is the page header<fo:leader/>Page
  119. <fo:page-number/></fo:block>
  120. </fo:static-content>
  121. <fo:static-content flow-name="xsl-footnote-separator">
  122. <fo:block><fo:leader leader-length="100pt" leader-pattern="rule"/></fo:block>
  123. </fo:static-content>
  124. <fo:flow flow-name="xsl-region-body" hyphenate="true" text-align="justify">
  125. <fo:block id="second">Apache FOP (Formatting Objects Processor) is a print formatter driven by
  126. XSL formatting objects (XSL-FO) and an output independent formatter<fo:footnote><fo:inline
  127. baseline-shift="super" font-size="70%">1</fo:inline><fo:footnote-body><fo:block>See the
  128. <fo:wrapper color="blue"><fo:basic-link
  129. external-destination="http://xmlgraphics.apache.org/fop/">FOP
  130. website</fo:basic-link></fo:wrapper> for more
  131. information</fo:block></fo:footnote-body></fo:footnote>. It is a Java application that
  132. reads a formatting object (FO) tree and renders the resulting pages to a specified
  133. output.</fo:block>
  134. <fo:table space-before="10pt" space-after="10pt" width="100%" table-layout="fixed">
  135. <fo:table-header>
  136. <fo:table-row>
  137. <fo:table-cell border="2pt solid black" padding="2pt 2pt 0">
  138. <fo:block>Header 1.1</fo:block>
  139. </fo:table-cell>
  140. <fo:table-cell border="2pt solid black" padding="2pt 2pt 0">
  141. <fo:block>Header 1.2</fo:block>
  142. </fo:table-cell>
  143. </fo:table-row>
  144. </fo:table-header>
  145. <fo:table-body>
  146. <fo:table-row>
  147. <fo:table-cell border="1pt solid black" padding="2pt 2pt 0">
  148. <fo:block>Cell 1.1</fo:block>
  149. </fo:table-cell>
  150. <fo:table-cell border="1pt solid black" padding="2pt 2pt 0">
  151. <fo:block>Cell 1.2</fo:block>
  152. </fo:table-cell>
  153. </fo:table-row>
  154. <fo:table-row>
  155. <fo:table-cell border="1pt solid black" padding="2pt 2pt 0">
  156. <fo:block>Cell 2.1</fo:block>
  157. </fo:table-cell>
  158. <fo:table-cell border="1pt solid black" padding="2pt 2pt 0">
  159. <fo:block>Cell 2.2</fo:block>
  160. </fo:table-cell>
  161. </fo:table-row>
  162. </fo:table-body>
  163. </fo:table>
  164. <fo:block language="fr" country="FR">Apache FOP (Formatting Objects Processor) est une
  165. application de mise en page de documents respectant le standard XSL-FO. À partir d’un
  166. document au format XSL-FO, cette application écrite en Java effectue une mise en page et
  167. renvoie un document prêt pour impression.</fo:block>
  168. <fo:block span="all" border-top="1pt solid black" border-bottom="1pt solid black"
  169. padding-before="2pt" padding-after="2pt">This fo:block element spans all the columns of the
  170. document. This is intended to test the abilities of the text-to-speech program.</fo:block>
  171. <fo:block>And now we are back to normal content flowing in two columns. Let’s start a numbered
  172. list:</fo:block>
  173. <fo:list-block provisional-distance-between-starts="15pt" provisional-label-separation="0mm"
  174. keep-with-previous="auto">
  175. <fo:list-item keep-with-previous="always">
  176. <fo:list-item-label end-indent="label-end()">
  177. <fo:block>1.</fo:block>
  178. </fo:list-item-label>
  179. <fo:list-item-body start-indent="body-start()">
  180. <fo:block>
  181. <fo:block>Line 1 of item 1</fo:block>
  182. <fo:block>Line 2 of item 1</fo:block>
  183. <fo:block>Line 3 of item 1</fo:block>
  184. </fo:block>
  185. </fo:list-item-body>
  186. </fo:list-item>
  187. <fo:list-item keep-with-previous="always">
  188. <fo:list-item-label end-indent="label-end()">
  189. <fo:block>2.</fo:block>
  190. </fo:list-item-label>
  191. <fo:list-item-body start-indent="body-start()">
  192. <fo:block>
  193. <fo:block>Line 1 of item 2</fo:block>
  194. <fo:block>Line 2 of item 2</fo:block>
  195. <fo:block>Line 3 of item 2</fo:block>
  196. </fo:block>
  197. </fo:list-item-body>
  198. </fo:list-item>
  199. </fo:list-block>
  200. <fo:block>The end of the document has now been reached.</fo:block>
  201. </fo:flow>
  202. </fo:page-sequence>
  203. </fo:root>