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.

region-body_column-count_span_3.xml 3.6KB

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 multi-column documents. Check that spanned section that are broken over
  21. to multiple pages still respect the span setting.
  22. </p>
  23. </info>
  24. <fo>
  25. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  26. <fo:layout-master-set>
  27. <fo:simple-page-master master-name="normal" page-width="320pt" page-height="4in" margin="20pt">
  28. <fo:region-body column-count="2" column-gap="10pt"/>
  29. </fo:simple-page-master>
  30. </fo:layout-master-set>
  31. <fo:page-sequence master-reference="normal">
  32. <fo:flow flow-name="xsl-region-body">
  33. <fo:block span="all">
  34. <fo:block space-after="1em">This line is spanned over all columns.</fo:block>
  35. <fo:block space-after="1em">This line is spanned over all columns.</fo:block>
  36. <fo:block space-after="1em">This line is spanned over all columns.</fo:block>
  37. <fo:block space-after="1em">This line is spanned over all columns.</fo:block>
  38. <fo:block space-after="1em">This line is spanned over all columns.</fo:block>
  39. <fo:block space-after="1em">This line is spanned over all columns.</fo:block>
  40. <fo:block space-after="1em">This line is spanned over all columns.</fo:block>
  41. <fo:block space-after="1em">This line is spanned over all columns.</fo:block>
  42. <fo:block space-after="1em">This line is spanned over all columns.</fo:block>
  43. <fo:block space-after="1em">This line is spanned over all columns.</fo:block>
  44. <fo:block space-after="1em">This line is spanned over all columns.</fo:block>
  45. <fo:block space-after="1em">This line is spanned over all columns.</fo:block>
  46. <fo:block space-after="1em">This line is spanned over all columns.</fo:block>
  47. <fo:block space-after="1em">This line is spanned over all columns.</fo:block>
  48. <fo:block space-after="1em">This line is spanned over all columns.</fo:block>
  49. <fo:block space-after="1em">This line is spanned over all columns.</fo:block>
  50. <fo:block space-after="1em">This line is spanned over all columns.</fo:block>
  51. <fo:block space-after="1em">This line is spanned over all columns.</fo:block>
  52. <fo:block space-after="1em">This line is spanned over all columns.</fo:block>
  53. <fo:block space-after="1em">This line is spanned over all columns.</fo:block>
  54. </fo:block>
  55. </fo:flow>
  56. </fo:page-sequence>
  57. </fo:root>
  58. </fo>
  59. <checks>
  60. <eval expected="3" xpath="count(//pageViewport)"/>
  61. <eval expected="9" xpath="count(//pageViewport[@nr=1]//lineArea)"/>
  62. <eval expected="9" xpath="count(//pageViewport[@nr=2]//lineArea)"/>
  63. <eval expected="2" xpath="count(//pageViewport[@nr=3]//lineArea)"/>
  64. </checks>
  65. </testcase>