Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

block_space-before_space-after_9.xml 2.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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 if the isLast case is properly handled. In this case the part list has to be
  21. reversed to do the conditionals removal, but then has to be reversed again to its natural order
  22. so space resolution rules 2 and 3 are properly performed.
  23. </p>
  24. </info>
  25. <fo>
  26. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
  27. <fo:layout-master-set>
  28. <fo:simple-page-master master-name="normal" page-width="5in" page-height="1in">
  29. <fo:region-body/>
  30. </fo:simple-page-master>
  31. </fo:layout-master-set>
  32. <fo:page-sequence master-reference="normal">
  33. <fo:flow flow-name="xsl-region-body">
  34. <fo:block space-before="11pt" space-after="11pt">
  35. <fo:block space-before="12pt" space-after="12pt">
  36. <fo:block space-before="13pt" space-after="13pt" border="solid 1pt">
  37. Apache FOP!
  38. </fo:block>
  39. </fo:block>
  40. </fo:block>
  41. </fo:flow>
  42. </fo:page-sequence>
  43. </fo:root>
  44. </fo>
  45. <checks>
  46. <element-list category="breaker">
  47. <box w="0"/>
  48. <penalty w="0" p="INF"/>
  49. <glue w="1000"/>
  50. <box w="14400"/>
  51. <box w="0"/>
  52. <penalty w="0" p="INF"/>
  53. <glue w="1000"/>
  54. <box w="0"/>
  55. <skip>3</skip>
  56. </element-list>
  57. <true xpath="not(boolean(//flow/block[1]/@space-before))"/>
  58. <true xpath="not(boolean(//flow/block[1]/@space-after))"/>
  59. <true xpath="not(boolean(//flow/block[1]/block[1]/@space-before))"/>
  60. <true xpath="not(boolean(//flow/block[1]/block[1]/@space-after))"/>
  61. <true xpath="not(boolean(//flow/block[1]/block[1]/block[1]/@space-before))"/>
  62. <true xpath="not(boolean(//flow/block[1]/block[1]/block[1]/@space-after))"/>
  63. <eval expected="1000 1000 1000 1000" xpath="//flow/block[1]/block[1]/block[1]/@bap"/>
  64. </checks>
  65. </testcase>