Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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 normal breaking. It checks the available BPD is properly evaluated for
  21. every single page.
  22. </p>
  23. </info>
  24. <fo>
  25. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" widows="0" orphans="0">
  26. <fo:layout-master-set>
  27. <fo:simple-page-master master-name="short" page-height="90pt" page-width="150pt">
  28. <fo:region-body/>
  29. </fo:simple-page-master>
  30. <fo:simple-page-master master-name="long" page-height="180pt" page-width="150pt">
  31. <fo:region-body/>
  32. </fo:simple-page-master>
  33. <fo:page-sequence-master master-name="master">
  34. <fo:single-page-master-reference master-reference="short"/>
  35. <fo:single-page-master-reference master-reference="long"/>
  36. <fo:single-page-master-reference master-reference="short"/>
  37. </fo:page-sequence-master>
  38. </fo:layout-master-set>
  39. <fo:page-sequence master-reference="master">
  40. <fo:flow flow-name="xsl-region-body">
  41. <fo:block background-color="orange" linefeed-treatment="preserve"
  42. >Apache FOP is a great tool to create PDF documents with.
  43. Apache FOP is a great tool to create PDF documents with.
  44. Apache FOP is a great tool to create PDF documents with.
  45. Apache FOP is a great tool to create PDF documents with.
  46. Apache FOP is a great tool to create PDF documents with.
  47. Apache FOP is a great tool to create PDF documents with.
  48. </fo:block>
  49. <fo:block background-color="yellow">last line in new block</fo:block>
  50. </fo:flow>
  51. </fo:page-sequence>
  52. </fo:root>
  53. </fo>
  54. <checks>
  55. <eval expected="3" xpath="count(//pageViewport)"/>
  56. <eval expected="6" xpath="sum(//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block/@bpda) div 14400"/>
  57. <eval expected="12" xpath="sum(//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block/@bpda) div 14400"/>"/>
  58. <eval expected="1" xpath="sum(//pageViewport[3]/page/regionViewport/regionBody/mainReference/span/flow/block/@bpda) div 14400"/>"/>
  59. </checks>
  60. </testcase>