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.

markers_10.xml 6.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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 markers on broken tables.
  21. </p>
  22. </info>
  23. <fo>
  24. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
  25. <fo:layout-master-set>
  26. <fo:simple-page-master master-name="normal" page-width="5in" page-height="2in">
  27. <fo:region-body margin="0.5in 0"/>
  28. <fo:region-before extent="0.5in"/>
  29. <fo:region-after extent="0.5in"/>
  30. </fo:simple-page-master>
  31. </fo:layout-master-set>
  32. <fo:page-sequence master-reference="normal" white-space-collapse="true">
  33. <fo:static-content flow-name="xsl-region-before">
  34. <fo:block background-color="yellow">
  35. f-i-c: <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="first-including-carryover"/>
  36. </fo:block>
  37. <fo:block background-color="yellow">
  38. f-s-w-p: <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="first-starting-within-page"/>
  39. </fo:block>
  40. </fo:static-content>
  41. <fo:static-content flow-name="xsl-region-after">
  42. <fo:block text-align="end" background-color="yellow">
  43. l-s-w-p: <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-starting-within-page"/>
  44. </fo:block>
  45. <fo:block text-align="end" background-color="yellow">
  46. l-e-w-p: <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-ending-within-page"/>
  47. </fo:block>
  48. </fo:static-content>
  49. <fo:flow flow-name="xsl-region-body">
  50. <fo:table color="black" table-layout="fixed">
  51. <fo:table-column number-columns-repeated="2"/>
  52. <fo:table-body>
  53. <fo:table-row>
  54. <fo:table-cell>
  55. <fo:marker marker-class-name="test">row1</fo:marker>
  56. <fo:block>row1</fo:block>
  57. <fo:block>row1</fo:block>
  58. <fo:block>row1</fo:block>
  59. <fo:block>row1</fo:block>
  60. </fo:table-cell>
  61. <fo:table-cell>
  62. <fo:marker marker-class-name="test">row1</fo:marker>
  63. <fo:block>row1</fo:block>
  64. </fo:table-cell>
  65. </fo:table-row>
  66. <fo:table-row>
  67. <fo:table-cell>
  68. <fo:marker marker-class-name="test">row2</fo:marker>
  69. <fo:block>row2</fo:block>
  70. </fo:table-cell>
  71. <fo:table-cell>
  72. <fo:marker marker-class-name="test">row2</fo:marker>
  73. <fo:block>row2</fo:block>
  74. <fo:block>row2</fo:block>
  75. <fo:block>row2</fo:block>
  76. <fo:block>row2</fo:block>
  77. </fo:table-cell>
  78. </fo:table-row>
  79. <fo:table-row>
  80. <fo:table-cell>
  81. <fo:marker marker-class-name="test">row3</fo:marker>
  82. <fo:block>row3</fo:block>
  83. </fo:table-cell>
  84. <fo:table-cell>
  85. <fo:marker marker-class-name="test">row3</fo:marker>
  86. <fo:block>row3</fo:block>
  87. <fo:block>row3</fo:block>
  88. <fo:block>row3</fo:block>
  89. <fo:block>row3</fo:block>
  90. </fo:table-cell>
  91. </fo:table-row>
  92. <fo:table-row>
  93. <fo:table-cell>
  94. <fo:marker marker-class-name="test">row4</fo:marker>
  95. <fo:block>row4</fo:block>
  96. </fo:table-cell>
  97. </fo:table-row>
  98. <fo:table-row>
  99. <fo:table-cell>
  100. <fo:marker marker-class-name="test">row5</fo:marker>
  101. <fo:block>row5</fo:block>
  102. </fo:table-cell>
  103. <fo:table-cell>
  104. <fo:marker marker-class-name="test">row5</fo:marker>
  105. <fo:block>row5</fo:block>
  106. <fo:block>row5</fo:block>
  107. </fo:table-cell>
  108. </fo:table-row>
  109. <fo:table-row>
  110. <fo:table-cell column-number="2">
  111. <fo:marker marker-class-name="test">row6</fo:marker>
  112. <fo:block>row6</fo:block>
  113. </fo:table-cell>
  114. </fo:table-row>
  115. </fo:table-body>
  116. </fo:table>
  117. </fo:flow>
  118. </fo:page-sequence>
  119. </fo:root>
  120. </fo>
  121. <checks>
  122. <true xpath="starts-with(//pageViewport[@nr=1]//regionBefore/block[1],'f-i-c: row1')"/>
  123. <true xpath="starts-with(//pageViewport[@nr=1]//regionBefore/block[2],'f-s-w-p: row1')"/>
  124. <true xpath="starts-with(//pageViewport[@nr=1]//regionAfter/block[1],'l-s-w-p: row2')"/>
  125. <true xpath="starts-with(//pageViewport[@nr=1]//regionAfter/block[2],'l-e-w-p: row1')"/>
  126. <true xpath="starts-with(//pageViewport[@nr=2]//regionBefore/block[1],'f-i-c: row2')"/>
  127. <true xpath="starts-with(//pageViewport[@nr=2]//regionBefore/block[2],'f-s-w-p: row3')"/>
  128. <true xpath="starts-with(//pageViewport[@nr=2]//regionAfter/block[1],'l-s-w-p: row3')"/>
  129. <true xpath="starts-with(//pageViewport[@nr=2]//regionAfter/block[2],'l-e-w-p: row2')"/>
  130. <true xpath="starts-with(//pageViewport[@nr=3]//regionBefore/block[1],'f-i-c: row3')"/>
  131. <true xpath="starts-with(//pageViewport[@nr=3]//regionBefore/block[2],'f-s-w-p: row4')"/>
  132. <true xpath="starts-with(//pageViewport[@nr=3]//regionAfter/block[1],'l-s-w-p: row5')"/>
  133. <true xpath="starts-with(//pageViewport[@nr=3]//regionAfter/block[2],'l-e-w-p: row5')"/>
  134. <true xpath="starts-with(//pageViewport[@nr=4]//regionBefore/block[1],'f-i-c: row6')"/>
  135. <true xpath="starts-with(//pageViewport[@nr=4]//regionBefore/block[2],'f-s-w-p: row6')"/>
  136. <true xpath="starts-with(//pageViewport[@nr=4]//regionAfter/block[1],'l-s-w-p: row6')"/>
  137. <true xpath="starts-with(//pageViewport[@nr=4]//regionAfter/block[2],'l-e-w-p: row6')"/>
  138. </checks>
  139. </testcase>