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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  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" language="en" country="GB">
  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">
  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 font-family="sans-serif" font-weight="bold" space-before="1em" space-after="0.2em"
  38. role="H1"><fo:block>About Apache FOP</fo:block></fo:block>
  39. <fo:block>It is a print formatter driven by XSL formatting objects (XSL-FO) and an output
  40. independent formatter<fo:footnote><fo:inline baseline-shift="super"
  41. font-size="70%">1</fo:inline><fo:footnote-body><fo:block>See the <fo:wrapper
  42. color="blue"><fo:basic-link
  43. external-destination="http://xmlgraphics.apache.org/fop/">FOP
  44. website</fo:basic-link></fo:wrapper> for more
  45. information</fo:block></fo:footnote-body></fo:footnote>. FOP has a nice logo:
  46. <fo:external-graphic src="../../resources/images/fop-logo-color-24bit.png"
  47. inline-progression-dimension.maximum="100%" content-width="scale-to-fit"
  48. fox:alt-text="FOP Logo"/></fo:block>
  49. <fo:table space-before="10pt" space-after="10pt" width="100%" table-layout="fixed">
  50. <fo:table-header>
  51. <fo:table-row>
  52. <fo:table-cell border="2pt solid black" padding="2pt 2pt 0">
  53. <fo:block>Header 1.1</fo:block>
  54. </fo:table-cell>
  55. <fo:table-cell border="2pt solid black" padding="2pt 2pt 0">
  56. <fo:block>Header 1.2</fo:block>
  57. </fo:table-cell>
  58. </fo:table-row>
  59. </fo:table-header>
  60. <fo:table-body>
  61. <fo:table-row>
  62. <fo:table-cell border="1pt solid black" padding="2pt 2pt 0">
  63. <fo:block>Cell 1.1</fo:block>
  64. </fo:table-cell>
  65. <fo:table-cell border="1pt solid black" padding="2pt 2pt 0">
  66. <fo:block>Cell 1.2</fo:block>
  67. </fo:table-cell>
  68. </fo:table-row>
  69. <fo:table-row>
  70. <fo:table-cell border="1pt solid black" padding="2pt 2pt 0">
  71. <fo:block>Cell 2.1</fo:block>
  72. </fo:table-cell>
  73. <fo:table-cell border="1pt solid black" padding="2pt 2pt 0">
  74. <fo:block>Cell 2.2</fo:block>
  75. </fo:table-cell>
  76. </fo:table-row>
  77. </fo:table-body>
  78. </fo:table>
  79. <fo:block>Apache FOP (Formatting Objects Processor) is a print formatter driven by XSL
  80. formatting objects (XSL-FO) and an output independent formatter. It is a Java application
  81. that reads a formatting object (FO) tree and renders the resulting pages to a specified
  82. output.</fo:block>
  83. <fo:block span="all" border-top="1pt solid black" border-bottom="1pt solid black"
  84. padding-before="2pt" padding-after="2pt">This fo:block element spans all the columns of the
  85. document. This is intended to test the abilities of the text-to-speech program.</fo:block>
  86. <fo:block>And now we are back to normal content flowing in two columns. Let’s start a numbered
  87. list:</fo:block>
  88. <fo:list-block provisional-distance-between-starts="15pt" provisional-label-separation="0mm"
  89. keep-with-previous="auto">
  90. <fo:list-item keep-with-previous="always">
  91. <fo:list-item-label end-indent="label-end()">
  92. <fo:block>1.</fo:block>
  93. </fo:list-item-label>
  94. <fo:list-item-body start-indent="body-start()">
  95. <fo:block>
  96. <fo:block>Line 1 of item 1</fo:block>
  97. <fo:block>Line 2 of item 1</fo:block>
  98. <fo:block>Line 3 of item 1</fo:block>
  99. </fo:block>
  100. </fo:list-item-body>
  101. </fo:list-item>
  102. <fo:list-item keep-with-previous="always">
  103. <fo:list-item-label end-indent="label-end()">
  104. <fo:block>2.</fo:block>
  105. </fo:list-item-label>
  106. <fo:list-item-body start-indent="body-start()">
  107. <fo:block>
  108. <fo:block>Line 1 of item 2</fo:block>
  109. <fo:block>Line 2 of item 2</fo:block>
  110. <fo:block>Line 3 of item 2</fo:block>
  111. </fo:block>
  112. </fo:list-item-body>
  113. </fo:list-item>
  114. </fo:list-block>
  115. <fo:block>And now we are going to see how a second page sequence is handled.</fo:block>
  116. </fo:flow>
  117. </fo:page-sequence>
  118. <fo:page-sequence master-reference="page">
  119. <fo:static-content flow-name="xsl-region-before">
  120. <fo:block font-size="8pt" text-align-last="justify">This is the page header<fo:leader/>Page
  121. <fo:page-number/></fo:block>
  122. </fo:static-content>
  123. <fo:static-content flow-name="xsl-footnote-separator">
  124. <fo:block><fo:leader leader-length="100pt" leader-pattern="rule"/></fo:block>
  125. </fo:static-content>
  126. <fo:flow flow-name="xsl-region-body" hyphenate="true" text-align="justify">
  127. <fo:block id="second">Apache FOP (Formatting Objects Processor) is a print formatter driven by
  128. XSL formatting objects (XSL-FO) and an output independent formatter<fo:footnote><fo:inline
  129. baseline-shift="super" font-size="70%">1</fo:inline><fo:footnote-body><fo:block>See the
  130. <fo:wrapper color="blue"><fo:basic-link
  131. external-destination="http://xmlgraphics.apache.org/fop/">FOP
  132. website</fo:basic-link></fo:wrapper> for more
  133. information</fo:block></fo:footnote-body></fo:footnote>. It is a Java application that
  134. reads a formatting object (FO) tree and renders the resulting pages to a specified
  135. output.</fo:block>
  136. <fo:table space-before="10pt" space-after="10pt" width="100%" table-layout="fixed">
  137. <fo:table-header>
  138. <fo:table-row>
  139. <fo:table-cell border="2pt solid black" padding="2pt 2pt 0">
  140. <fo:block>Header 1.1</fo:block>
  141. </fo:table-cell>
  142. <fo:table-cell border="2pt solid black" padding="2pt 2pt 0">
  143. <fo:block>Header 1.2</fo:block>
  144. </fo:table-cell>
  145. </fo:table-row>
  146. </fo:table-header>
  147. <fo:table-body>
  148. <fo:table-row>
  149. <fo:table-cell border="1pt solid black" padding="2pt 2pt 0">
  150. <fo:block>Cell 1.1</fo:block>
  151. </fo:table-cell>
  152. <fo:table-cell border="1pt solid black" padding="2pt 2pt 0">
  153. <fo:block>Cell 1.2</fo:block>
  154. </fo:table-cell>
  155. </fo:table-row>
  156. <fo:table-row>
  157. <fo:table-cell border="1pt solid black" padding="2pt 2pt 0">
  158. <fo:block>Cell 2.1</fo:block>
  159. </fo:table-cell>
  160. <fo:table-cell border="1pt solid black" padding="2pt 2pt 0">
  161. <fo:block>Cell 2.2</fo:block>
  162. </fo:table-cell>
  163. </fo:table-row>
  164. </fo:table-body>
  165. </fo:table>
  166. <fo:block language="fr" country="FR">Apache FOP (Formatting Objects Processor) est une
  167. application de mise en page de documents respectant le standard XSL-FO. À partir d’un
  168. document au format XSL-FO, cette application écrite en Java effectue une mise en page et
  169. renvoie un document prêt pour impression.</fo:block>
  170. <fo:block span="all" border-top="1pt solid black" border-bottom="1pt solid black"
  171. padding-before="2pt" padding-after="2pt">This fo:block element spans all the columns of the
  172. document. This is intended to test the abilities of the text-to-speech program.</fo:block>
  173. <fo:block>And now we are back to normal content flowing in two columns. Let’s start a numbered
  174. list:</fo:block>
  175. <fo:list-block provisional-distance-between-starts="15pt" provisional-label-separation="0mm"
  176. keep-with-previous="auto">
  177. <fo:list-item keep-with-previous="always">
  178. <fo:list-item-label end-indent="label-end()">
  179. <fo:block>1.</fo:block>
  180. </fo:list-item-label>
  181. <fo:list-item-body start-indent="body-start()">
  182. <fo:block>
  183. <fo:block>Line 1 of item 1</fo:block>
  184. <fo:block>Line 2 of item 1</fo:block>
  185. <fo:block>Line 3 of item 1</fo:block>
  186. </fo:block>
  187. </fo:list-item-body>
  188. </fo:list-item>
  189. <fo:list-item keep-with-previous="always">
  190. <fo:list-item-label end-indent="label-end()">
  191. <fo:block>2.</fo:block>
  192. </fo:list-item-label>
  193. <fo:list-item-body start-indent="body-start()">
  194. <fo:block>
  195. <fo:block>Line 1 of item 2</fo:block>
  196. <fo:block>Line 2 of item 2</fo:block>
  197. <fo:block>Line 3 of item 2</fo:block>
  198. </fo:block>
  199. </fo:list-item-body>
  200. </fo:list-item>
  201. </fo:list-block>
  202. <fo:block>The end of the document has now been reached.</fo:block>
  203. </fo:flow>
  204. </fo:page-sequence>
  205. </fo:root>