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-border-separate3.xml 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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 tables, especially table-cells. This test: borders in conjunction with empty-cells.
  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="5in">
  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:table table-layout="fixed" border-collapse="separate">
  33. <fo:table-column column-width="160pt"/>
  34. <fo:table-column column-width="200pt"/>
  35. <fo:table-body>
  36. <fo:table-row>
  37. <fo:table-cell background-color="yellow" border="solid 5pt">
  38. <fo:block/>
  39. </fo:table-cell>
  40. <fo:table-cell border="solid 5pt">
  41. <fo:block>cell2</fo:block>
  42. </fo:table-cell>
  43. </fo:table-row>
  44. <fo:table-row empty-cells="show">
  45. <fo:table-cell background-color="yellow" border="solid 5pt">
  46. <fo:block/>
  47. </fo:table-cell>
  48. <fo:table-cell border="solid 5pt">
  49. <fo:block>cell4</fo:block>
  50. </fo:table-cell>
  51. </fo:table-row>
  52. <fo:table-row empty-cells="hide">
  53. <fo:table-cell background-color="yellow" border="solid 5pt">
  54. <fo:block/>
  55. </fo:table-cell>
  56. <fo:table-cell border="solid 5pt">
  57. <fo:block>cell6</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="color=#ffff00" xpath="//flow/block[1]/block[1]/@background"/>
  68. <eval expected="5000 5000 5000 5000" xpath="//flow/block[1]/block[1]/@bap"/>
  69. <eval expected="cell2" xpath="//flow/block[1]/block[2]/block[1]/lineArea"/>
  70. <eval expected="color=#ffff00" xpath="//flow/block[1]/block[3]/@background"/>
  71. <eval expected="5000 5000 5000 5000" xpath="//flow/block[1]/block[3]/@bap"/>
  72. <eval expected="cell4" xpath="//flow/block[1]/block[4]/block[1]/lineArea"/>
  73. <true xpath="not(boolean(//flow/block[1]/block[5]/@background))"/>
  74. <eval expected="0 0 0 0" xpath="//flow/block[1]/block[5]/@bap"/>
  75. <eval expected="cell6" xpath="//flow/block[1]/block[6]/block[1]/lineArea"/>
  76. </checks>
  77. </testcase>