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.

marker_white-space-treatment_bug42703.xml 4.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. Test accompanying bugfix for Bugzilla 42703
  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="all-pages">
  27. <fo:region-body region-name="xsl-region-body" margin-top="10cm"/>
  28. <fo:region-before region-name="xsl-region-before" extent="29cm" display-align="before" />
  29. <fo:region-after region-name="xsl-region-after" extent="10cm" display-align="before" />
  30. </fo:simple-page-master>
  31. </fo:layout-master-set>
  32. <fo:page-sequence master-reference="all-pages">
  33. <fo:static-content flow-name="xsl-region-before">
  34. <fo:block color="blue" font-size="25pt">
  35. <fo:block>marker1 content:
  36. <fo:inline color="green"><fo:retrieve-marker
  37. retrieve-class-name="marker1"
  38. retrieve-boundary="page"
  39. /></fo:inline>
  40. </fo:block>
  41. <fo:block>marker1 content:
  42. <fo:inline color="green"><fo:retrieve-marker
  43. retrieve-class-name="marker1"
  44. retrieve-boundary="page"
  45. /></fo:inline>
  46. </fo:block>
  47. </fo:block>
  48. </fo:static-content>
  49. <fo:flow flow-name="xsl-region-body">
  50. <fo:block font-size="20pt">
  51. <fo:block margin-top="2cm">
  52. <fo:marker marker-class-name="marker1">
  53. <fo:block>Block<fo:inline> with inline element <fo:external-graphic src="../resources/images/img.svg" content-type="content-type:xml/svg" alignment-baseline="text-after-edge" height="1em" content-height="scale-to-fit"/> and a graphic </fo:inline>.</fo:block>
  54. </fo:marker>
  55. text with the marker
  56. </fo:block>
  57. </fo:block>
  58. </fo:flow>
  59. </fo:page-sequence>
  60. <fo:page-sequence master-reference="all-pages">
  61. <fo:static-content flow-name="xsl-region-before">
  62. <fo:block color="blue" font-size="25pt">
  63. <fo:block>marker1 content:
  64. <fo:inline color="green"><fo:retrieve-marker
  65. retrieve-class-name="marker1"
  66. retrieve-boundary="page"
  67. /></fo:inline>
  68. </fo:block>
  69. <fo:block>marker1 content:
  70. <fo:inline color="green"><fo:retrieve-marker
  71. retrieve-class-name="marker1"
  72. retrieve-boundary="page"
  73. /></fo:inline>
  74. </fo:block>
  75. </fo:block>
  76. </fo:static-content>
  77. <fo:flow flow-name="xsl-region-body">
  78. <fo:block font-size="20pt">
  79. <fo:block margin-top="2cm">
  80. <fo:marker marker-class-name="marker1"> Block<fo:inline> with inline element </fo:inline>.
  81. </fo:marker>
  82. text with the marker
  83. </fo:block>
  84. </fo:block>
  85. </fo:flow>
  86. </fo:page-sequence>
  87. </fo:root>
  88. </fo>
  89. <checks>
  90. <eval expected="4" xpath="count((//regionBefore//inlineparent)[1]/text[1]/space)" />
  91. <eval expected="4" xpath="count((//regionBefore//inlineparent)[1]/text[2]/space)" />
  92. <eval expected="4" xpath="count((//regionBefore//inlineparent)[2]/text[1]/space)" />
  93. <eval expected="4" xpath="count((//regionBefore//inlineparent)[2]/text[2]/space)" />
  94. </checks>
  95. </testcase>