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.

table-column_column-number.fo 7.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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">Several configurations of tables for testing the setup of
  26. columns.</fo:block>
  27. <fo:block space-after="10pt">A simple table to begin.</fo:block>
  28. <fo:table table-layout="fixed" border-collapse="separate" width="200pt">
  29. <fo:table-column number-columns-repeated="2" column-width="100pt"/>
  30. <fo:table-header>
  31. <fo:table-cell border="1pt solid black"><fo:block>Header 1.1</fo:block></fo:table-cell>
  32. <fo:table-cell border="1pt solid black"><fo:block>Header 1.2</fo:block></fo:table-cell>
  33. </fo:table-header>
  34. <fo:table-footer>
  35. <fo:table-cell border="1pt solid black"><fo:block>Footer 1.1</fo:block></fo:table-cell>
  36. <fo:table-cell border="1pt solid black"><fo:block>Footer 1.2</fo:block></fo:table-cell>
  37. </fo:table-footer>
  38. <fo:table-body>
  39. <fo:table-cell border="1pt solid black"><fo:block>Cell 1.1</fo:block></fo:table-cell>
  40. <fo:table-cell border="1pt solid black"><fo:block>Cell 1.2</fo:block></fo:table-cell>
  41. <fo:table-cell starts-row="true"
  42. border="1pt solid black"><fo:block>Cell 2.1</fo:block></fo:table-cell>
  43. <fo:table-cell border="1pt solid black"><fo:block>Cell 2.2</fo:block></fo:table-cell>
  44. </fo:table-body>
  45. </fo:table>
  46. <fo:block space-before="20pt" space-after="10pt">2 columns, resp. 200pt and 100pt
  47. wide.</fo:block>
  48. <fo:table table-layout="fixed" border-collapse="separate" width="300pt">
  49. <fo:table-column column-width="200pt"/>
  50. <fo:table-column column-width="100pt"/>
  51. <fo:table-header>
  52. <fo:table-cell border="1pt solid black"><fo:block>Header 1.1</fo:block></fo:table-cell>
  53. <fo:table-cell border="1pt solid black"><fo:block>Header 1.2</fo:block></fo:table-cell>
  54. </fo:table-header>
  55. <fo:table-footer>
  56. <fo:table-cell border="1pt solid black"><fo:block>Footer 1.1</fo:block></fo:table-cell>
  57. <fo:table-cell border="1pt solid black"><fo:block>Footer 1.2</fo:block></fo:table-cell>
  58. </fo:table-footer>
  59. <fo:table-body>
  60. <fo:table-cell border="1pt solid black"><fo:block>Cell 1.1</fo:block></fo:table-cell>
  61. <fo:table-cell border="1pt solid black"><fo:block>Cell 1.2</fo:block></fo:table-cell>
  62. <fo:table-cell starts-row="true"
  63. border="1pt solid black"><fo:block>Cell 2.1</fo:block></fo:table-cell>
  64. <fo:table-cell border="1pt solid black"><fo:block>Cell 2.2</fo:block></fo:table-cell>
  65. </fo:table-body>
  66. </fo:table>
  67. <fo:block space-before="20pt" space-after="10pt">3 unordered columns, resp. 100, 150 and
  68. 200pt wide.</fo:block>
  69. <fo:table table-layout="fixed" border-collapse="separate" width="450">
  70. <fo:table-column column-number="2" column-width="150pt"/>
  71. <fo:table-column column-width="200pt"/>
  72. <fo:table-column column-number="1" column-width="100pt"/>
  73. <fo:table-header>
  74. <fo:table-cell border="1pt solid black"><fo:block>Header 1.1</fo:block></fo:table-cell>
  75. <fo:table-cell border="1pt solid black"><fo:block>Header 1.2</fo:block></fo:table-cell>
  76. <fo:table-cell border="1pt solid black"><fo:block>Header 1.3</fo:block></fo:table-cell>
  77. </fo:table-header>
  78. <fo:table-footer>
  79. <fo:table-cell border="1pt solid black"><fo:block>Footer 1.1</fo:block></fo:table-cell>
  80. <fo:table-cell border="1pt solid black"><fo:block>Footer 1.2</fo:block></fo:table-cell>
  81. <fo:table-cell border="1pt solid black"><fo:block>Footer 1.3</fo:block></fo:table-cell>
  82. </fo:table-footer>
  83. <fo:table-body>
  84. <fo:table-cell border="1pt solid black"><fo:block>Cell 1.1</fo:block></fo:table-cell>
  85. <fo:table-cell border="1pt solid black"><fo:block>Cell 1.2</fo:block></fo:table-cell>
  86. <fo:table-cell border="1pt solid black"><fo:block>Cell 1.3</fo:block></fo:table-cell>
  87. <fo:table-cell starts-row="true"
  88. border="1pt solid black"><fo:block>Cell 2.1</fo:block></fo:table-cell>
  89. <fo:table-cell border="1pt solid black"><fo:block>Cell 2.2</fo:block></fo:table-cell>
  90. <fo:table-cell border="1pt solid black"><fo:block>Cell 2.3</fo:block></fo:table-cell>
  91. </fo:table-body>
  92. </fo:table>
  93. <fo:block space-before="20pt" space-after="10pt">4 unordered columns, 2nd column implicit,
  94. resp. 100, 125, 150 and 175 pt wide.</fo:block>
  95. <fo:table table-layout="fixed" border-collapse="separate" width="550">
  96. <fo:table-column column-number="3" column-width="150pt"/>
  97. <fo:table-column column-width="175pt"/>
  98. <fo:table-column column-number="1" column-width="100pt"/>
  99. <fo:table-header>
  100. <fo:table-cell border="1pt solid black"><fo:block>Header 1.1</fo:block></fo:table-cell>
  101. <fo:table-cell border="1pt solid black"><fo:block>Header 1.2</fo:block></fo:table-cell>
  102. <fo:table-cell border="1pt solid black"><fo:block>Header 1.3</fo:block></fo:table-cell>
  103. <fo:table-cell border="1pt solid black"><fo:block>Header 1.4</fo:block></fo:table-cell>
  104. </fo:table-header>
  105. <fo:table-footer>
  106. <fo:table-cell border="1pt solid black"><fo:block>Footer 1.1</fo:block></fo:table-cell>
  107. <fo:table-cell border="1pt solid black"><fo:block>Footer 1.2</fo:block></fo:table-cell>
  108. <fo:table-cell border="1pt solid black"><fo:block>Footer 1.3</fo:block></fo:table-cell>
  109. <fo:table-cell border="1pt solid black"><fo:block>Footer 1.4</fo:block></fo:table-cell>
  110. </fo:table-footer>
  111. <fo:table-body>
  112. <fo:table-cell border="1pt solid black"><fo:block>Cell 1.1</fo:block></fo:table-cell>
  113. <fo:table-cell border="1pt solid black"><fo:block>Cell 1.2</fo:block></fo:table-cell>
  114. <fo:table-cell border="1pt solid black"><fo:block>Cell 1.3</fo:block></fo:table-cell>
  115. <fo:table-cell border="1pt solid black"><fo:block>Cell 1.4</fo:block></fo:table-cell>
  116. <fo:table-cell starts-row="true"
  117. border="1pt solid black"><fo:block>Cell 2.1</fo:block></fo:table-cell>
  118. <fo:table-cell border="1pt solid black"><fo:block>Cell 2.2</fo:block></fo:table-cell>
  119. <fo:table-cell border="1pt solid black"><fo:block>Cell 2.3</fo:block></fo:table-cell>
  120. <fo:table-cell border="1pt solid black"><fo:block>Cell 2.4</fo:block></fo:table-cell>
  121. </fo:table-body>
  122. </fo:table>
  123. </fo:flow>
  124. </fo:page-sequence>
  125. </fo:root>