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_in_marker_bug39560.xml 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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 Bugzilla #39560 where a table is defined inside a marker.
  21. </p>
  22. </info>
  23. <fo>
  24. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  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-after extent="0.5in"/>
  29. </fo:simple-page-master>
  30. </fo:layout-master-set>
  31. <fo:page-sequence master-reference="normal">
  32. <fo:static-content flow-name="xsl-region-after">
  33. <fo:block text-align="end" background-color="yellow">
  34. <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-ending-within-page"/>
  35. </fo:block>
  36. </fo:static-content>
  37. <fo:flow flow-name="xsl-region-body">
  38. <fo:table table-layout="fixed" width="100%">
  39. <fo:table-column number-columns-repeated="2"/>
  40. <fo:table-body>
  41. <fo:table-row>
  42. <fo:table-cell>
  43. <fo:marker marker-class-name="test">
  44. <fo:table table-layout="fixed" width="100%">
  45. <fo:table-column number-columns-repeated="2"/>
  46. <fo:table-body>
  47. <fo:table-row>
  48. <fo:table-cell>
  49. <fo:block>Subtotal</fo:block>
  50. </fo:table-cell>
  51. <fo:table-cell text-align="end">
  52. <fo:block>29.95</fo:block>
  53. </fo:table-cell>
  54. </fo:table-row>
  55. </fo:table-body>
  56. </fo:table>
  57. </fo:marker>
  58. <fo:block>MemoryStick 32MB</fo:block>
  59. </fo:table-cell>
  60. <fo:table-cell text-align="end">
  61. <fo:block>29.95</fo:block>
  62. </fo:table-cell>
  63. </fo:table-row>
  64. <fo:table-row>
  65. <fo:table-cell>
  66. <fo:marker marker-class-name="test">
  67. <fo:table table-layout="fixed" width="100%">
  68. <fo:table-column number-columns-repeated="2"/>
  69. <fo:table-body>
  70. <fo:table-row>
  71. <fo:table-cell>
  72. <fo:block>Subtotal</fo:block>
  73. </fo:table-cell>
  74. <fo:table-cell text-align="end">
  75. <fo:block>49.95</fo:block>
  76. </fo:table-cell>
  77. </fo:table-row>
  78. </fo:table-body>
  79. </fo:table>
  80. </fo:marker>
  81. <fo:block>Geek-Tool</fo:block>
  82. </fo:table-cell>
  83. <fo:table-cell text-align="end">
  84. <fo:block>20.00</fo:block>
  85. </fo:table-cell>
  86. </fo:table-row>
  87. </fo:table-body>
  88. </fo:table>
  89. </fo:flow>
  90. </fo:page-sequence>
  91. </fo:root>
  92. </fo>
  93. <checks>
  94. <!-- TODO Add reasonable checks when the NPE is fixed -->
  95. <eval expected="1" xpath="count(//pageViewport)"/>
  96. </checks>
  97. </testcase>