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.

table-border-row-span-rl.xml 5.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  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: table-border-separate3.xml 627324 2008-02-13 09:35:01Z maxberger $ -->
  17. <testcase>
  18. <info>
  19. <p>This test checks correct placement of table borders of spanned table cells in right-to-left writing mode.</p>
  20. </info>
  21. <fo>
  22. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  23. <fo:layout-master-set>
  24. <fo:simple-page-master margin="20mm" master-name="odd" page-height="148mm" page-width="210mm">
  25. <fo:region-body/>
  26. </fo:simple-page-master>
  27. </fo:layout-master-set>
  28. <fo:page-sequence id="lastpagesequence" master-reference="odd" writing-mode="rl-tb">
  29. <fo:flow flow-name="xsl-region-body">
  30. <fo:table border-collapse="collapse" table-layout="fixed" width="100%">
  31. <fo:table-column column-width="60%"/>
  32. <fo:table-column column-width="40%"/>
  33. <fo:table-body>
  34. <fo:table-row height="8px">
  35. <fo:table-cell background-color="#DCDDDE" border-collapse="collapse" border-color="black" border-style="solid" border-width="1px">
  36. <fo:block>A1</fo:block>
  37. </fo:table-cell>
  38. <fo:table-cell background-color="#DCDDDE" border-collapse="collapse" border-color="black" border-style="solid" border-width="1px" number-rows-spanned="2">
  39. <fo:block>B1,B2</fo:block>
  40. </fo:table-cell>
  41. </fo:table-row>
  42. <fo:table-row height="8px">
  43. <fo:table-cell background-color="#DCDDDE" border-collapse="collapse" border-color="black" border-style="solid" border-width="1px">
  44. <fo:block>A2</fo:block>
  45. </fo:table-cell>
  46. </fo:table-row>
  47. <fo:table-row height="8px">
  48. <fo:table-cell border-collapse="collapse" border-color="black" border-style="solid" border-width="1px">
  49. <fo:block>A3</fo:block>
  50. </fo:table-cell>
  51. <fo:table-cell border-collapse="collapse" border-color="black" border-style="solid" border-width="1px">
  52. <fo:block>B3</fo:block>
  53. </fo:table-cell>
  54. </fo:table-row>
  55. </fo:table-body>
  56. </fo:table>
  57. </fo:flow>
  58. </fo:page-sequence>
  59. </fo:root>
  60. </fo>
  61. <checks>
  62. <!-- ************** ROW 1 ************** -->
  63. <!-- Border top, bottom, left and right of A1 -->
  64. <eval expected="193256" xpath="//flow/block[1]/block[1][.//word = 'A1'][@border-before and @border-after and @border-end and @border-start]/@left-offset"/>
  65. <eval expected="-500" xpath="//flow/block[1]/block[1][.//word = 'A1'][@border-before and @border-after and @border-end and @border-start]/@top-offset"/>
  66. <!-- Border top, left and right of B1 -->
  67. <eval expected="500" xpath="//flow/block[1]/block[3][@border-before and not(@border-after) and @border-end and @border-start]/@left-offset"/>
  68. <eval expected="-500" xpath="//flow/block[1]/block[3][@border-before and not(@border-after) and @border-end and @border-start]/@top-offset"/>
  69. <!-- ************** ROW 2 ************** -->
  70. <!-- Border top, bottom, left and right of A2 -->
  71. <eval expected="193256" xpath="//flow/block[1]/block[2][.//word = 'A2'][@border-before and @border-after and @border-end and @border-start]/@left-offset"/>
  72. <eval expected="14900" xpath="//flow/block[1]/block[2][.//word = 'A2'][@border-before and @border-after and @border-end and @border-start]/@top-offset"/>
  73. <!-- Border bottom, left and right of B2 -->
  74. <eval expected="500" xpath="//flow/block[1]/block[4][not(@border-before) and @border-after and @border-end and @border-start]/@left-offset"/>
  75. <eval expected="15400" xpath="//flow/block[1]/block[4][not(@border-before) and @border-after and @border-end and @border-start]/@top-offset"/>
  76. <!-- ************** ROW 3 ************** -->
  77. <!-- Border top, bottom, left and right of A3 -->
  78. <eval expected="193256" xpath="//flow/block[1]/block[6][.//word = 'A3'][@border-before and @border-after and @border-end and @border-start]/@left-offset"/>
  79. <eval expected="30300" xpath="//flow/block[1]/block[6][.//word = 'A3'][@border-before and @border-after and @border-end and @border-start]/@top-offset"/>
  80. <!-- Border top, bottom, left and right of B3 -->
  81. <eval expected="500" xpath="//flow/block[1]/block[7][.//word = 'B3'][@border-before and @border-after and @border-end and @border-start]/@left-offset"/>
  82. <eval expected="30300" xpath="//flow/block[1]/block[7][.//word = 'B3'][@border-before and @border-after and @border-end and @border-start]/@top-offset"/>
  83. </checks>
  84. </testcase>