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.

flow_changing-ipd_table-after-break.xml 3.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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 that a table immediately following a changing IPD break is handled properly.
  21. </p>
  22. </info>
  23. <fo>
  24. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  25. <fo:layout-master-set>
  26. <fo:simple-page-master master-name="narrow"
  27. page-height="220pt" page-width="320pt" margin="10pt">
  28. <fo:region-body background-color="#F0F0F0"/>
  29. </fo:simple-page-master>
  30. <fo:simple-page-master master-name="wide"
  31. page-height="220pt" page-width="420pt" margin="10pt">
  32. <fo:region-body background-color="#F0F0F0"/>
  33. </fo:simple-page-master>
  34. <fo:page-sequence-master master-name="pages">
  35. <fo:single-page-master-reference master-reference="narrow"/>
  36. <fo:repeatable-page-master-reference master-reference="wide"/>
  37. </fo:page-sequence-master>
  38. </fo:layout-master-set>
  39. <fo:page-sequence master-reference="pages" font-size="8pt" line-height="10pt">
  40. <fo:flow flow-name="xsl-region-body" text-align="justify">
  41. <fo:block space-after="180pt">Before the table</fo:block>
  42. <fo:table table-layout="fixed" width="100%" id="table">
  43. <fo:table-body>
  44. <fo:table-row>
  45. <fo:table-cell>
  46. <fo:block>
  47. <fo:block id="before_break">Block before the page break.</fo:block>
  48. <fo:block id="after_break">Block after the page break.</fo:block>
  49. </fo:block>
  50. </fo:table-cell>
  51. </fo:table-row>
  52. </fo:table-body>
  53. </fo:table>
  54. <fo:table table-layout="fixed" width="100%">
  55. <fo:table-body>
  56. <fo:table-row>
  57. <fo:table-cell>
  58. <fo:block>After the table 1</fo:block>
  59. </fo:table-cell>
  60. </fo:table-row>
  61. <fo:table-row>
  62. <fo:table-cell>
  63. <fo:block>After the table 2</fo:block>
  64. </fo:table-cell>
  65. </fo:table-row>
  66. </fo:table-body>
  67. </fo:table>
  68. </fo:flow>
  69. </fo:page-sequence>
  70. </fo:root>
  71. </fo>
  72. <checks>
  73. <eval expected="Block before the page break." xpath="//pageViewport[1]//flow/block[2]//text"/>
  74. <eval expected="Block after the page break." xpath="//pageViewport[2]//flow/block[1]//text"/>
  75. <eval expected="After the table 1" xpath="//pageViewport[2]//flow/block[2]/block[1]//text"/>
  76. <eval expected="After the table 2" xpath="//pageViewport[2]//flow/block[2]/block[2]//text"/>
  77. </checks>
  78. </testcase>