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.

list-block_fox_orphan-content-limit_1.xml 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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 the effect of the proprietary fox:orphan-content-limit property.
  21. </p>
  22. </info>
  23. <fo>
  24. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg"
  25. xmlns:fox="http://xmlgraphics.apache.org/fop/extensions">
  26. <fo:layout-master-set>
  27. <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
  28. <fo:region-body/>
  29. </fo:simple-page-master>
  30. </fo:layout-master-set>
  31. <fo:page-sequence master-reference="normal" white-space-collapse="true" widows="0" orphans="0">
  32. <fo:flow flow-name="xsl-region-body">
  33. <fo:block space-before="5in - (4 * 1.2em)" space-before.conditionality="retain"/>
  34. <fo:list-block
  35. provisional-distance-between-starts="12pt" provisional-label-separation="5pt"
  36. fox:orphan-content-limit="3 * 1.2em">
  37. <fo:list-item>
  38. <fo:list-item-label end-indent="label-end()">
  39. <fo:block>•</fo:block>
  40. </fo:list-item-label>
  41. <fo:list-item-body start-indent="body-start()">
  42. <fo:block>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec felis ipsum, viverra ut, aliquam porttitor, convallis id, risus. Fusce malesuada nunc nec orci.</fo:block>
  43. </fo:list-item-body>
  44. </fo:list-item>
  45. <fo:list-item>
  46. <fo:list-item-label end-indent="label-end()">
  47. <fo:block>•</fo:block>
  48. </fo:list-item-label>
  49. <fo:list-item-body start-indent="body-start()">
  50. <fo:block>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec felis ipsum.</fo:block>
  51. </fo:list-item-body>
  52. </fo:list-item>
  53. </fo:list-block>
  54. </fo:flow>
  55. </fo:page-sequence>
  56. <!-- the second page-sequence is without the extension property and just for reference. -->
  57. <fo:page-sequence master-reference="normal" white-space-collapse="true" widows="0" orphans="0">
  58. <fo:flow flow-name="xsl-region-body">
  59. <fo:block space-before="5in - (4 * 1.2em)" space-before.conditionality="retain"/>
  60. <fo:list-block
  61. provisional-distance-between-starts="12pt" provisional-label-separation="5pt">
  62. <fo:list-item>
  63. <fo:list-item-label end-indent="label-end()">
  64. <fo:block>•</fo:block>
  65. </fo:list-item-label>
  66. <fo:list-item-body start-indent="body-start()">
  67. <fo:block>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec felis ipsum, viverra ut, aliquam porttitor, convallis id, risus. Fusce malesuada nunc nec orci.</fo:block>
  68. </fo:list-item-body>
  69. </fo:list-item>
  70. <fo:list-item>
  71. <fo:list-item-label end-indent="label-end()">
  72. <fo:block>•</fo:block>
  73. </fo:list-item-label>
  74. <fo:list-item-body start-indent="body-start()">
  75. <fo:block>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec felis ipsum.</fo:block>
  76. </fo:list-item-body>
  77. </fo:list-item>
  78. </fo:list-block>
  79. </fo:flow>
  80. </fo:page-sequence>
  81. </fo:root>
  82. </fo>
  83. <checks>
  84. <element-list category="breaker" index="0">
  85. <box w="0"/>
  86. <penalty w="0" p="INF"/>
  87. <glue w="302400" y="0" z="0"/>
  88. <box w="0"/>
  89. <penalty w="0" p="0"/>
  90. <box w="14400"/>
  91. <penalty w="0" p="0"/>
  92. <box w="14400"/>
  93. <penalty w="0" p="0"/>
  94. <box w="14400"/>
  95. <penalty w="0" p="INF"/>
  96. <box w="14400"/>
  97. <penalty w="0" p="INF"/>
  98. <box w="14400"/>
  99. <skip>3</skip>
  100. </element-list>
  101. <element-list category="breaker" index="1">
  102. <box w="0"/>
  103. <penalty w="0" p="INF"/>
  104. <glue w="302400" y="0" z="0"/>
  105. <box w="0"/>
  106. <penalty w="0" p="0"/>
  107. <box w="14400"/>
  108. <penalty w="0" p="0"/>
  109. <box w="14400"/>
  110. <penalty w="0" p="0"/>
  111. <box w="14400"/>
  112. <penalty w="0" p="0"/>
  113. <box w="14400"/>
  114. <penalty w="0" p="0"/>
  115. <box w="14400"/>
  116. <skip>3</skip>
  117. </element-list>
  118. </checks>
  119. </testcase>