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.

inline_block-level_nested_1.xml 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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 fo:inline and nested block-level nodes.
  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="normal" page-width="5in" page-height="6in">
  27. <fo:region-body/>
  28. </fo:simple-page-master>
  29. </fo:layout-master-set>
  30. <fo:page-sequence master-reference="normal">
  31. <fo:flow flow-name="xsl-region-body">
  32. <fo:block>
  33. <fo:inline>before
  34. <fo:list-block>
  35. <fo:list-item>
  36. <fo:list-item-label end-indent="label-end()">
  37. <fo:block>&#x2022;</fo:block>
  38. </fo:list-item-label>
  39. <fo:list-item-body start-indent="body-start()">
  40. <fo:block id="list-item-body1">Inline list item one.</fo:block>
  41. </fo:list-item-body>
  42. </fo:list-item>
  43. </fo:list-block>
  44. after</fo:inline>
  45. </fo:block>
  46. <fo:block space-before="0.5em">
  47. <fo:inline>before
  48. <fo:table table-layout="fixed" width="100%">
  49. <fo:table-column column-width="proportional-column-width(1)"
  50. number-columns-repeated="2"/>"
  51. <fo:table-body>
  52. <fo:table-row>
  53. <fo:table-cell id="table-cell1">
  54. <fo:block>cell1</fo:block>
  55. </fo:table-cell>
  56. <fo:table-cell>
  57. <fo:block>cell2</fo:block>
  58. </fo:table-cell>
  59. </fo:table-row>
  60. </fo:table-body>
  61. </fo:table>
  62. after</fo:inline>
  63. </fo:block>
  64. <fo:block space-before="0.5em">
  65. <fo:inline>before
  66. <fo:block-container>
  67. <fo:block id="block-in-bc">block in block-container</fo:block>
  68. </fo:block-container>
  69. after</fo:inline>
  70. </fo:block>
  71. </fo:flow>
  72. </fo:page-sequence>
  73. </fo:root>
  74. </fo>
  75. <checks>
  76. <element-list category="breaker">
  77. <box w="14400"/>
  78. <penalty w="0" p="0"/>
  79. <box w="14400"/>
  80. <penalty w="0" p="0"/>
  81. <box w="14400"/>
  82. <penalty w="0" p="0"/>
  83. <glue w="6000" aux="true"/>
  84. <box w="14400"/>
  85. <penalty w="0" p="0"/>
  86. <box w="14400"/>
  87. <penalty w="0" p="0"/>
  88. <box w="14400"/>
  89. <penalty w="0" p="0"/>
  90. <glue w="6000" aux="true"/>
  91. <box w="14400"/>
  92. <penalty w="0" p="0"/>
  93. <box w="14400"/>
  94. <penalty w="0" p="0"/>
  95. <box w="14400"/>
  96. <skip>3</skip>
  97. </element-list>
  98. <true xpath="boolean(//block[@prod-id='list-item-body1'])"/>
  99. <true xpath="boolean(//block[@prod-id='table-cell1'])"/>
  100. <true xpath="boolean(//block[@prod-id='block-in-bc'])"/>
  101. </checks>
  102. </testcase>