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.

region-body_column-count_span_4.xml 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. Check that spanned section that are broken over
  21. to multiple pages still respect the span setting. This particular test makes sure that pages with different region-body
  22. height are handled properly.
  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="odd-page" page-height="3.5cm" page-width="4cm" margin="0.45cm">
  29. <fo:region-body margin-top="12pt * 1.2 * 2" column-count="2" background-color="yellow"/>
  30. </fo:simple-page-master>
  31. <fo:simple-page-master master-name="even-page" page-height="3.5cm" page-width="4cm" margin="0.45cm">
  32. <fo:region-body column-count="2" background-color="orange"/>
  33. </fo:simple-page-master>
  34. <fo:page-sequence-master master-name="master">
  35. <fo:repeatable-page-master-alternatives>
  36. <fo:conditional-page-master-reference master-reference="odd-page" odd-or-even="odd" blank-or-not-blank="not-blank"/>
  37. <fo:conditional-page-master-reference master-reference="even-page" odd-or-even="even" blank-or-not-blank="not-blank"/>
  38. </fo:repeatable-page-master-alternatives>
  39. </fo:page-sequence-master>
  40. </fo:layout-master-set>
  41. <fo:page-sequence master-reference="master">
  42. <fo:flow flow-name="xsl-region-body">
  43. <fo:block span="all">
  44. <fo:block>Line 1</fo:block>
  45. <fo:block>Line 2</fo:block>
  46. <fo:block>Line 3</fo:block>
  47. <fo:block>Line 4</fo:block>
  48. <fo:block>Line 5</fo:block>
  49. <fo:block>Line 6</fo:block>
  50. <fo:block>Line 7</fo:block>
  51. <fo:block>Line 8</fo:block>
  52. <fo:block>Line 9</fo:block>
  53. <fo:block>Line 10</fo:block>
  54. <fo:block>Line 11</fo:block>
  55. <fo:block>Line 12</fo:block>
  56. <fo:block>Line 13</fo:block>
  57. <fo:block>Line 14</fo:block>
  58. <fo:block>Line 15</fo:block>
  59. <fo:block>Line 16</fo:block>
  60. <fo:block>Line 17</fo:block>
  61. <fo:block>Line 18</fo:block>
  62. <fo:block>Line 19</fo:block>
  63. <fo:block>Line 20</fo:block>
  64. <fo:block>Line 21</fo:block>
  65. <fo:block>Line 22</fo:block>
  66. </fo:block>
  67. </fo:flow>
  68. </fo:page-sequence>
  69. </fo:root>
  70. </fo>
  71. <checks>
  72. <eval expected="6" xpath="count(//pageViewport)"/>
  73. <eval expected="3" xpath="count(//pageViewport[@nr=1]//lineArea)"/>
  74. <eval expected="5" xpath="count(//pageViewport[@nr=2]//lineArea)"/>
  75. <eval expected="3" xpath="count(//pageViewport[@nr=3]//lineArea)"/>
  76. <eval expected="5" xpath="count(//pageViewport[@nr=4]//lineArea)"/>
  77. <eval expected="3" xpath="count(//pageViewport[@nr=5]//lineArea)"/>
  78. <eval expected="3" xpath="count(//pageViewport[@nr=6]//lineArea)"/>
  79. </checks>
  80. </testcase>