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.

implicit_columns_column-number.fo 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  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. <fo:layout-master-set>
  19. <fo:simple-page-master master-name="page" page-height="29.7cm" page-width="21cm" margin="10pt">
  20. <fo:region-body/>
  21. </fo:simple-page-master>
  22. </fo:layout-master-set>
  23. <fo:page-sequence master-reference="page">
  24. <fo:flow flow-name="xsl-region-body">
  25. <fo:block space-after="10pt">Checking that the number of columns is correctly computed
  26. for tables without explicit fo:table-column.</fo:block>
  27. <fo:block space-before="10pt" space-after="2pt">Number of columns determined by the header’s
  28. first row.</fo:block>
  29. <fo:table table-layout="fixed" border-collapse="separate" width="200pt">
  30. <fo:table-header>
  31. <fo:table-cell id="h1_1.1" border="1pt solid black"><fo:block>Header 1.1</fo:block></fo:table-cell>
  32. <fo:table-cell id="h1_1.2" border="1pt solid black"><fo:block>Header 1.2</fo:block></fo:table-cell>
  33. <fo:table-cell id="h1_2.1" starts-row="true"
  34. border="1pt solid black"><fo:block>Header 2.1</fo:block></fo:table-cell>
  35. </fo:table-header>
  36. <fo:table-footer>
  37. <fo:table-cell id="f1_1.1" border="1pt solid black"><fo:block>Footer 1.1</fo:block></fo:table-cell>
  38. </fo:table-footer>
  39. <fo:table-body>
  40. <fo:table-cell id="b1_1.1" border="1pt solid black"><fo:block>Cell 1.1</fo:block></fo:table-cell>
  41. <fo:table-cell id="b1_2.1" starts-row="true"
  42. border="1pt solid black"><fo:block>Cell 2.1</fo:block></fo:table-cell>
  43. </fo:table-body>
  44. </fo:table>
  45. <fo:block space-before="10pt" space-after="2pt">Number of columns determined by the header’s
  46. second row.</fo:block>
  47. <fo:table table-layout="fixed" border-collapse="separate" width="200pt">
  48. <fo:table-header>
  49. <fo:table-row>
  50. <fo:table-cell id="h2_1.1" border="1pt solid black"><fo:block>Header 1.1</fo:block></fo:table-cell>
  51. </fo:table-row>
  52. <fo:table-row>
  53. <fo:table-cell id="h2_2.1" border="1pt solid black"><fo:block>Header 2.1</fo:block></fo:table-cell>
  54. <fo:table-cell id="h2_2.2" border="1pt solid black"><fo:block>Header 2.2</fo:block></fo:table-cell>
  55. </fo:table-row>
  56. </fo:table-header>
  57. <fo:table-footer>
  58. <fo:table-row>
  59. <fo:table-cell id="f2_1.1" border="1pt solid black"><fo:block>Footer 1.1</fo:block></fo:table-cell>
  60. </fo:table-row>
  61. </fo:table-footer>
  62. <fo:table-body>
  63. <fo:table-row>
  64. <fo:table-cell id="b2_1.1" border="1pt solid black"><fo:block>Cell 1.1</fo:block></fo:table-cell>
  65. </fo:table-row>
  66. <fo:table-row>
  67. <fo:table-cell id="b2_2.1" border="1pt solid black"><fo:block>Cell 2.1</fo:block></fo:table-cell>
  68. </fo:table-row>
  69. </fo:table-body>
  70. </fo:table>
  71. <fo:block space-before="10pt" space-after="2pt">Number of columns determined by the footer’s
  72. first row.</fo:block>
  73. <fo:table table-layout="fixed" border-collapse="separate" width="200pt">
  74. <fo:table-header>
  75. <fo:table-row>
  76. <fo:table-cell id="h3_1.1" border="1pt solid black"><fo:block>Header 1.1</fo:block></fo:table-cell>
  77. </fo:table-row>
  78. <fo:table-row>
  79. <fo:table-cell id="h3_2.1" border="1pt solid black"><fo:block>Header 2.1</fo:block></fo:table-cell>
  80. </fo:table-row>
  81. </fo:table-header>
  82. <fo:table-footer>
  83. <fo:table-row>
  84. <fo:table-cell id="f3_1.1" border="1pt solid black"><fo:block>Footer 1.1</fo:block></fo:table-cell>
  85. <fo:table-cell id="f3_1.2" border="1pt solid black"><fo:block>Footer 1.2</fo:block></fo:table-cell>
  86. </fo:table-row>
  87. <fo:table-row>
  88. <fo:table-cell id="f3_2.1" border="1pt solid black"><fo:block>Footer 2.1</fo:block></fo:table-cell>
  89. </fo:table-row>
  90. </fo:table-footer>
  91. <fo:table-body>
  92. <fo:table-row>
  93. <fo:table-cell id="b3_1.1" border="1pt solid black"><fo:block>Cell 1.1</fo:block></fo:table-cell>
  94. </fo:table-row>
  95. <fo:table-row>
  96. <fo:table-cell id="b3_2.1" border="1pt solid black"><fo:block>Cell 2.1</fo:block></fo:table-cell>
  97. </fo:table-row>
  98. </fo:table-body>
  99. </fo:table>
  100. <fo:block space-before="10pt" space-after="2pt">Number of columns determined by the footer’s
  101. second row.</fo:block>
  102. <fo:table table-layout="fixed" border-collapse="separate" width="200pt">
  103. <fo:table-header>
  104. <fo:table-cell id="h4_1.1" border="1pt solid black"><fo:block>Header 1.1</fo:block></fo:table-cell>
  105. </fo:table-header>
  106. <fo:table-footer>
  107. <fo:table-cell id="f4_1.1" border="1pt solid black"><fo:block>Footer 1.1</fo:block></fo:table-cell>
  108. <fo:table-cell id="f4_2.2" starts-row="true" column-number="2"
  109. border="1pt solid black"><fo:block>Footer 2.2</fo:block></fo:table-cell>
  110. </fo:table-footer>
  111. <fo:table-body>
  112. <fo:table-cell id="b4_1.1" border="1pt solid black"><fo:block>Cell 1.1</fo:block></fo:table-cell>
  113. <fo:table-cell id="b4_2.1" starts-row="true"
  114. border="1pt solid black"><fo:block>Cell 2.1</fo:block></fo:table-cell>
  115. </fo:table-body>
  116. </fo:table>
  117. <fo:block space-before="10pt" space-after="2pt">Number of columns determined by the body’s
  118. first row.</fo:block>
  119. <fo:table table-layout="fixed" border-collapse="separate" width="300pt">
  120. <fo:table-header>
  121. <fo:table-row>
  122. <fo:table-cell id="h5_1.1" border="1pt solid black"><fo:block>Header 1.1</fo:block></fo:table-cell>
  123. <fo:table-cell id="h5_1.2" border="1pt solid black"><fo:block>Header 1.2</fo:block></fo:table-cell>
  124. </fo:table-row>
  125. <fo:table-row>
  126. <fo:table-cell id="h5_2.1" border="1pt solid black"><fo:block>Header 2.1</fo:block></fo:table-cell>
  127. <fo:table-cell id="h5_2.2" border="1pt solid black"><fo:block>Header 2.2</fo:block></fo:table-cell>
  128. </fo:table-row>
  129. </fo:table-header>
  130. <fo:table-footer>
  131. <fo:table-row>
  132. <fo:table-cell id="f5_1.1" border="1pt solid black"><fo:block>Footer 1.1</fo:block></fo:table-cell>
  133. <fo:table-cell id="f5_1.2" border="1pt solid black"><fo:block>Footer 1.2</fo:block></fo:table-cell>
  134. </fo:table-row>
  135. <fo:table-row>
  136. <fo:table-cell id="f5_2.1" border="1pt solid black"><fo:block>Footer 2.1</fo:block></fo:table-cell>
  137. </fo:table-row>
  138. </fo:table-footer>
  139. <fo:table-body>
  140. <fo:table-row>
  141. <fo:table-cell id="b5_1.1" border="1pt solid black"><fo:block>Cell 1.1</fo:block></fo:table-cell>
  142. <fo:table-cell id="b5_1.2" border="1pt solid black"><fo:block>Cell 1.2</fo:block></fo:table-cell>
  143. <fo:table-cell id="b5_1.3" border="1pt solid black"><fo:block>Cell 1.3</fo:block></fo:table-cell>
  144. </fo:table-row>
  145. <fo:table-row>
  146. <fo:table-cell id="b5_2.1" border="1pt solid black"><fo:block>Cell 2.1</fo:block></fo:table-cell>
  147. <fo:table-cell id="b5_2.2" border="1pt solid black"><fo:block>Cell 2.2</fo:block></fo:table-cell>
  148. </fo:table-row>
  149. </fo:table-body>
  150. </fo:table>
  151. <fo:block space-before="10pt" space-after="2pt">Number of columns determined by the body’s
  152. not first row.</fo:block>
  153. <fo:table table-layout="fixed" border-collapse="separate" width="300pt">
  154. <fo:table-header>
  155. <fo:table-cell id="h6_1.1" border="1pt solid black"><fo:block>Header 1.1</fo:block></fo:table-cell>
  156. <fo:table-cell id="h6_1.2" border="1pt solid black"><fo:block>Header 1.2</fo:block></fo:table-cell>
  157. <fo:table-cell id="h6_2.1" starts-row="true"
  158. border="1pt solid black"><fo:block>Header 2.1</fo:block></fo:table-cell>
  159. <fo:table-cell id="h6_2.2" border="1pt solid black"><fo:block>Header 2.2</fo:block></fo:table-cell>
  160. </fo:table-header>
  161. <fo:table-footer>
  162. <fo:table-cell id="f6_1.1" border="1pt solid black"><fo:block>Footer 1.1</fo:block></fo:table-cell>
  163. <fo:table-cell id="f6_1.2" border="1pt solid black"><fo:block>Footer 1.2</fo:block></fo:table-cell>
  164. <fo:table-cell id="f6_2.1" starts-row="true"
  165. border="1pt solid black"><fo:block>Footer 2.1</fo:block></fo:table-cell>
  166. </fo:table-footer>
  167. <fo:table-body>
  168. <fo:table-cell id="b6_1.1" border="1pt solid black"><fo:block>Cell 1.1</fo:block></fo:table-cell>
  169. <fo:table-cell id="b6_1.2" border="1pt solid black"><fo:block>Cell 1.2</fo:block></fo:table-cell>
  170. <fo:table-cell id="b6_2.1" starts-row="true"
  171. border="1pt solid black"><fo:block>Cell 2.1</fo:block></fo:table-cell>
  172. <fo:table-cell id="b6_2.2" border="1pt solid black"><fo:block>Cell 2.2</fo:block></fo:table-cell>
  173. <fo:table-cell id="b6_3.1" starts-row="true" column-number="3"
  174. border="1pt solid black"><fo:block>Cell 3.1</fo:block></fo:table-cell>
  175. <fo:table-cell id="b6_3.2" border="1pt solid black"><fo:block>Cell 3.2</fo:block></fo:table-cell>
  176. </fo:table-body>
  177. </fo:table>
  178. <fo:block space-before="10pt" space-after="2pt">Number of columns determined by the second
  179. body.</fo:block>
  180. <fo:table table-layout="fixed" border-collapse="separate" width="300pt">
  181. <fo:table-header>
  182. <fo:table-row>
  183. <fo:table-cell id="h7_1.1" border="1pt solid black"><fo:block>Header 1.1</fo:block></fo:table-cell>
  184. <fo:table-cell id="h7_1.2" border="1pt solid black"><fo:block>Header 1.2</fo:block></fo:table-cell>
  185. </fo:table-row>
  186. <fo:table-row>
  187. <fo:table-cell id="h7_2.2" column-number="2"
  188. border="1pt solid black"><fo:block>Header 2.2</fo:block></fo:table-cell>
  189. </fo:table-row>
  190. </fo:table-header>
  191. <fo:table-footer>
  192. <fo:table-row>
  193. <fo:table-cell id="f7_1.1" border="1pt solid black"><fo:block>Footer 1.1</fo:block></fo:table-cell>
  194. </fo:table-row>
  195. <fo:table-row>
  196. <fo:table-cell id="f7_2.1" border="1pt solid black"><fo:block>Footer 2.1</fo:block></fo:table-cell>
  197. <fo:table-cell id="f7_2.2" border="1pt solid black"><fo:block>Footer 2.2</fo:block></fo:table-cell>
  198. </fo:table-row>
  199. </fo:table-footer>
  200. <fo:table-body>
  201. <fo:table-cell id="b71_1.1" border="1pt solid black"><fo:block>Cell 1.1</fo:block></fo:table-cell>
  202. <fo:table-cell id="b71_1.2" border="1pt solid black"><fo:block>Cell 1.2</fo:block></fo:table-cell>
  203. <fo:table-cell id="b71_2.1" starts-row="true"
  204. border="1pt solid black"><fo:block>Cell 2.1</fo:block></fo:table-cell>
  205. <fo:table-cell id="b71_2.2" border="1pt solid black"><fo:block>Cell 2.2</fo:block></fo:table-cell>
  206. <fo:table-cell id="b71_3.1" starts-row="true"
  207. border="1pt solid black"><fo:block>Cell 3.1</fo:block></fo:table-cell>
  208. <fo:table-cell id="b71_3.2" border="1pt solid black"><fo:block>Cell 3.2</fo:block></fo:table-cell>
  209. </fo:table-body>
  210. <fo:table-body>
  211. <fo:table-row>
  212. <fo:table-cell id="b72_1.1" border="1pt solid blue"><fo:block>Cell 1.1</fo:block></fo:table-cell>
  213. <fo:table-cell id="b72_1.2" border="1pt solid blue"><fo:block>Cell 1.2</fo:block></fo:table-cell>
  214. </fo:table-row>
  215. <fo:table-row>
  216. <fo:table-cell id="b72_2.1" border="1pt solid blue"><fo:block>Cell 2.1</fo:block></fo:table-cell>
  217. <fo:table-cell id="b72_2.2" border="1pt solid blue"><fo:block>Cell 2.2</fo:block></fo:table-cell>
  218. </fo:table-row>
  219. <fo:table-row>
  220. <fo:table-cell id="b72_3.3" column-number="3"
  221. border="1pt solid blue"><fo:block>Cell 3.3</fo:block></fo:table-cell>
  222. <fo:table-cell id="b72_3.1" column-number="1"
  223. border="1pt solid blue"><fo:block>Cell 3.1</fo:block></fo:table-cell>
  224. <fo:table-cell id="b72_3.2" border="1pt solid blue"><fo:block>Cell 3.2</fo:block></fo:table-cell>
  225. </fo:table-row>
  226. </fo:table-body>
  227. </fo:table>
  228. </fo:flow>
  229. </fo:page-sequence>
  230. </fo:root>