Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

flow_changing-ipd_no-last-page.xml 4.0KB

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 that the definition of a special page-master for the last page does not
  21. interfere with the changing IPD code.
  22. </p>
  23. </info>
  24. <fo>
  25. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:fox="http://xmlgraphics.apache.org/fop/extensions">
  26. <fo:layout-master-set>
  27. <fo:simple-page-master margin-right="0mm" margin-top="4mm" margin-left="7mm" margin-bottom="8mm" master-name="PageFront" page-width="210mm" page-height="297mm">
  28. <fo:region-body margin-right="20mm" region-name="letterPageBody" margin-top="46mm" margin-left="26mm" margin-bottom="10mm"/>
  29. </fo:simple-page-master>
  30. <fo:simple-page-master margin-right="0mm" margin-top="4mm" margin-left="7mm" master-name="PageRest" page-width="210mm" page-height="297mm" margin-bottom="8mm">
  31. <fo:region-body margin-right="20mm" margin-top="35mm" margin-left="13mm" region-name="letterPageBody" margin-bottom="10mm"/>
  32. </fo:simple-page-master>
  33. <fo:simple-page-master margin-right="0mm" master-name="PageBlank" margin-top="4mm" margin-left="7mm" page-width="210mm" page-height="297mm" margin-bottom="8mm">
  34. <fo:region-body margin-right="20mm" margin-top="38mm" margin-bottom="12mm" margin-left="26mm" region-name="letterPageBody"/>
  35. </fo:simple-page-master>
  36. <fo:page-sequence-master master-name="LetterPages">
  37. <fo:repeatable-page-master-alternatives>
  38. <fo:conditional-page-master-reference page-position="first" master-reference="PageFront"/>
  39. <fo:conditional-page-master-reference page-position="rest" master-reference="PageRest"/>
  40. <fo:conditional-page-master-reference blank-or-not-blank="not-blank" odd-or-even="even" page-position="last" master-reference="PageRest"/>
  41. <fo:conditional-page-master-reference blank-or-not-blank="blank" odd-or-even="even" page-position="last" master-reference="PageBlank"/>
  42. </fo:repeatable-page-master-alternatives>
  43. </fo:page-sequence-master>
  44. </fo:layout-master-set>
  45. <fo:page-sequence format="1" id="th_default_sequence1" initial-page-number="auto" force-page-count="end-on-even" master-reference="LetterPages">
  46. <fo:flow flow-name="letterPageBody">
  47. <fo:block>
  48. <fo:table table-layout="fixed">
  49. <fo:table-body>
  50. <fo:table-row height="30mm">
  51. <fo:table-cell width="157mm">
  52. <fo:block/>
  53. </fo:table-cell>
  54. </fo:table-row>
  55. <fo:table-row height="199mm" display-align="after">
  56. <fo:table-cell width="157mm">
  57. <fo:block margin-bottom="0mm"/>
  58. </fo:table-cell>
  59. </fo:table-row>
  60. </fo:table-body>
  61. </fo:table>
  62. </fo:block>
  63. <fo:block>
  64. <fo:block font-size="9pt">
  65. <fo:leader/>
  66. <fo:block break-before="page"/>
  67. </fo:block>
  68. </fo:block>
  69. </fo:flow>
  70. </fo:page-sequence>
  71. </fo:root>
  72. </fo>
  73. <checks>
  74. <eval expected="" xpath="//pageViewport[1]//flow/block[2]//text"/>
  75. <eval expected="" xpath="//pageViewport[2]//flow/block[1]//text"/>
  76. </checks>
  77. </testcase>