Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

region-body_column-count_bug37468.xml 4.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <?xml version="1.0" encoding="UTF-8"?>
  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. <testcase>
  18. <info>
  19. <p>
  20. This test checks multi-column documents. Checks a problem described in Bugzilla #37468.
  21. A table that was broken in multiple parts started a new page after each break possibility
  22. instead of changing to the next flow area.
  23. </p>
  24. </info>
  25. <fo>
  26. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  27. <fo:layout-master-set>
  28. <fo:simple-page-master master-name="normal" page-width="320pt" page-height="1.5in">
  29. <fo:region-body column-count="3" column-gap="10pt"/>
  30. </fo:simple-page-master>
  31. </fo:layout-master-set>
  32. <fo:page-sequence master-reference="normal">
  33. <fo:flow flow-name="xsl-region-body">
  34. <fo:table table-layout="fixed" width="100%" border-collapse="separate">
  35. <fo:table-column column-width="proportional-column-width(1)"/>
  36. <fo:table-column column-width="proportional-column-width(1)"/>
  37. <fo:table-body>
  38. <fo:table-row>
  39. <fo:table-cell>
  40. <fo:block>r1 c1</fo:block>
  41. </fo:table-cell>
  42. <fo:table-cell>
  43. <fo:block>r1 c2</fo:block>
  44. </fo:table-cell>
  45. </fo:table-row>
  46. <fo:table-row>
  47. <fo:table-cell>
  48. <fo:block>r2 c1</fo:block>
  49. </fo:table-cell>
  50. <fo:table-cell>
  51. <fo:block>r2 c2</fo:block>
  52. </fo:table-cell>
  53. </fo:table-row>
  54. <fo:table-row>
  55. <fo:table-cell>
  56. <fo:block>r3 c1</fo:block>
  57. </fo:table-cell>
  58. <fo:table-cell>
  59. <fo:block>r3 c2</fo:block>
  60. </fo:table-cell>
  61. </fo:table-row>
  62. <fo:table-row>
  63. <fo:table-cell>
  64. <fo:block>r4 c1</fo:block>
  65. </fo:table-cell>
  66. <fo:table-cell>
  67. <fo:block>r4 c2</fo:block>
  68. </fo:table-cell>
  69. </fo:table-row>
  70. <fo:table-row>
  71. <fo:table-cell>
  72. <fo:block>r5 c1</fo:block>
  73. </fo:table-cell>
  74. <fo:table-cell>
  75. <fo:block>r5 c2</fo:block>
  76. </fo:table-cell>
  77. </fo:table-row>
  78. <fo:table-row>
  79. <fo:table-cell>
  80. <fo:block>r6 c1</fo:block>
  81. </fo:table-cell>
  82. <fo:table-cell>
  83. <fo:block>r6 c2</fo:block>
  84. </fo:table-cell>
  85. </fo:table-row>
  86. <fo:table-row>
  87. <fo:table-cell>
  88. <fo:block>r7 c1</fo:block>
  89. </fo:table-cell>
  90. <fo:table-cell>
  91. <fo:block>r7 c2</fo:block>
  92. </fo:table-cell>
  93. </fo:table-row>
  94. <fo:table-row>
  95. <fo:table-cell>
  96. <fo:block>r8 c1</fo:block>
  97. </fo:table-cell>
  98. <fo:table-cell>
  99. <fo:block>r8 c2</fo:block>
  100. </fo:table-cell>
  101. </fo:table-row>
  102. <fo:table-row>
  103. <fo:table-cell>
  104. <fo:block>r9 c1</fo:block>
  105. </fo:table-cell>
  106. <fo:table-cell>
  107. <fo:block>r9 c2</fo:block>
  108. </fo:table-cell>
  109. </fo:table-row>
  110. <fo:table-row>
  111. <fo:table-cell>
  112. <fo:block>r10 c1</fo:block>
  113. </fo:table-cell>
  114. <fo:table-cell>
  115. <fo:block>r10 c2</fo:block>
  116. </fo:table-cell>
  117. </fo:table-row>
  118. </fo:table-body>
  119. </fo:table>
  120. </fo:flow>
  121. </fo:page-sequence>
  122. </fo:root>
  123. </fo>
  124. <checks>
  125. <eval expected="1" xpath="count(//pageViewport)"/>
  126. <true xpath="count(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow[1]/*) > 0"/>
  127. <true xpath="count(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow[2]/*) > 0"/>
  128. </checks>
  129. </testcase>