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.

table_border_padding_5.xml 14KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  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 border and padding conditionality on table.
  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="letterOnePageFront" page-width="210mm" page-height="297mm" margin-bottom="4mm" margin-right="6mm" margin-top="5mm" margin-left="7mm">
  27. <fo:region-body margin-bottom="16mm" margin-right="59mm" margin-top="24mm" margin-left="6mm" region-name="letterOnePageBody"/>
  28. </fo:simple-page-master>
  29. <fo:simple-page-master master-name="letterOnePageRolloverLastNonBlank" page-width="210mm" page-height="297mm" margin-bottom="4mm" margin-right="6mm" margin-top="5mm" margin-left="7mm">
  30. <fo:region-body margin-bottom="20mm" background-color="yellow" margin-right="12mm" margin-top="15mm" margin-left="6mm" region-name="letterOnePageBody"/>
  31. </fo:simple-page-master>
  32. <fo:page-sequence-master master-name="condLetterOnePage">
  33. <fo:repeatable-page-master-alternatives>
  34. <fo:conditional-page-master-reference page-position="first" master-reference="letterOnePageFront"/>
  35. <fo:conditional-page-master-reference page-position="rest" master-reference="letterOnePageRolloverLastNonBlank"/>
  36. </fo:repeatable-page-master-alternatives>
  37. </fo:page-sequence-master>
  38. </fo:layout-master-set>
  39. <fo:page-sequence format="1" id="secondseq" initial-page-number="1" force-page-count="end-on-even" master-reference="condLetterOnePage">
  40. <fo:flow flow-name="letterOnePageBody">
  41. <fo:block>
  42. <fo:block-container height="25cm">
  43. <fo:block></fo:block>
  44. </fo:block-container>
  45. <fo:block font-size="13pt" line-height="14pt" margin-top="2mm" keep-with-next="always">Spread the cost with no extra charge </fo:block>
  46. <fo:block-container height="12cm">
  47. <fo:block></fo:block>
  48. </fo:block-container>
  49. <fo:table border-bottom-style="solid" border-bottom-width="0.5pt" border-left-style="solid" border-left-width="0.5pt" border-right-color="#7F7F7F" border-right-style="solid" border-right-width="0.5pt" border-top-style="solid" border-top-width="0.5pt" table-layout="fixed" width="100%">
  50. <fo:table-column column-width="proportional-column-width(1.14916111238796)" column-number="1"/>
  51. <fo:table-column column-width="proportional-column-width(30)" column-number="2"/>
  52. <fo:table-column column-width="proportional-column-width(1)" column-number="3"/>
  53. <fo:table-column column-width="proportional-column-width(11.33)" column-number="4"/>
  54. <fo:table-column column-width="proportional-column-width(11.33)" column-number="5"/>
  55. <fo:table-column column-width="proportional-column-width(11.33)" column-number="6"/>
  56. <fo:table-column column-width="proportional-column-width(11.33)" column-number="7"/>
  57. <fo:table-column column-width="proportional-column-width(11.200838887612)" column-number="8"/>
  58. <fo:table-column column-width="proportional-column-width(11.33)" column-number="9"/>
  59. <fo:table-body>
  60. <fo:table-row>
  61. <fo:table-cell>
  62. <fo:block>
  63. <fo:block font-size="10pt" line-height="12pt" space-before="1.5mm" space-before.conditionality="retain">
  64. <fo:leader/>
  65. </fo:block>
  66. </fo:block>
  67. </fo:table-cell>
  68. <fo:table-cell>
  69. <fo:block>
  70. <fo:block font-size="10pt" line-height="12pt" space-before="1.5mm" space-before.conditionality="retain">
  71. <fo:leader/>
  72. </fo:block>
  73. </fo:block>
  74. </fo:table-cell>
  75. <fo:table-cell>
  76. <fo:block>
  77. <fo:block>
  78. <fo:leader/>
  79. </fo:block>
  80. </fo:block>
  81. </fo:table-cell>
  82. <fo:table-cell border-left-style="solid" border-left-width="0.5pt">
  83. <fo:block>
  84. <fo:block font-size="10pt" line-height="12pt" space-before="1.5mm" space-before.conditionality="retain" text-align="center">Monthly/<fo:block/>Quarterly<fo:block/>Direct Debit</fo:block>
  85. </fo:block>
  86. </fo:table-cell>
  87. <fo:table-cell border-left-style="solid" border-left-width="0.5pt">
  88. <fo:block>
  89. <fo:block font-size="10pt" line-height="12pt" space-before="1.5mm" space-before.conditionality="retain" text-align="center">Quarterly Credit/Debit Card</fo:block>
  90. </fo:block>
  91. </fo:table-cell>
  92. <fo:table-cell border-left-style="solid" border-left-width="0.5pt">
  93. <fo:block>
  94. <fo:block font-size="10pt" line-height="12pt" space-before="1.5mm" space-before.conditionality="retain" text-align="center">Annual Direct<fo:block/>Debit</fo:block>
  95. </fo:block>
  96. </fo:table-cell>
  97. <fo:table-cell border-left-style="solid" border-left-width="0.5pt">
  98. <fo:block>
  99. <fo:block font-size="10pt" line-height="12pt" space-before="1.5mm" space-before.conditionality="retain" text-align="center">Annual Credit/<fo:block/>Debit Card</fo:block>
  100. </fo:block>
  101. </fo:table-cell>
  102. <fo:table-cell border-left-style="solid" border-left-width="0.5pt">
  103. <fo:block>
  104. <fo:block font-size="10pt" line-height="12pt" space-before="1.5mm" space-before.conditionality="retain" text-align="center">Credit/<fo:block/>Debit Card</fo:block>
  105. </fo:block>
  106. </fo:table-cell>
  107. <fo:table-cell border-left-style="solid" border-left-width="0.5pt">
  108. <fo:block>
  109. <fo:block font-size="10pt" line-height="12pt" space-before="1.5mm" space-before.conditionality="retain" text-align="center">Cheque</fo:block>
  110. </fo:block>
  111. </fo:table-cell>
  112. </fo:table-row>
  113. <fo:table-row>
  114. <fo:table-cell>
  115. <fo:block>
  116. <fo:block border-top-style="solid" border-top-width="0.25pt" font-family="ZapfDingbats" font-size="11pt" line-height="13pt" padding-top="2pt" space-before="1.5mm" space-before.conditionality="retain" text-align="right">
  117. <fo:leader/>
  118. </fo:block>
  119. </fo:block>
  120. </fo:table-cell>
  121. <fo:table-cell>
  122. <fo:block>
  123. <fo:block border-top-style="solid" border-top-width="0.25pt" font-size="10pt" line-height="12pt" padding-top="2pt" space-before="1.5mm" space-before.conditionality="retain">
  124. <fo:inline font-size="10pt" line-height="11pt" space-before="0.5mm">
  125. <fo:inline font-weight="bold">Free</fo:inline>
  126. </fo:inline> - we won't charge you any extra in the coming policy year</fo:block>
  127. </fo:block>
  128. </fo:table-cell>
  129. </fo:table-row>
  130. <fo:table-row height="0.714374989271164cm">
  131. <fo:table-cell>
  132. <fo:block>
  133. <fo:block border-top-style="solid" border-top-width="0.25pt" font-family="ZapfDingbats" font-size="11pt" line-height="13pt" padding-top="2pt" space-before="1.5mm" space-before.conditionality="retain" text-align="right">
  134. <fo:leader/>
  135. </fo:block>
  136. </fo:block>
  137. </fo:table-cell>
  138. <fo:table-cell>
  139. <fo:block>
  140. <fo:block border-top-style="solid" border-top-width="0.25pt" font-size="10pt" line-height="12pt" padding-top="2pt" space-before="1.5mm" space-before.conditionality="retain">
  141. <fo:inline font-size="10pt" line-height="11pt" space-before="0.5mm">
  142. <fo:inline font-weight="bold">Convenient</fo:inline>
  143. </fo:inline> - never miss payments</fo:block>
  144. </fo:block>
  145. </fo:table-cell>
  146. </fo:table-row>
  147. <fo:table-row>
  148. <fo:table-cell>
  149. <fo:block>
  150. <fo:block border-top-style="solid" border-top-width="0.25pt" font-family="ZapfDingbats" font-size="11pt" line-height="13pt" padding-top="2pt" space-before="1.5mm" space-before.conditionality="retain" text-align="right">
  151. <fo:leader/>
  152. </fo:block>
  153. </fo:block>
  154. </fo:table-cell>
  155. <fo:table-cell>
  156. <fo:block>
  157. <fo:block border-top-style="solid" border-top-width="0.25pt" font-size="10pt" line-height="12pt" padding-top="2pt" space-before="1.5mm" space-before.conditionality="retain">
  158. <fo:inline font-size="10pt" line-height="11pt" space-before="0.5mm">
  159. <fo:inline font-weight="bold">You're always covered</fo:inline>
  160. </fo:inline> - even if you're away at your renewal date</fo:block>
  161. </fo:block>
  162. </fo:table-cell>
  163. </fo:table-row>
  164. <fo:table-row>
  165. <fo:table-cell>
  166. <fo:block>
  167. <fo:block border-top-style="solid" border-top-width="0.25pt" font-family="ZapfDingbats" font-size="11pt" line-height="13pt" padding-top="2pt" space-before="1.5mm" space-before.conditionality="retain" text-align="right">
  168. <fo:leader/>
  169. </fo:block>
  170. </fo:block>
  171. </fo:table-cell>
  172. <fo:table-cell>
  173. <fo:block>
  174. <fo:block border-top-style="solid" border-top-width="0.25pt" font-size="10pt" line-height="12pt" padding-top="2pt" space-before="1.5mm" space-before.conditionality="retain">
  175. <fo:inline font-size="10pt" line-height="11pt" space-before="0.5mm">
  176. <fo:inline font-weight="bold">Extra security</fo:inline>
  177. </fo:inline> - payments are backed by the Direct Debit Guarantee</fo:block>
  178. </fo:block>
  179. </fo:table-cell>
  180. </fo:table-row>
  181. <fo:table-row>
  182. <fo:table-cell>
  183. <fo:block>
  184. <fo:block border-top-style="solid" border-top-width="0.25pt" font-family="ZapfDingbats" font-size="11pt" line-height="13pt" padding-top="2pt" space-before="1.5mm" space-before.conditionality="retain" text-align="right">
  185. <fo:leader/>
  186. </fo:block>
  187. </fo:block>
  188. </fo:table-cell>
  189. <fo:table-cell>
  190. <fo:block>
  191. <fo:block border-top-style="solid" border-top-width="0.25pt" font-size="10pt" line-height="12pt" padding-top="2pt" space-before="1.5mm" space-before.conditionality="retain">
  192. <fo:inline font-size="10pt" line-height="11pt" space-before="0.5mm">
  193. <fo:inline font-weight="bold">Easy to budget</fo:inline>
  194. </fo:inline> - spread the payments</fo:block>
  195. </fo:block>
  196. </fo:table-cell>
  197. <fo:table-cell>
  198. <fo:block>
  199. <fo:block border-top-style="solid" border-top-width="0.25pt" font-family="ZapfDingbats" font-size="11pt" line-height="13pt" padding-top="2pt" space-before="1.5mm" space-before.conditionality="retain" text-align="right">
  200. <fo:leader/>
  201. </fo:block>
  202. </fo:block>
  203. </fo:table-cell>
  204. </fo:table-row>
  205. </fo:table-body>
  206. </fo:table>
  207. <fo:block color="white" font-size="6pt">
  208. <fo:leader/>
  209. </fo:block>
  210. <fo:table keep-together.within-page="always" table-layout="fixed" width="100%">
  211. <fo:table-column column-width="proportional-column-width(23)" column-number="1"/>
  212. <fo:table-body>
  213. <fo:table-row>
  214. <fo:table-cell>
  215. <fo:block>
  216. <fo:block font-size="1pt" line-height="1pt">
  217. <fo:leader/>
  218. </fo:block>
  219. <fo:block font-size="11pt" line-height="13pt" space-before="1mm" space-before.conditionality="retain" text-align="left" background-color="red">
  220. <fo:external-graphic scaling="uniform" src="url(a)" width="2.9633333333333334cm" content-width="2.9633333333333334cm" height="1.3546666666666667cm" content-height="1.3546666666666667cm"/>
  221. </fo:block>
  222. </fo:block>
  223. </fo:table-cell>
  224. </fo:table-row>
  225. <fo:table-row>
  226. <fo:table-cell>
  227. <fo:block>
  228. <fo:block font-size="1pt" line-height="1pt">
  229. <fo:leader/>
  230. </fo:block>
  231. <fo:block font-size="11pt" line-height="13pt" space-before="1mm" space-before.conditionality="retain">As a 1234 customer, you are eligible to join our free membership programme called Possibilities. Possibilities brings you VIP experiences and exclusive access to events and great offers. For more information and to join Possibilities, simply speak to our advisers when you call to renew or visit 1234.co.uk/membership</fo:block>
  232. </fo:block>
  233. </fo:table-cell>
  234. </fo:table-row>
  235. </fo:table-body>
  236. </fo:table>
  237. </fo:block>
  238. </fo:flow>
  239. </fo:page-sequence>
  240. </fo:root>
  241. </fo>
  242. <checks>
  243. <eval expected="Possibilities." xpath="//pageViewport[2]//block[last()]//block[last()]/block[2]//word[15]"/>
  244. </checks>
  245. </testcase>