Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

markers_5b.xml 7.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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, especially the behaviour of block being broken over pages. This is almost the same
  21. as markers5a except that tables are used instead of plain blocks.
  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="1.8in">
  28. <fo:region-body margin="0.5in 0in"/>
  29. <fo:region-before extent="0.5in"/>
  30. <fo:region-after extent="0.5in"/>
  31. </fo:simple-page-master>
  32. </fo:layout-master-set>
  33. <fo:page-sequence master-reference="normal" white-space-collapse="true">
  34. <fo:static-content flow-name="xsl-region-before">
  35. <fo:block>
  36. page <fo:page-number/>
  37. </fo:block>
  38. <fo:block>
  39. <fo:retrieve-marker retrieve-class-name="previous-total" retrieve-boundary="page-sequence" retrieve-position="first-starting-within-page"/>
  40. </fo:block>
  41. </fo:static-content>
  42. <fo:static-content flow-name="xsl-region-after">
  43. <fo:block text-align="end">
  44. <fo:retrieve-marker retrieve-class-name="total" retrieve-boundary="page-sequence" retrieve-position="last-ending-within-page"/>
  45. </fo:block>
  46. </fo:static-content>
  47. <fo:flow flow-name="xsl-region-body">
  48. <fo:table table-layout="fixed">
  49. <fo:table-column column-width="2in"/>
  50. <fo:table-column column-width="2in"/>
  51. <fo:table-column column-width="1in"/>
  52. <fo:table-body>
  53. <fo:table-row>
  54. <fo:table-cell>
  55. <fo:block>1</fo:block>
  56. </fo:table-cell>
  57. <fo:table-cell>
  58. <fo:block>1.00</fo:block>
  59. </fo:table-cell>
  60. <fo:table-cell>
  61. <fo:block>
  62. <fo:marker marker-class-name="previous-total">0.00</fo:marker>
  63. <fo:marker marker-class-name="total">1.00</fo:marker>
  64. </fo:block>
  65. </fo:table-cell>
  66. </fo:table-row>
  67. <fo:table-row>
  68. <fo:table-cell>
  69. <fo:block>2</fo:block>
  70. </fo:table-cell>
  71. <fo:table-cell>
  72. <fo:block>1.00</fo:block>
  73. </fo:table-cell>
  74. <fo:table-cell>
  75. <fo:block>
  76. <fo:marker marker-class-name="previous-total">1.00</fo:marker>
  77. <fo:marker marker-class-name="total">2.00</fo:marker>
  78. </fo:block>
  79. </fo:table-cell>
  80. </fo:table-row>
  81. <fo:table-row>
  82. <fo:table-cell>
  83. <fo:block>3</fo:block>
  84. </fo:table-cell>
  85. <fo:table-cell>
  86. <fo:block>1.00</fo:block>
  87. </fo:table-cell>
  88. <fo:table-cell>
  89. <fo:block>
  90. <fo:marker marker-class-name="previous-total">2.00</fo:marker>
  91. <fo:marker marker-class-name="total">3.00</fo:marker>
  92. </fo:block>
  93. </fo:table-cell>
  94. </fo:table-row>
  95. <fo:table-row>
  96. <fo:table-cell>
  97. <fo:block>4</fo:block>
  98. </fo:table-cell>
  99. <fo:table-cell>
  100. <fo:block>1.00</fo:block>
  101. </fo:table-cell>
  102. <fo:table-cell>
  103. <fo:block id="id4">
  104. <fo:marker marker-class-name="previous-total">3.00</fo:marker>
  105. <fo:marker marker-class-name="total">4.00</fo:marker>
  106. </fo:block>
  107. </fo:table-cell>
  108. </fo:table-row>
  109. <fo:table-row>
  110. <fo:table-cell>
  111. <fo:block>5</fo:block>
  112. </fo:table-cell>
  113. <fo:table-cell>
  114. <fo:block>1.00</fo:block>
  115. </fo:table-cell>
  116. <fo:table-cell>
  117. <fo:block id="id5">
  118. <fo:marker marker-class-name="previous-total">4.00</fo:marker>
  119. <fo:marker marker-class-name="total">5.00</fo:marker>
  120. </fo:block>
  121. </fo:table-cell>
  122. </fo:table-row>
  123. <fo:table-row>
  124. <fo:table-cell>
  125. <fo:block>6</fo:block>
  126. </fo:table-cell>
  127. <fo:table-cell>
  128. <fo:block>1.00</fo:block>
  129. </fo:table-cell>
  130. <fo:table-cell>
  131. <fo:block id="id6">
  132. <fo:marker marker-class-name="previous-total">5.00</fo:marker>
  133. <fo:marker marker-class-name="total">6.00</fo:marker>
  134. </fo:block>
  135. </fo:table-cell>
  136. </fo:table-row>
  137. </fo:table-body>
  138. </fo:table>
  139. </fo:flow>
  140. </fo:page-sequence>
  141. </fo:root>
  142. </fo>
  143. <checks>
  144. <!-- page 1 -->
  145. <eval expected="0.00" xpath="//pageViewport[1]/page/regionViewport[1]/regionBefore/block[2]/lineArea"/>
  146. <eval expected="4.00" xpath="//pageViewport[1]/page/regionViewport[2]/regionAfter/block[1]/lineArea"/>
  147. <eval expected="1" xpath="//pageViewport[1]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/lineArea"/>
  148. <eval expected="2" xpath="//pageViewport[1]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[1]/block[4]/block[1]/lineArea"/>
  149. <eval expected="3" xpath="//pageViewport[1]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[1]/block[7]/block[1]/lineArea"/>
  150. <eval expected="4" xpath="//pageViewport[1]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[1]/block[10]/block[1]/lineArea"/>
  151. <!-- page 2 -->
  152. <eval expected="4.00" xpath="//pageViewport[2]/page/regionViewport[1]/regionBefore/block[2]/lineArea"/>
  153. <eval expected="6.00" xpath="//pageViewport[2]/page/regionViewport[2]/regionAfter/block[1]/lineArea"/>
  154. <eval expected="5" xpath="//pageViewport[2]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/lineArea"/>
  155. <eval expected="6" xpath="//pageViewport[2]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[1]/block[4]/block[1]/lineArea"/>
  156. </checks>
  157. </testcase>