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_bug37880.xml 2.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 footnotes, particularly bug #37880. A footnote in centered text was ignored.
  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="3in">
  27. <fo:region-body/>
  28. </fo:simple-page-master>
  29. </fo:layout-master-set>
  30. <fo:page-sequence master-reference="normal" white-space-collapse="true">
  31. <fo:flow flow-name="xsl-region-body">
  32. <fo:block text-align="center">
  33. Blah
  34. <fo:footnote id="fn1">
  35. <fo:inline font-size="6.95pt" vertical-align="super">1) </fo:inline>
  36. <fo:footnote-body>
  37. <fo:block text-align="left">
  38. <fo:inline font-size="6.95pt" vertical-align="super">1) </fo:inline>http://xmlgrapics.apache.org/fop/</fo:block>
  39. </fo:footnote-body>
  40. </fo:footnote>
  41. </fo:block>
  42. <!-- This second block uses an empty inline which will produce an auxiliary box w=0. I wanted to check if maybe this
  43. box would be ignored as anchor due to the additional check on auxiliary boxes that was necessary to fix the
  44. above bug. -->
  45. <fo:block text-align="center">
  46. Blah2
  47. <fo:footnote id="fn2">
  48. <fo:inline/>
  49. <fo:footnote-body>
  50. <fo:block text-align="left">
  51. <fo:inline font-size="6.95pt" vertical-align="super">2) </fo:inline>http://www.apache.org</fo:block>
  52. </fo:footnote-body>
  53. </fo:footnote>
  54. </fo:block>
  55. </fo:flow>
  56. </fo:page-sequence>
  57. </fo:root>
  58. </fo>
  59. <checks>
  60. <true xpath="//footnote/block[1]/@bpd &gt; 0"/>
  61. <true xpath="//footnote/block[2]/@bpd &gt; 0"/>
  62. </checks>
  63. </testcase>