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.

TableRowIterator_no-row_spans.fo 8.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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. <!--
  18. WARNING: this file was semi-automatically generated from TableRowIterator_spans.fo and
  19. contains the very same tables using starts-row/ends-row instead of fo:table-row objects.
  20. Please modify TableRowIterator_spans.fo instead.
  21. -->
  22. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  23. <fo:layout-master-set>
  24. <fo:simple-page-master master-name="page" page-height="20cm" page-width="15cm"
  25. margin-top="1cm" margin-bottom="1cm" margin-left="1cm" margin-right="1cm">
  26. <fo:region-body/>
  27. </fo:simple-page-master>
  28. </fo:layout-master-set>
  29. <fo:page-sequence master-reference="page" font-family="serif" font-size="14pt">
  30. <fo:flow flow-name="xsl-region-body">
  31. <!-- Table 1: no header, no footer, one body (1 row with column-span) -->
  32. <fo:table border-separation="2pt" width="10cm" space-before="12pt" table-layout="fixed"
  33. border-collapse="separate" border="1pt solid black">
  34. <fo:table-column number-columns-repeated="2" column-width="proportional-column-width(1)"/>
  35. <fo:table-body>
  36. <fo:table-cell border="1pt solid" number-columns-spanned="2" starts-row="true" ends-row="true"><fo:block>Cell 1</fo:block></fo:table-cell>
  37. </fo:table-body>
  38. </fo:table>
  39. <!-- Table 2: no header, no footer, one body (1 row-group of 2 rows) -->
  40. <fo:table border-separation="2pt" width="10cm" space-before="12pt" table-layout="fixed"
  41. border-collapse="separate" border="1pt solid black">
  42. <fo:table-column number-columns-repeated="2" column-width="proportional-column-width(1)"/>
  43. <fo:table-body>
  44. <fo:table-cell border="1pt solid" number-rows-spanned="2" starts-row="true"><fo:block>Cell 1</fo:block></fo:table-cell>
  45. <fo:table-cell border="1pt solid" ends-row="true"><fo:block>Cell 2</fo:block></fo:table-cell>
  46. <fo:table-cell border="1pt solid" starts-row="true" ends-row="true"><fo:block>Cell 4</fo:block></fo:table-cell>
  47. </fo:table-body>
  48. </fo:table>
  49. <!-- Table 3: no header, no footer, one body (1 row-group of 2 rows, 1 row) -->
  50. <fo:table border-separation="2pt" width="10cm" space-before="12pt" table-layout="fixed"
  51. border-collapse="separate" border="1pt solid black">
  52. <fo:table-column number-columns-repeated="2" column-width="proportional-column-width(1)"/>
  53. <fo:table-body>
  54. <fo:table-cell border="1pt solid" number-rows-spanned="2" starts-row="true"><fo:block>Cell 1</fo:block></fo:table-cell>
  55. <fo:table-cell border="1pt solid" ends-row="true"><fo:block>Cell 2</fo:block></fo:table-cell>
  56. <fo:table-cell border="1pt solid" starts-row="true" ends-row="true"><fo:block>Cell 4</fo:block></fo:table-cell>
  57. <fo:table-cell border="1pt solid" starts-row="true"><fo:block>Cell 5</fo:block></fo:table-cell>
  58. <fo:table-cell border="1pt solid" ends-row="true"><fo:block>Cell 6</fo:block></fo:table-cell>
  59. </fo:table-body>
  60. </fo:table>
  61. <!-- Table 4: no header, no footer, one body (1 row, 1 row-group of 2 rows) -->
  62. <fo:table border-separation="2pt" width="10cm" space-before="12pt" table-layout="fixed"
  63. border-collapse="separate" border="1pt solid black">
  64. <fo:table-column number-columns-repeated="2" column-width="proportional-column-width(1)"/>
  65. <fo:table-body>
  66. <fo:table-cell border="1pt solid" starts-row="true"><fo:block>Cell 1</fo:block></fo:table-cell>
  67. <fo:table-cell border="1pt solid" ends-row="true"><fo:block>Cell 2</fo:block></fo:table-cell>
  68. <fo:table-cell border="1pt solid" number-rows-spanned="2" starts-row="true"><fo:block>Cell 3</fo:block></fo:table-cell>
  69. <fo:table-cell border="1pt solid" ends-row="true"><fo:block>Cell 5</fo:block></fo:table-cell>
  70. <fo:table-cell border="1pt solid" starts-row="true" ends-row="true"><fo:block>Cell 7</fo:block></fo:table-cell>
  71. </fo:table-body>
  72. </fo:table>
  73. <!-- Table 5: no header, no footer, one body (1 row, 1 row-group of 3 rows, 1 row) -->
  74. <fo:table border-separation="2pt" width="10cm" space-before="12pt" table-layout="fixed"
  75. border-collapse="separate" border="1pt solid black">
  76. <fo:table-column number-columns-repeated="2" column-width="proportional-column-width(1)"/>
  77. <fo:table-body>
  78. <fo:table-cell border="1pt solid" starts-row="true"><fo:block>Cell 1</fo:block></fo:table-cell>
  79. <fo:table-cell border="1pt solid" ends-row="true"><fo:block>Cell 2</fo:block></fo:table-cell>
  80. <fo:table-cell border="1pt solid" starts-row="true"><fo:block>Cell 3</fo:block></fo:table-cell>
  81. <fo:table-cell border="1pt solid" number-rows-spanned="2" ends-row="true"><fo:block>Cell 4</fo:block></fo:table-cell>
  82. <fo:table-cell border="1pt solid" number-rows-spanned="2" starts-row="true" ends-row="true"><fo:block>Cell 5</fo:block></fo:table-cell>
  83. <fo:table-cell border="1pt solid" starts-row="true" ends-row="true"><fo:block>Cell 8</fo:block></fo:table-cell>
  84. <fo:table-cell border="1pt solid" starts-row="true"><fo:block>Cell 9</fo:block></fo:table-cell>
  85. <fo:table-cell border="1pt solid" ends-row="true"><fo:block>Cell 10</fo:block></fo:table-cell>
  86. </fo:table-body>
  87. </fo:table>
  88. <!-- Table 6: one header (1 row-group of 2 rows), one footer (1 row, 1 row-group of 3 rows),
  89. one body (1 row-group of 2 rows, 1 row, 1 row-group of 3 rows) -->
  90. <fo:table border-separation="2pt" width="10cm" space-before="12pt" table-layout="fixed"
  91. border-collapse="separate" border="1pt solid black">
  92. <fo:table-column number-columns-repeated="2" column-width="proportional-column-width(1)"/>
  93. <fo:table-header>
  94. <fo:table-cell border="1pt solid" number-rows-spanned="2" starts-row="true"><fo:block>Header 1</fo:block></fo:table-cell>
  95. <fo:table-cell border="1pt solid" ends-row="true"><fo:block>Header 2</fo:block></fo:table-cell>
  96. <fo:table-cell border="1pt solid" starts-row="true" ends-row="true"><fo:block>Header 4</fo:block></fo:table-cell>
  97. </fo:table-header>
  98. <fo:table-footer>
  99. <fo:table-cell border="1pt solid" starts-row="true"><fo:block>Footer 1</fo:block></fo:table-cell>
  100. <fo:table-cell border="1pt solid" ends-row="true"><fo:block>Footer 2</fo:block></fo:table-cell>
  101. <fo:table-cell border="1pt solid" number-rows-spanned="2" starts-row="true"><fo:block>Footer 3</fo:block></fo:table-cell>
  102. <fo:table-cell border="1pt solid" ends-row="true"><fo:block>Footer 4</fo:block></fo:table-cell>
  103. <fo:table-cell border="1pt solid" number-rows-spanned="2" starts-row="true" ends-row="true"><fo:block>Footer 6</fo:block></fo:table-cell>
  104. <fo:table-cell border="1pt solid" starts-row="true" ends-row="true"><fo:block>Footer 7</fo:block></fo:table-cell>
  105. </fo:table-footer>
  106. <fo:table-body>
  107. <fo:table-cell border="1pt solid" starts-row="true"><fo:block>Cell 1</fo:block></fo:table-cell>
  108. <fo:table-cell border="1pt solid" number-rows-spanned="2" ends-row="true"><fo:block>Cell 2</fo:block></fo:table-cell>
  109. <fo:table-cell border="1pt solid" starts-row="true" ends-row="true"><fo:block>Cell 3</fo:block></fo:table-cell>
  110. <fo:table-cell border="1pt solid" starts-row="true"><fo:block>Cell 5</fo:block></fo:table-cell>
  111. <fo:table-cell border="1pt solid" ends-row="true"><fo:block>Cell 6</fo:block></fo:table-cell>
  112. <fo:table-cell border="1pt solid" starts-row="true"><fo:block>Cell 7</fo:block></fo:table-cell>
  113. <fo:table-cell border="1pt solid" number-rows-spanned="2" ends-row="true"><fo:block>Cell 8</fo:block></fo:table-cell>
  114. <fo:table-cell border="1pt solid" number-rows-spanned="2" starts-row="true" ends-row="true"><fo:block>Cell 9</fo:block></fo:table-cell>
  115. <fo:table-cell border="1pt solid" starts-row="true" ends-row="true"><fo:block>Cell 10</fo:block></fo:table-cell>
  116. </fo:table-body>
  117. </fo:table>
  118. </fo:flow>
  119. </fo:page-sequence>
  120. </fo:root>