Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

table_jira2388.xml 3.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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 is a testcase for jira #2388: when a 2-row table with WM(rl-tb) is contained in a block
  21. with WM(lr-tb), then content from both rows should, by default, use WM(rl-tb) from table. Prior
  22. to fix, the first row was obtaining default WM(lr-tb) from the container block rather than table.
  23. </p>
  24. </info>
  25. <fo>
  26. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  27. <fo:layout-master-set>
  28. <fo:simple-page-master margin="20mm" master-name="letterPage" page-width="210mm" page-height="297mm">
  29. <fo:region-body region-name="letterPageBody"/>
  30. </fo:simple-page-master>
  31. </fo:layout-master-set>
  32. <fo:page-sequence master-reference="letterPage">
  33. <fo:flow flow-name="letterPageBody">
  34. <fo:block>
  35. <fo:table writing-mode="rl-tb" table-layout="fixed" width="100%">
  36. <fo:table-column column-width="proportional-column-width(100)" column-number="1"/>
  37. <fo:table-body>
  38. <fo:table-row>
  39. <fo:table-cell>
  40. <fo:block font-family="Arial" font-size="12pt" font-weight="normal">يرحب بكم ستاندرد تشارترد بنك و يتطلع لتقديم خدمات الحسابات المصرفية لكم</fo:block>
  41. </fo:table-cell>
  42. </fo:table-row>
  43. <fo:table-row>
  44. <fo:table-cell>
  45. <fo:block font-family="Arial" font-size="12pt" font-weight="normal">يرحب بكم ستاندرد تشارترد بنك و يتطلع لتقديم خدمات الحسابات المصرفية لكم</fo:block>
  46. </fo:table-cell>
  47. </fo:table-row>
  48. </fo:table-body>
  49. </fo:table>
  50. </fo:block>
  51. </fo:flow>
  52. </fo:page-sequence>
  53. </fo:root>
  54. </fo>
  55. <checks>
  56. <eval expected="2" xpath="count(//lineArea)"/>
  57. <eval expected="1" xpath="(//lineArea)[1]/@level"/>
  58. <eval expected="88800" xpath="(//lineArea)[1]/@end-indent"/>
  59. <eval expected="1" xpath="(//lineArea)[2]/@level"/>
  60. <eval expected="88800" xpath="(//lineArea)[2]/@end-indent"/>
  61. </checks>
  62. </testcase>