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.

float_8.xml 2.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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 floats.
  21. </p>
  22. </info>
  23. <fo>
  24. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:fox="http://xmlgraphics.apache.org/fop/extensions">
  25. <fo:layout-master-set>
  26. <fo:simple-page-master master-name="Page" page-height="11in" page-width="8.5in" margin="1in">
  27. <fo:region-body region-name="Body"/>
  28. </fo:simple-page-master>
  29. <fo:page-sequence-master master-name="PageSequence">
  30. <fo:repeatable-page-master-reference master-reference="Page"/>
  31. </fo:page-sequence-master>
  32. </fo:layout-master-set>
  33. <fo:page-sequence format="1" force-page-count="auto" initial-page-number="auto" master-reference="PageSequence" id="TH_LastPage">
  34. <fo:flow flow-name="Body">
  35. <fo:block>
  36. <fo:float float="right">
  37. <fo:block id="infloat">
  38. <fo:table table-layout="fixed" width="3.25in" id="table">
  39. <fo:table-column column-width="1in" column-number="1"/>
  40. <fo:table-column column-width="2.25in" column-number="2"/>
  41. <fo:table-body>
  42. <fo:table-row>
  43. <fo:table-cell number-columns-spanned="2" border-style="solid">
  44. <fo:block>YOUR POLICY INFORMATION</fo:block>
  45. </fo:table-cell>
  46. </fo:table-row>
  47. </fo:table-body>
  48. </fo:table>
  49. </fo:block>
  50. </fo:float>
  51. </fo:block>
  52. <fo:block id="outfloat">
  53. <fo:inline font-size="12pt">
  54. <fo:inline>Your bank has declined your payment</fo:inline>
  55. </fo:inline>
  56. </fo:block>
  57. </fo:flow>
  58. </fo:page-sequence>
  59. </fo:root>
  60. </fo>
  61. <checks>
  62. <eval expected="234000" xpath="//pageViewport[1]/page/regionViewport[1]//block[2]/@ipd" />
  63. <eval expected="234000" xpath="//pageViewport[1]/page/regionViewport[1]//block[4]/@ipd" />
  64. </checks>
  65. </testcase>