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.

footnote_in_table_3.xml 3.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 that a footnote within the fixed height of a table row is properly handled.
  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="simple" page-height="220pt" page-width="3in"
  27. margin="10pt">
  28. <fo:region-body background-color="#F0F0F0"/>
  29. </fo:simple-page-master>
  30. </fo:layout-master-set>
  31. <fo:page-sequence master-reference="simple" font-size="8pt" line-height="10pt">
  32. <fo:flow flow-name="xsl-region-body">
  33. <fo:block>Before the table</fo:block>
  34. <fo:table table-layout="fixed" width="100%">
  35. <fo:table-column column-width="proportional-column-width(1)"/>
  36. <fo:table-column column-width="proportional-column-width(1)"/>
  37. <fo:table-body border="1pt solid black">
  38. <fo:table-row border="inherit">
  39. <fo:table-cell border="inherit">
  40. <fo:block break-after="page">Cell 1.1</fo:block>
  41. <fo:block>Cell 1.1<fo:footnote>
  42. <fo:inline>(2)</fo:inline>
  43. <fo:footnote-body>
  44. <fo:block>(2) Footnote number 2.</fo:block>
  45. </fo:footnote-body>
  46. </fo:footnote></fo:block>
  47. <fo:block>Cell 1.1</fo:block>
  48. </fo:table-cell>
  49. <fo:table-cell border="inherit">
  50. <fo:block>Cell 1.2<fo:footnote>
  51. <fo:inline>(1)</fo:inline>
  52. <fo:footnote-body>
  53. <fo:block>(1) Footnote number 1.</fo:block>
  54. </fo:footnote-body>
  55. </fo:footnote></fo:block>
  56. <fo:block>Cell 1.2</fo:block>
  57. <fo:block>Cell 1.2</fo:block>
  58. </fo:table-cell>
  59. </fo:table-row>
  60. </fo:table-body>
  61. </fo:table>
  62. </fo:flow>
  63. </fo:page-sequence>
  64. </fo:root>
  65. </fo>
  66. <checks>
  67. <eval expected="Cell 1.2(1)" xpath="//pageViewport[1]//regionBody//block[2]/block[2]/block"/>
  68. <eval expected="1" xpath="count(//pageViewport[1]//footnote/block)"/>
  69. <eval expected="(1) Footnote number 1." xpath="//pageViewport[1]//footnote/block[1]"/>
  70. <eval expected="Cell 1.1(2)" xpath="//pageViewport[2]//regionBody//block[1]/block[1]/block[1]"/>
  71. <eval expected="1" xpath="count(//pageViewport[2]//footnote/block)"/>
  72. <eval expected="(2) Footnote number 2." xpath="//pageViewport[2]//footnote/block[1]"/>
  73. </checks>
  74. </testcase>