Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

marker_bug.xml 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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 for a bug with markers where white space is not removed.
  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="5in">
  27. <fo:region-body margin-top="1in" margin-bottom="1in"/>
  28. <fo:region-before extent="1in"/>
  29. <fo:region-after extent="1in"/>
  30. </fo:simple-page-master>
  31. </fo:layout-master-set>
  32. <fo:page-sequence master-reference="normal">
  33. <fo:static-content flow-name="xsl-region-before">
  34. <fo:block background-color="yellow">
  35. <fo:retrieve-marker retrieve-class-name="m1" />
  36. </fo:block>
  37. </fo:static-content>
  38. <fo:static-content flow-name="xsl-region-after">
  39. <fo:block background-color="yellow">
  40. <fo:retrieve-marker retrieve-class-name="m2" />
  41. </fo:block>
  42. </fo:static-content>
  43. <fo:flow flow-name="xsl-region-body">
  44. <fo:block background-color="red">
  45. <fo:marker marker-class-name="m1">
  46. <fo:block>
  47. First marker with whitespace around
  48. </fo:block>
  49. </fo:marker>
  50. </fo:block>
  51. <fo:block background-color="green"><fo:marker marker-class-name="m2"><fo:block>Second marker with no whitespace around</fo:block></fo:marker></fo:block>
  52. </fo:flow>
  53. </fo:page-sequence>
  54. </fo:root>
  55. </fo>
  56. <checks>
  57. <eval expected="72000" xpath="//regionBefore/@bpd"/>
  58. <eval expected="14400" xpath="//regionBefore/block/@bpd"/>
  59. <eval expected="14400" xpath="//regionBefore/block/block/@bpd"/>
  60. <eval expected="1" xpath="count(//regionBefore/block/*/lineArea)"/>
  61. <eval expected="72000" xpath="//regionAfter/@bpd"/>
  62. <eval expected="14400" xpath="//regionAfter/block/@bpd"/>
  63. <eval expected="14400" xpath="//regionAfter/block/block/@bpd"/>
  64. <eval expected="1" xpath="count(//regionAfter/block/*/lineArea)"/>
  65. </checks>
  66. </testcase>