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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <?xml version="1.0"?>
  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" language="en" country="GB">
  18. <fo:layout-master-set>
  19. <fo:simple-page-master master-name="page"
  20. page-height="240pt" page-width="320pt" margin="10pt" margin-bottom="8pt">
  21. <fo:region-body margin-bottom="20pt"/>
  22. <fo:region-after extent="10pt"/>
  23. </fo:simple-page-master>
  24. </fo:layout-master-set>
  25. <fo:page-sequence master-reference="page" language="en" country="GB" role="Art">
  26. <fo:static-content flow-name="xsl-region-after" role="artifact" font-size="8pt">
  27. <fo:block text-align="center"><fo:page-number/></fo:block>
  28. </fo:static-content>
  29. <fo:flow flow-name="xsl-region-body" role="NonStruct" hyphenate="true"
  30. font-family="sans-serif">
  31. <fo:block role="H1" font-weight="bold" font-size="150%"
  32. space-before.minimum="1.5em"
  33. space-before.optimum="2em"
  34. space-before.maximum="3em"
  35. space-before.precedence="1000"
  36. space-after.minimum="0.2em"
  37. space-after.optimum="0.2em"
  38. space-after.maximum="0.5em"
  39. space-after.precedence="1000">Title 1: To Start With</fo:block>
  40. <fo:block role="H2" font-weight="bold" font-size="120%"
  41. space-before.minimum="1.2em"
  42. space-before.optimum="1.5em"
  43. space-before.maximum="2em"
  44. space-before.precedence="900"
  45. space-after.minimum="0.2em"
  46. space-after.optimum="0.2em"
  47. space-after.maximum="0.5em"
  48. space-after.precedence="900">Title 2: A Sub-Title</fo:block>
  49. <fo:block text-align="justify">Apache FOP (Formatting Objects Processor) is a print formatter
  50. driven by XSL formatting objects (XSL-FO) and an output independent formatter. It is a Java
  51. application that reads a formatting object (FO) tree and renders the resulting pages to a
  52. specified output.</fo:block>
  53. <fo:block role="H2" font-weight="bold" font-size="120%"
  54. space-before.minimum="1.2em"
  55. space-before.optimum="1.5em"
  56. space-before.maximum="2em"
  57. space-before.precedence="900"
  58. space-after.minimum="0.2em"
  59. space-after.optimum="0.2em"
  60. space-after.maximum="0.5em"
  61. space-after.precedence="900">Title 2: Another Sub-Title</fo:block>
  62. <fo:block text-align="justify">Apache FOP (Formatting Objects Processor) is a print formatter
  63. driven by XSL formatting objects (XSL-FO) and an output independent formatter. It is a Java
  64. application that reads a formatting object (FO) tree and renders the resulting pages to a
  65. specified output.</fo:block>
  66. <fo:block role="H1" font-weight="bold" font-size="150%"
  67. space-before.minimum="1.5em"
  68. space-before.optimum="2em"
  69. space-before.maximum="3em"
  70. space-before.precedence="1000"
  71. space-after.minimum="0.2em"
  72. space-after.optimum="0.2em"
  73. space-after.maximum="0.5em"
  74. space-after.precedence="1000">Title 1: Second Title</fo:block>
  75. <fo:block role="H2" font-weight="bold" font-size="120%"
  76. space-before.minimum="1.2em"
  77. space-before.optimum="1.5em"
  78. space-before.maximum="2em"
  79. space-before.precedence="900"
  80. space-after.minimum="0.2em"
  81. space-after.optimum="0.2em"
  82. space-after.maximum="0.5em"
  83. space-after.precedence="900">Title 2: A Sample Table</fo:block>
  84. <fo:block>See data below:</fo:block>
  85. <fo:table table-layout="fixed" width="70%" start-indent="15%" border="0.5pt solid black">
  86. <fo:table-header start-indent="0" font-weight="bold">
  87. <fo:table-row>
  88. <fo:table-cell border="0.5pt solid black" padding="2pt">
  89. <fo:block>Header 1</fo:block>
  90. </fo:table-cell>
  91. <fo:table-cell border="0.5pt solid black" padding="2pt">
  92. <fo:block>Header 2</fo:block>
  93. </fo:table-cell>
  94. </fo:table-row>
  95. </fo:table-header>
  96. <fo:table-footer start-indent="0" font-weight="bold">
  97. <fo:table-row>
  98. <fo:table-cell border="0.5pt solid black" padding="2pt">
  99. <fo:block>Footer 1</fo:block>
  100. </fo:table-cell>
  101. <fo:table-cell border="0.5pt solid black" padding="2pt">
  102. <fo:block>Footer 2</fo:block>
  103. </fo:table-cell>
  104. </fo:table-row>
  105. </fo:table-footer>
  106. <fo:table-body start-indent="0">
  107. <fo:table-row>
  108. <fo:table-cell border="0.5pt solid black" padding="2pt">
  109. <fo:block>Cell 1.1</fo:block>
  110. </fo:table-cell>
  111. <fo:table-cell border="0.5pt solid black" padding="2pt">
  112. <fo:block>Cell 1.2</fo:block>
  113. </fo:table-cell>
  114. </fo:table-row>
  115. <fo:table-row>
  116. <fo:table-cell border="0.5pt solid black" padding="2pt">
  117. <fo:block>Cell 2.1</fo:block>
  118. </fo:table-cell>
  119. <fo:table-cell border="0.5pt solid black" padding="2pt">
  120. <fo:block>Cell 2.2</fo:block>
  121. </fo:table-cell>
  122. </fo:table-row>
  123. </fo:table-body>
  124. </fo:table>
  125. <fo:block text-align="justify" space-before="0.5em">That’s all folks.</fo:block>
  126. </fo:flow>
  127. </fo:page-sequence>
  128. </fo:root>