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-row_break-inside-span.xml 2.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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 breaks on tables. Breaks on table-row during row spanning are ignored
  21. (XSL 1.1, 7.20.1 and 7.20.2).
  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="5in" page-height="5in">
  28. <fo:region-body/>
  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:table table-layout="fixed" width="100%">
  34. <fo:table-column column-width="proportional-column-width(1)"
  35. number-columns-repeated="2"/>
  36. <fo:table-body>
  37. <fo:table-row break-after="page">
  38. <fo:table-cell number-rows-spanned="2" background-color="orange">
  39. <fo:block>cell1 line 1</fo:block>
  40. <fo:block>cell1 line 2</fo:block>
  41. <fo:block>cell1 line 3</fo:block>
  42. </fo:table-cell>
  43. <fo:table-cell background-color="yellow">
  44. <fo:block>cell2</fo:block>
  45. </fo:table-cell>
  46. </fo:table-row>
  47. <fo:table-row break-before="page">
  48. <fo:table-cell>
  49. <fo:block>cell4</fo:block>
  50. </fo:table-cell>
  51. </fo:table-row>
  52. </fo:table-body>
  53. </fo:table>
  54. </fo:flow>
  55. </fo:page-sequence>
  56. </fo:root>
  57. </fo>
  58. <checks>
  59. <eval expected="1" xpath="count(//pageViewport)"/>
  60. <!-- If the break would be respected we'd get 2 pages. Watch for the warning in the log. -->
  61. </checks>
  62. </testcase>