Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

region-body_column-count_footnote.xml 3.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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 multi-column documents. This test: footnotes in multi-column documents (no spans).
  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="360pt" page-height="2in">
  27. <fo:region-body column-count="2" column-gap="20pt"/>
  28. </fo:simple-page-master>
  29. </fo:layout-master-set>
  30. <fo:page-sequence master-reference="normal" white-space-collapse="true">
  31. <fo:static-content flow-name="xsl-footnote-separator">
  32. <fo:block border-top="solid 5pt red"/>
  33. </fo:static-content>
  34. <fo:flow flow-name="xsl-region-body">
  35. <fo:block>line1</fo:block>
  36. <fo:block>line2</fo:block>
  37. <fo:block>line3</fo:block>
  38. <fo:block>line4</fo:block>
  39. <fo:block>line5<fo:footnote><fo:inline>x</fo:inline><fo:footnote-body><fo:block background-color="orange">A footnote</fo:block></fo:footnote-body></fo:footnote></fo:block>
  40. <fo:block>line6</fo:block>
  41. <fo:block>line7</fo:block>
  42. <fo:block>line8</fo:block>
  43. <fo:block>line9</fo:block>
  44. <fo:block>line10</fo:block>
  45. <fo:block>line11<fo:footnote><fo:inline>x</fo:inline><fo:footnote-body><fo:block background-color="orange">Another footnote on the second column</fo:block></fo:footnote-body></fo:footnote></fo:block>
  46. </fo:flow>
  47. </fo:page-sequence>
  48. </fo:root>
  49. </fo>
  50. <checks>
  51. <eval expected="1" xpath="count(//pageViewport)"/>
  52. <eval expected="1" xpath="count(//regionBody/mainReference/span)"/>
  53. <!-- room for 7 lines -->
  54. <eval expected="7" xpath="//regionBody/mainReference/span/@bpd div 14400"/>
  55. <!-- 2 columns -->
  56. <eval expected="2" xpath="count(//regionBody/mainReference/span/flow)"/>
  57. <!-- 7 lines in first column -->
  58. <eval expected="7" xpath="count(//regionBody/mainReference/span/flow[1]/block)"/>
  59. <eval expected="7" xpath="//regionBody/mainReference/span/flow[1]/@bpd div 14400"/>
  60. <!-- 4 lines in second column -->
  61. <eval expected="4" xpath="count(//regionBody/mainReference/span/flow[2]/block)"/>
  62. <eval expected="4" xpath="//regionBody/mainReference/span/flow[2]/@bpd div 14400"/>
  63. </checks>
  64. </testcase>