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_bug36356.xml 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 #36356.
  21. The balancing algorithm does not seem to always find the right breaking points.
  22. </p>
  23. </info>
  24. <fo>
  25. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
  26. <fo:layout-master-set>
  27. <fo:simple-page-master master-name="normal" page-width="320pt" page-height="4in">
  28. <fo:region-body column-count="3" column-gap="10pt"/>
  29. </fo:simple-page-master>
  30. </fo:layout-master-set>
  31. <fo:page-sequence master-reference="normal" white-space-collapse="true">
  32. <fo:flow flow-name="xsl-region-body">
  33. <fo:block margin="5pt">
  34. <fo:block>line1</fo:block>
  35. <fo:block>line2</fo:block>
  36. <fo:block>line3</fo:block>
  37. <fo:block>line4</fo:block>
  38. <fo:block>line5</fo:block>
  39. <fo:block>line6</fo:block>
  40. </fo:block>
  41. <fo:block margin="5pt" span="all">
  42. <fo:block>This line is spanned over all columns.</fo:block>
  43. </fo:block>
  44. <fo:block margin="5pt">
  45. <fo:block>line1</fo:block>
  46. <fo:block>line2</fo:block>
  47. <fo:block>line3</fo:block>
  48. </fo:block>
  49. </fo:flow>
  50. </fo:page-sequence>
  51. </fo:root>
  52. </fo>
  53. <checks>
  54. <!-- 33800 = 2 * 5000 + 2 * 14400 -->
  55. <eval expected="38800" xpath="//mainReference/span[1]/@bpd"/>
  56. <eval expected="3" xpath="count(//mainReference/span[1]/flow)"/>
  57. </checks>
  58. </testcase>