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.

table-header_table-footer_3.xml 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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 element list generation for table-header and table-footer, or more specifically
  21. a copy/past error that was in the code (regression check).
  22. </p>
  23. </info>
  24. <fo>
  25. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  26. <fo:layout-master-set>
  27. <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
  28. <fo:region-body/>
  29. </fo:simple-page-master>
  30. </fo:layout-master-set>
  31. <fo:page-sequence master-reference="normal">
  32. <fo:flow flow-name="xsl-region-body">
  33. <fo:table table-layout="fixed" width="100%">
  34. <fo:table-column number-columns-repeated="1"/>
  35. <fo:table-header>
  36. <fo:table-row background-color="yellow" height="50pt">
  37. <fo:table-cell>
  38. <fo:block>header</fo:block>
  39. </fo:table-cell>
  40. </fo:table-row>
  41. </fo:table-header>
  42. <fo:table-footer>
  43. <fo:table-row background-color="orange" height="60pt">
  44. <fo:table-cell>
  45. <fo:block>footer</fo:block>
  46. </fo:table-cell>
  47. </fo:table-row>
  48. </fo:table-footer>
  49. <fo:table-body>
  50. <fo:table-row>
  51. <fo:table-cell>
  52. <fo:block>cell1</fo:block>
  53. </fo:table-cell>
  54. </fo:table-row>
  55. <fo:table-row>
  56. <fo:table-cell background-color="lightgray">
  57. <fo:block>cell2</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. <element-list category="breaker">
  68. <box w="14400"/>
  69. <penalty w="110000" p="0"/>
  70. <box w="14400"/>
  71. <box w="50000"/> <!--header-->
  72. <box w="60000"/> <!--footer-->
  73. <skip>3</skip>
  74. </element-list>
  75. </checks>
  76. </testcase>