Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

page-number-citation_list.xml 6.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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 page-number-citations of list-block, list-item,
  21. list-item-label and list-item-body.
  22. </p>
  23. </info>
  24. <fo>
  25. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
  26. <fo:layout-master-set>
  27. <fo:simple-page-master master-name="normal" page-width="5in" page-height="2in"
  28. margin="20pt">
  29. <fo:region-body background-color="yellow"/>
  30. </fo:simple-page-master>
  31. </fo:layout-master-set>
  32. <fo:page-sequence id="page-sequence1" master-reference="normal" white-space-collapse="true">
  33. <fo:flow flow-name="xsl-region-body">
  34. <fo:list-block id="list1" provisional-distance-between-starts="50pt" provisional-label-separation="5pt">
  35. <fo:list-item id="item1">
  36. <fo:list-item-label id="item1-label" end-indent="label-end()">
  37. <fo:block>•</fo:block>
  38. </fo:list-item-label>
  39. <fo:list-item-body id="item1-body" start-indent="body-start()">
  40. <fo:block>here is text in the list item body</fo:block>
  41. </fo:list-item-body>
  42. </fo:list-item>
  43. <fo:list-item id="item2">
  44. <fo:list-item-label id="item2-label" end-indent="label-end()">
  45. <fo:block>•</fo:block>
  46. </fo:list-item-label>
  47. <fo:list-item-body id="item2-body" start-indent="body-start()">
  48. <fo:block>here is text in the list item body</fo:block>
  49. </fo:list-item-body>
  50. </fo:list-item>
  51. <fo:list-item id="item3">
  52. <fo:list-item-label id="item3-label" end-indent="label-end()">
  53. <fo:block>•</fo:block>
  54. </fo:list-item-label>
  55. <fo:list-item-body id="item3-body" start-indent="body-start()">
  56. <fo:block>here is text in the list item body</fo:block>
  57. </fo:list-item-body>
  58. </fo:list-item>
  59. <fo:list-item id="item4">
  60. <fo:list-item-label id="item4-label" end-indent="label-end()">
  61. <fo:block>•</fo:block>
  62. </fo:list-item-label>
  63. <fo:list-item-body id="item4-body" start-indent="body-start()">
  64. <fo:block>here is text in the list item body</fo:block>
  65. </fo:list-item-body>
  66. </fo:list-item>
  67. <fo:list-item id="item5">
  68. <fo:list-item-label id="item5-label" end-indent="label-end()">
  69. <fo:block>•</fo:block>
  70. </fo:list-item-label>
  71. <fo:list-item-body id="item5-body" start-indent="body-start()">
  72. <fo:block>here is text in the list item body</fo:block>
  73. </fo:list-item-body>
  74. </fo:list-item>
  75. <fo:list-item id="item6">
  76. <fo:list-item-label id="item6-label" end-indent="label-end()">
  77. <fo:block>•</fo:block>
  78. </fo:list-item-label>
  79. <fo:list-item-body id="item6-body" start-indent="body-start()">
  80. <fo:block>here is text in the list item body</fo:block>
  81. </fo:list-item-body>
  82. </fo:list-item>
  83. <fo:list-item id="item7">
  84. <fo:list-item-label id="item7-label" end-indent="label-end()">
  85. <fo:block>•</fo:block>
  86. </fo:list-item-label>
  87. <fo:list-item-body id="item7-body" start-indent="body-start()">
  88. <fo:block>here is text in the list item body</fo:block>
  89. <fo:block>here is text in the list item body</fo:block>
  90. <fo:block>here is text in the list item body</fo:block>
  91. </fo:list-item-body>
  92. </fo:list-item>
  93. <fo:list-item id="item8">
  94. <fo:list-item-label id="item8-label" end-indent="label-end()">
  95. <fo:block>•</fo:block>
  96. </fo:list-item-label>
  97. <fo:list-item-body id="item8-body" start-indent="body-start()">
  98. <fo:block>here is text in the list item body</fo:block>
  99. </fo:list-item-body>
  100. </fo:list-item>
  101. </fo:list-block>
  102. </fo:flow>
  103. </fo:page-sequence>
  104. <fo:page-sequence master-reference="normal">
  105. <fo:flow flow-name="xsl-region-body" font-size="8pt">
  106. <fo:block><fo:page-number-citation ref-id="list1"/></fo:block>
  107. <fo:block><fo:page-number-citation-last ref-id="list1"/></fo:block>
  108. <fo:block><fo:page-number-citation ref-id="item1"/></fo:block>
  109. <fo:block><fo:page-number-citation ref-id="item1-label"/></fo:block>
  110. <fo:block><fo:page-number-citation ref-id="item1-body"/></fo:block>
  111. <fo:block><fo:page-number-citation-last ref-id="item7-body"/></fo:block>
  112. </fo:flow>
  113. </fo:page-sequence>
  114. </fo:root>
  115. </fo>
  116. <checks>
  117. <true fail-msg="Wrong page-number-citation for list-block" xpath="'1' = //pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]"/>
  118. <true fail-msg="Wrong page-number-citation-last for list-block" xpath="'2' = //pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[2]"/>
  119. <true fail-msg="Wrong page-number-citation for list-item" xpath="'1' = //pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[3]"/>
  120. <true fail-msg="Wrong page-number-citation for list-item-label" xpath="'1' = //pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[4]"/>
  121. <true fail-msg="Wrong page-number-citation for list-item-body" xpath="'1' = //pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[5]"/>
  122. <true fail-msg="Wrong page-number-citation-last for list-item-body" xpath="'2' = //pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[6]"/>
  123. </checks>
  124. </testcase>