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.

borders.fo 43KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  3. <fo:layout-master-set>
  4. <fo:simple-page-master master-name="first"
  5. margin-right="1.5cm"
  6. margin-left="1.5cm"
  7. margin-bottom="2cm"
  8. margin-top="1cm"
  9. page-width="21cm"
  10. page-height="29.7cm">
  11. <fo:region-before extent="1cm"/>
  12. <fo:region-body margin-top="1cm"/>
  13. <fo:region-after extent="1.5cm"/>
  14. </fo:simple-page-master>
  15. </fo:layout-master-set>
  16. <fo:page-sequence master-reference="first">
  17. <fo:static-content flow-name="xsl-region-before">
  18. <fo:block line-height="14pt" font-size="10pt"
  19. text-align="end">table examples</fo:block>
  20. </fo:static-content>
  21. <fo:static-content flow-name="xsl-region-after">
  22. <fo:block line-height="14pt" font-size="10pt"
  23. text-align="end">Page <fo:page-number/></fo:block>
  24. </fo:static-content>
  25. <fo:flow flow-name="xsl-region-body">
  26. <fo:block space-before.optimum="3pt" space-after.optimum="15pt">
  27. Table 1: cell borders
  28. </fo:block>
  29. <fo:table border-collapse="separate">
  30. <fo:table-column column-width="3cm"/>
  31. <fo:table-column column-width="3cm"/>
  32. <fo:table-column column-width="3cm"/>
  33. <fo:table-column column-width="3cm"/>
  34. <fo:table-column column-width="3cm"/>
  35. <fo:table-column column-width="2cm"/>
  36. <fo:table-body>
  37. <fo:table-row>
  38. <fo:table-cell border-left-color="green" border-left-width="0.5pt" border-left-style="solid">
  39. <fo:block text-align="center">
  40. green left
  41. </fo:block>
  42. </fo:table-cell>
  43. <fo:table-cell border-top-color="red" border-top-width="0.5pt" border-top-style="solid">
  44. <fo:block text-align="center">
  45. red top
  46. </fo:block>
  47. </fo:table-cell>
  48. <fo:table-cell border-right-color="blue" border-right-width="0.5pt" border-right-style="solid">
  49. <fo:block text-align="center">
  50. blue right
  51. </fo:block>
  52. </fo:table-cell>
  53. <fo:table-cell border-bottom-color="yellow" border-bottom-width="0.5pt" border-bottom-style="solid">
  54. <fo:block text-align="center">
  55. yellow bottom
  56. </fo:block>
  57. </fo:table-cell>
  58. <fo:table-cell
  59. border-left-color="green" border-left-width="0.5pt" border-left-style="solid"
  60. border-top-color="red" border-top-width="0.5pt" border-top-style="solid"
  61. border-right-color="blue" border-right-width="0.5pt" border-right-style="solid"
  62. border-bottom-color="yellow" border-bottom-width="0.5pt" border-bottom-style="solid">
  63. <fo:block text-align="center">
  64. all
  65. </fo:block>
  66. </fo:table-cell>
  67. <fo:table-cell>
  68. <fo:block text-align="center">
  69. text for an extra line in the table row
  70. </fo:block>
  71. </fo:table-cell>
  72. </fo:table-row>
  73. <fo:table-row>
  74. <fo:table-cell border-color="green" border-left-width="2pt" border-style="solid">
  75. <fo:block text-align="center">
  76. 2pt
  77. </fo:block>
  78. </fo:table-cell>
  79. <fo:table-cell border-top-color="red" border-top-width="2pt" border-top-style="dashed">
  80. <fo:block text-align="center">
  81. 2pt
  82. </fo:block>
  83. </fo:table-cell>
  84. <fo:table-cell border-right-color="blue" border-right-width="2pt" border-right-style="dotted">
  85. <fo:block text-align="center">
  86. 2pt
  87. </fo:block>
  88. </fo:table-cell>
  89. <fo:table-cell border-bottom-color="yellow" border-bottom-width="2pt" border-bottom-style="double">
  90. <fo:block text-align="center">
  91. 2pt
  92. </fo:block>
  93. </fo:table-cell>
  94. <fo:table-cell
  95. border-left-color="green" border-left-width="2pt" border-left-style="solid"
  96. border-top-color="red" border-top-width="2pt" border-top-style="dashed"
  97. border-right-color="blue" border-right-width="2pt" border-right-style="double"
  98. border-bottom-color="yellow" border-bottom-width="2pt" border-bottom-style="dotted">
  99. <fo:block text-align="center">
  100. 2pt
  101. </fo:block>
  102. </fo:table-cell>
  103. <fo:table-cell>
  104. <fo:block text-align="center">
  105. text for an extra line in the table row
  106. </fo:block>
  107. </fo:table-cell>
  108. </fo:table-row>
  109. <fo:table-row>
  110. <fo:table-cell border-left-color="green" border-left-width="10pt" border-left-style="solid">
  111. <fo:block text-align="center">
  112. 10pt
  113. </fo:block>
  114. </fo:table-cell>
  115. <fo:table-cell border-top-color="red" border-top-width="10pt" border-top-style="solid">
  116. <fo:block text-align="center">
  117. 10pt
  118. </fo:block>
  119. </fo:table-cell>
  120. <fo:table-cell border-right-color="blue" border-right-width="10pt" border-right-style="solid">
  121. <fo:block text-align="center">
  122. 10pt
  123. </fo:block>
  124. </fo:table-cell>
  125. <fo:table-cell border-bottom-color="yellow" border-bottom-width="10pt" border-bottom-style="solid">
  126. <fo:block text-align="center">
  127. 10pt
  128. </fo:block>
  129. </fo:table-cell>
  130. <fo:table-cell
  131. border-left-color="green" border-left-width="2pt" border-left-style="solid"
  132. border-top-color="red" border-top-width="4pt" border-top-style="solid"
  133. border-right-color="blue" border-right-width="8pt" border-right-style="solid"
  134. border-bottom-color="yellow" border-bottom-width="10pt" border-bottom-style="solid">
  135. <fo:block text-align="center">
  136. 2pt - 10pt
  137. </fo:block>
  138. </fo:table-cell>
  139. <fo:table-cell>
  140. <fo:block text-align="center">
  141. text for an extra line in the table row
  142. </fo:block>
  143. </fo:table-cell>
  144. </fo:table-row>
  145. <fo:table-row>
  146. <fo:table-cell border-color="green" border-width="0.5pt" border-style="solid">
  147. <fo:block text-align="center">
  148. 0.5pt
  149. </fo:block>
  150. </fo:table-cell>
  151. <fo:table-cell border-color="red" border-width="1pt" border-style="solid">
  152. <fo:block text-align="center">
  153. 1pt
  154. </fo:block>
  155. </fo:table-cell>
  156. <fo:table-cell border-color="blue" border-width="2pt" border-style="solid">
  157. <fo:block text-align="center">
  158. 2pt
  159. </fo:block>
  160. </fo:table-cell>
  161. <fo:table-cell border-color="yellow" border-width="10pt" border-style="solid">
  162. <fo:block text-align="center">
  163. 10pt
  164. </fo:block>
  165. </fo:table-cell>
  166. <fo:table-cell border-color="yellow" border-width="20pt" border-style="solid">
  167. <fo:block text-align="center">
  168. 20pt
  169. </fo:block>
  170. </fo:table-cell>
  171. <fo:table-cell>
  172. <fo:block text-align="center">
  173. text for an extra line in the table row
  174. </fo:block>
  175. </fo:table-cell>
  176. </fo:table-row>
  177. </fo:table-body>
  178. </fo:table>
  179. <fo:block space-before.optimum="30pt" space-after.optimum="15pt">
  180. Table 2: row borders
  181. </fo:block>
  182. <fo:table border-collapse="collapse">
  183. <fo:table-column column-width="3cm"/>
  184. <fo:table-column column-width="3cm"/>
  185. <fo:table-column column-width="3cm"/>
  186. <fo:table-column column-width="3cm"/>
  187. <fo:table-body>
  188. <fo:table-row border-left-color="green" border-left-width="0.5pt" border-left-style="solid">
  189. <fo:table-cell>
  190. <fo:block text-align="center">
  191. row with
  192. </fo:block>
  193. </fo:table-cell>
  194. <fo:table-cell>
  195. <fo:block text-align="center">
  196. green left
  197. </fo:block>
  198. </fo:table-cell>
  199. <fo:table-cell>
  200. <fo:block text-align="center">
  201. border
  202. </fo:block>
  203. </fo:table-cell>
  204. <fo:table-cell>
  205. <fo:block text-align="center">
  206. text for an extra line in the table row
  207. </fo:block>
  208. </fo:table-cell>
  209. </fo:table-row>
  210. <fo:table-row border-top-color="red" border-top-width="0.5pt" border-top-style="solid">
  211. <fo:table-cell>
  212. <fo:block text-align="center">
  213. row with
  214. </fo:block>
  215. </fo:table-cell>
  216. <fo:table-cell>
  217. <fo:block text-align="center">
  218. red top
  219. </fo:block>
  220. </fo:table-cell>
  221. <fo:table-cell>
  222. <fo:block text-align="center">
  223. border
  224. </fo:block>
  225. </fo:table-cell>
  226. <fo:table-cell>
  227. <fo:block text-align="center">
  228. text for an extra line in the table row
  229. </fo:block>
  230. </fo:table-cell>
  231. </fo:table-row>
  232. <fo:table-row border-right-color="blue" border-right-width="0.5pt" border-right-style="solid">
  233. <fo:table-cell>
  234. <fo:block text-align="center">
  235. row with
  236. </fo:block>
  237. </fo:table-cell>
  238. <fo:table-cell>
  239. <fo:block text-align="center">
  240. blue right
  241. </fo:block>
  242. </fo:table-cell>
  243. <fo:table-cell>
  244. <fo:block text-align="center">
  245. border
  246. </fo:block>
  247. </fo:table-cell>
  248. <fo:table-cell>
  249. <fo:block text-align="center">
  250. text for an extra line in the table row
  251. </fo:block>
  252. </fo:table-cell>
  253. </fo:table-row>
  254. <fo:table-row border-bottom-color="yellow" border-bottom-width="0.5pt" border-bottom-style="solid">
  255. <fo:table-cell>
  256. <fo:block text-align="center">
  257. row with
  258. </fo:block>
  259. </fo:table-cell>
  260. <fo:table-cell>
  261. <fo:block text-align="center">
  262. yellow bottom
  263. </fo:block>
  264. </fo:table-cell>
  265. <fo:table-cell>
  266. <fo:block text-align="center">
  267. border
  268. </fo:block>
  269. </fo:table-cell>
  270. <fo:table-cell>
  271. <fo:block text-align="center">
  272. text for an extra line in the table row
  273. </fo:block>
  274. </fo:table-cell>
  275. </fo:table-row>
  276. <fo:table-row border-color="purple" border-width="0.5pt" border-style="solid">
  277. <fo:table-cell>
  278. <fo:block text-align="center">
  279. row with
  280. </fo:block>
  281. </fo:table-cell>
  282. <fo:table-cell>
  283. <fo:block text-align="center">
  284. all
  285. </fo:block>
  286. </fo:table-cell>
  287. <fo:table-cell>
  288. <fo:block text-align="center">
  289. border
  290. </fo:block>
  291. </fo:table-cell>
  292. <fo:table-cell>
  293. <fo:block text-align="center">
  294. text for an extra line in the table row
  295. </fo:block>
  296. </fo:table-cell>
  297. </fo:table-row>
  298. </fo:table-body>
  299. </fo:table>
  300. <fo:block space-before.optimum="30pt" space-after.optimum="15pt">
  301. Table 3: column borders
  302. </fo:block>
  303. <fo:table border-collapse="collapse">
  304. <fo:table-column column-width="3cm" border-left-color="green" border-left-width="0.5pt" border-left-style="solid"/>
  305. <fo:table-column column-width="3cm" border-top-color="red" border-top-width="0.5pt" border-top-style="solid"/>
  306. <fo:table-column column-width="3cm" border-right-color="blue" border-right-width="0.5pt" border-right-style="solid"/>
  307. <fo:table-column column-width="3cm" border-bottom-color="yellow" border-bottom-width="0.5pt" border-bottom-style="solid"/>
  308. <fo:table-column column-width="3cm" border-color="orange" border-width="0.5pt" border-style="solid"/>
  309. <fo:table-body>
  310. <fo:table-row>
  311. <fo:table-cell>
  312. <fo:block text-align="center">
  313. table columns
  314. </fo:block>
  315. </fo:table-cell>
  316. <fo:table-cell>
  317. <fo:block text-align="center">
  318. with
  319. </fo:block>
  320. </fo:table-cell>
  321. <fo:table-cell>
  322. <fo:block text-align="center">
  323. different
  324. </fo:block>
  325. </fo:table-cell>
  326. <fo:table-cell>
  327. <fo:block text-align="center">
  328. borders
  329. </fo:block>
  330. </fo:table-cell>
  331. <fo:table-cell>
  332. <fo:block text-align="center">
  333. text for an extra line in the table row
  334. </fo:block>
  335. </fo:table-cell>
  336. </fo:table-row>
  337. <fo:table-row>
  338. <fo:table-cell>
  339. <fo:block text-align="center">
  340. extra
  341. </fo:block>
  342. </fo:table-cell>
  343. <fo:table-cell>
  344. <fo:block text-align="center">
  345. table row
  346. </fo:block>
  347. </fo:table-cell>
  348. <fo:table-cell>
  349. <fo:block text-align="center">
  350. </fo:block>
  351. </fo:table-cell>
  352. <fo:table-cell>
  353. <fo:block text-align="center">
  354. </fo:block>
  355. </fo:table-cell>
  356. <fo:table-cell>
  357. <fo:block text-align="center">
  358. text for an extra line in the table row
  359. </fo:block>
  360. </fo:table-cell>
  361. </fo:table-row>
  362. </fo:table-body>
  363. </fo:table>
  364. <fo:block space-before.optimum="30pt" space-after.optimum="15pt">
  365. Table 4: column borders over page
  366. </fo:block>
  367. <fo:table border-collapse="collapse">
  368. <fo:table-column column-width="3cm" border-left-color="green" border-left-width="0.5pt" border-left-style="solid"/>
  369. <fo:table-column column-width="3cm" border-top-color="red" border-top-width="0.5pt" border-top-style="solid"/>
  370. <fo:table-column column-width="3cm" border-right-color="blue" border-right-width="0.5pt" border-right-style="solid"/>
  371. <fo:table-column column-width="3cm" border-bottom-color="yellow" border-bottom-width="0.5pt" border-bottom-style="solid"/>
  372. <fo:table-column column-width="3cm" border-color="orange" border-width="0.5pt" border-style="solid"/>
  373. <fo:table-body>
  374. <fo:table-row>
  375. <fo:table-cell>
  376. <fo:block text-align="center">
  377. table columns
  378. </fo:block>
  379. </fo:table-cell>
  380. <fo:table-cell>
  381. <fo:block text-align="center">
  382. with
  383. </fo:block>
  384. </fo:table-cell>
  385. <fo:table-cell>
  386. <fo:block text-align="center">
  387. different
  388. </fo:block>
  389. </fo:table-cell>
  390. <fo:table-cell>
  391. <fo:block text-align="center">
  392. borders
  393. </fo:block>
  394. </fo:table-cell>
  395. <fo:table-cell>
  396. <fo:block text-align="center">
  397. text for an extra line in the table row
  398. </fo:block>
  399. </fo:table-cell>
  400. </fo:table-row>
  401. <fo:table-row>
  402. <fo:table-cell>
  403. <fo:block text-align="center">
  404. extra
  405. </fo:block>
  406. </fo:table-cell>
  407. <fo:table-cell>
  408. <fo:block text-align="center">
  409. table row
  410. </fo:block>
  411. </fo:table-cell>
  412. <fo:table-cell>
  413. <fo:block text-align="center">
  414. </fo:block>
  415. </fo:table-cell>
  416. <fo:table-cell>
  417. <fo:block text-align="center">
  418. </fo:block>
  419. </fo:table-cell>
  420. <fo:table-cell>
  421. <fo:block text-align="center">
  422. text for an extra line in the table row
  423. </fo:block>
  424. </fo:table-cell>
  425. </fo:table-row>
  426. </fo:table-body>
  427. </fo:table>
  428. <fo:block space-before.optimum="30pt" space-after.optimum="15pt">
  429. Table 5: body borders
  430. </fo:block>
  431. <fo:table border-collapse="separate">
  432. <fo:table-column column-width="3cm"/>
  433. <fo:table-column column-width="3cm"/>
  434. <fo:table-column column-width="3cm"/>
  435. <fo:table-column column-width="3cm"/>
  436. <fo:table-column column-width="3cm"/>
  437. <fo:table-body border-left-color="green" border-left-width="0.5pt" border-left-style="solid">
  438. <fo:table-row>
  439. <fo:table-cell>
  440. <fo:block text-align="center">
  441. body with
  442. </fo:block>
  443. </fo:table-cell>
  444. <fo:table-cell>
  445. <fo:block text-align="center">
  446. left border
  447. </fo:block>
  448. </fo:table-cell>
  449. <fo:table-cell>
  450. <fo:block text-align="center">
  451. </fo:block>
  452. </fo:table-cell>
  453. <fo:table-cell>
  454. <fo:block text-align="center">
  455. </fo:block>
  456. </fo:table-cell>
  457. <fo:table-cell>
  458. <fo:block text-align="center">
  459. text for an extra line in the table row
  460. </fo:block>
  461. </fo:table-cell>
  462. </fo:table-row>
  463. </fo:table-body>
  464. </fo:table>
  465. <fo:table border-collapse="separate">
  466. <fo:table-column column-width="3cm"/>
  467. <fo:table-column column-width="3cm"/>
  468. <fo:table-column column-width="3cm"/>
  469. <fo:table-column column-width="3cm"/>
  470. <fo:table-column column-width="3cm"/>
  471. <fo:table-body border-top-color="red" border-top-width="0.5pt" border-top-style="solid">
  472. <fo:table-row>
  473. <fo:table-cell>
  474. <fo:block text-align="center">
  475. body with
  476. </fo:block>
  477. </fo:table-cell>
  478. <fo:table-cell>
  479. <fo:block text-align="center">
  480. top border
  481. </fo:block>
  482. </fo:table-cell>
  483. <fo:table-cell>
  484. <fo:block text-align="center">
  485. </fo:block>
  486. </fo:table-cell>
  487. <fo:table-cell>
  488. <fo:block text-align="center">
  489. </fo:block>
  490. </fo:table-cell>
  491. <fo:table-cell>
  492. <fo:block text-align="center">
  493. text for an extra line in the table row
  494. </fo:block>
  495. </fo:table-cell>
  496. </fo:table-row>
  497. </fo:table-body>
  498. </fo:table>
  499. <fo:table border-collapse="separate">
  500. <fo:table-column column-width="3cm"/>
  501. <fo:table-column column-width="3cm"/>
  502. <fo:table-column column-width="3cm"/>
  503. <fo:table-column column-width="3cm"/>
  504. <fo:table-column column-width="3cm"/>
  505. <fo:table-body border-right-color="blue" border-right-width="0.5pt" border-right-style="solid">
  506. <fo:table-row>
  507. <fo:table-cell>
  508. <fo:block text-align="center">
  509. body with
  510. </fo:block>
  511. </fo:table-cell>
  512. <fo:table-cell>
  513. <fo:block text-align="center">
  514. right border
  515. </fo:block>
  516. </fo:table-cell>
  517. <fo:table-cell>
  518. <fo:block text-align="center">
  519. </fo:block>
  520. </fo:table-cell>
  521. <fo:table-cell>
  522. <fo:block text-align="center">
  523. </fo:block>
  524. </fo:table-cell>
  525. <fo:table-cell>
  526. <fo:block text-align="center">
  527. text for an extra line in the table row
  528. </fo:block>
  529. </fo:table-cell>
  530. </fo:table-row>
  531. </fo:table-body>
  532. </fo:table>
  533. <fo:table border-collapse="separate">
  534. <fo:table-column column-width="3cm"/>
  535. <fo:table-column column-width="3cm"/>
  536. <fo:table-column column-width="3cm"/>
  537. <fo:table-column column-width="3cm"/>
  538. <fo:table-column column-width="3cm"/>
  539. <fo:table-body border-bottom-color="yellow" border-bottom-width="0.5pt" border-bottom-style="solid">
  540. <fo:table-row>
  541. <fo:table-cell>
  542. <fo:block text-align="center">
  543. body with
  544. </fo:block>
  545. </fo:table-cell>
  546. <fo:table-cell>
  547. <fo:block text-align="center">
  548. bottom border
  549. </fo:block>
  550. </fo:table-cell>
  551. <fo:table-cell>
  552. <fo:block text-align="center">
  553. </fo:block>
  554. </fo:table-cell>
  555. <fo:table-cell>
  556. <fo:block text-align="center">
  557. </fo:block>
  558. </fo:table-cell>
  559. <fo:table-cell>
  560. <fo:block text-align="center">
  561. text for an extra line in the table row
  562. </fo:block>
  563. </fo:table-cell>
  564. </fo:table-row>
  565. </fo:table-body>
  566. </fo:table>
  567. <fo:table border-collapse="separate">
  568. <fo:table-column column-width="3cm"/>
  569. <fo:table-column column-width="3cm"/>
  570. <fo:table-column column-width="3cm"/>
  571. <fo:table-column column-width="3cm"/>
  572. <fo:table-column column-width="3cm"/>
  573. <fo:table-body border-color="orange" border-width="0.5pt" border-style="solid">
  574. <fo:table-row>
  575. <fo:table-cell>
  576. <fo:block text-align="center">
  577. body with
  578. </fo:block>
  579. </fo:table-cell>
  580. <fo:table-cell>
  581. <fo:block text-align="center">
  582. all border
  583. </fo:block>
  584. </fo:table-cell>
  585. <fo:table-cell>
  586. <fo:block text-align="center">
  587. </fo:block>
  588. </fo:table-cell>
  589. <fo:table-cell>
  590. <fo:block text-align="center">
  591. </fo:block>
  592. </fo:table-cell>
  593. <fo:table-cell>
  594. <fo:block text-align="center">
  595. text for an extra line in the table row
  596. </fo:block>
  597. </fo:table-cell>
  598. </fo:table-row>
  599. </fo:table-body>
  600. </fo:table>
  601. <fo:block space-before.optimum="30pt" space-after.optimum="15pt">
  602. Table 6: table borders
  603. </fo:block>
  604. <fo:table border-left-color="green" border-left-width="0.5pt" border-left-style="solid"
  605. border-collapse="separate">
  606. <fo:table-column column-width="3cm"/>
  607. <fo:table-column column-width="3cm"/>
  608. <fo:table-column column-width="3cm"/>
  609. <fo:table-column column-width="3cm"/>
  610. <fo:table-column column-width="3cm"/>
  611. <fo:table-body>
  612. <fo:table-row>
  613. <fo:table-cell>
  614. <fo:block text-align="center">
  615. table with
  616. </fo:block>
  617. </fo:table-cell>
  618. <fo:table-cell>
  619. <fo:block text-align="center">
  620. left border
  621. </fo:block>
  622. </fo:table-cell>
  623. <fo:table-cell>
  624. <fo:block text-align="center">
  625. </fo:block>
  626. </fo:table-cell>
  627. <fo:table-cell>
  628. <fo:block text-align="center">
  629. </fo:block>
  630. </fo:table-cell>
  631. <fo:table-cell>
  632. <fo:block text-align="center">
  633. text for an extra line in the table row
  634. </fo:block>
  635. </fo:table-cell>
  636. </fo:table-row>
  637. </fo:table-body>
  638. </fo:table>
  639. <fo:table border-top-color="red" border-top-width="0.5pt" border-top-style="solid" border-collapse="separate">
  640. <fo:table-column column-width="3cm"/>
  641. <fo:table-column column-width="3cm"/>
  642. <fo:table-column column-width="3cm"/>
  643. <fo:table-column column-width="3cm"/>
  644. <fo:table-column column-width="3cm"/>
  645. <fo:table-body>
  646. <fo:table-row>
  647. <fo:table-cell>
  648. <fo:block text-align="center">
  649. table with
  650. </fo:block>
  651. </fo:table-cell>
  652. <fo:table-cell>
  653. <fo:block text-align="center">
  654. top border
  655. </fo:block>
  656. </fo:table-cell>
  657. <fo:table-cell>
  658. <fo:block text-align="center">
  659. </fo:block>
  660. </fo:table-cell>
  661. <fo:table-cell>
  662. <fo:block text-align="center">
  663. </fo:block>
  664. </fo:table-cell>
  665. <fo:table-cell>
  666. <fo:block text-align="center">
  667. text for an extra line in the table row
  668. </fo:block>
  669. </fo:table-cell>
  670. </fo:table-row>
  671. </fo:table-body>
  672. </fo:table>
  673. <fo:table border-right-color="blue" border-right-width="0.5pt" border-right-style="solid" border-collapse="separate">
  674. <fo:table-column column-width="3cm"/>
  675. <fo:table-column column-width="3cm"/>
  676. <fo:table-column column-width="3cm"/>
  677. <fo:table-column column-width="3cm"/>
  678. <fo:table-column column-width="3cm"/>
  679. <fo:table-body>
  680. <fo:table-row>
  681. <fo:table-cell>
  682. <fo:block text-align="center">
  683. table with
  684. </fo:block>
  685. </fo:table-cell>
  686. <fo:table-cell>
  687. <fo:block text-align="center">
  688. right border
  689. </fo:block>
  690. </fo:table-cell>
  691. <fo:table-cell>
  692. <fo:block text-align="center">
  693. </fo:block>
  694. </fo:table-cell>
  695. <fo:table-cell>
  696. <fo:block text-align="center">
  697. </fo:block>
  698. </fo:table-cell>
  699. <fo:table-cell>
  700. <fo:block text-align="center">
  701. text for an extra line in the table row
  702. </fo:block>
  703. </fo:table-cell>
  704. </fo:table-row>
  705. </fo:table-body>
  706. </fo:table>
  707. <fo:table border-bottom-color="yellow" border-bottom-width="0.5pt" border-bottom-style="solid" border-collapse="separate">
  708. <fo:table-column column-width="3cm"/>
  709. <fo:table-column column-width="3cm"/>
  710. <fo:table-column column-width="3cm"/>
  711. <fo:table-column column-width="3cm"/>
  712. <fo:table-column column-width="3cm"/>
  713. <fo:table-body>
  714. <fo:table-row>
  715. <fo:table-cell>
  716. <fo:block text-align="center">
  717. table with
  718. </fo:block>
  719. </fo:table-cell>
  720. <fo:table-cell>
  721. <fo:block text-align="center">
  722. bottom border
  723. </fo:block>
  724. </fo:table-cell>
  725. <fo:table-cell>
  726. <fo:block text-align="center">
  727. </fo:block>
  728. </fo:table-cell>
  729. <fo:table-cell>
  730. <fo:block text-align="center">
  731. </fo:block>
  732. </fo:table-cell>
  733. <fo:table-cell>
  734. <fo:block text-align="center">
  735. text for an extra line in the table row
  736. </fo:block>
  737. </fo:table-cell>
  738. </fo:table-row>
  739. </fo:table-body>
  740. </fo:table>
  741. <fo:table border-color="orange" border-width="0.5pt" border-style="solid" border-collapse="separate">
  742. <fo:table-column column-width="3cm"/>
  743. <fo:table-column column-width="3cm"/>
  744. <fo:table-column column-width="3cm"/>
  745. <fo:table-column column-width="3cm"/>
  746. <fo:table-column column-width="3cm"/>
  747. <fo:table-body>
  748. <fo:table-row>
  749. <fo:table-cell>
  750. <fo:block text-align="center">
  751. table with
  752. </fo:block>
  753. </fo:table-cell>
  754. <fo:table-cell>
  755. <fo:block text-align="center">
  756. all border
  757. </fo:block>
  758. </fo:table-cell>
  759. <fo:table-cell>
  760. <fo:block text-align="center">
  761. </fo:block>
  762. </fo:table-cell>
  763. <fo:table-cell>
  764. <fo:block text-align="center">
  765. </fo:block>
  766. </fo:table-cell>
  767. <fo:table-cell>
  768. <fo:block text-align="center">
  769. text for an extra line in the table row
  770. </fo:block>
  771. </fo:table-cell>
  772. </fo:table-row>
  773. </fo:table-body>
  774. </fo:table>
  775. <fo:block space-before.optimum="30pt" space-after.optimum="15pt">
  776. Table 7: combinations
  777. </fo:block>
  778. <fo:table border-left-color="green" border-left-width="0.5pt" border-left-style="solid" border-collapse="collapse">
  779. <fo:table-column column-width="2.5cm"/>
  780. <fo:table-column column-width="2.5cm" border-left-color="green" border-left-width="0.5pt" border-left-style="solid"/>
  781. <fo:table-column column-width="2.5cm" border-top-color="red" border-top-width="0.5pt" border-top-style="solid"/>
  782. <fo:table-column column-width="2.5cm" border-right-color="blue" border-right-width="0.5pt" border-right-style="solid"/>
  783. <fo:table-column column-width="2.5cm" border-bottom-color="yellow" border-bottom-width="0.5pt" border-bottom-style="solid"/>
  784. <fo:table-column column-width="2.5cm" border-color="orange" border-width="0.5pt" border-style="solid"/>
  785. <fo:table-body border-color="aqua" border-width="0.5pt" border-style="solid">
  786. <fo:table-row border-left-color="green" border-left-width="0.5pt" border-left-style="solid">
  787. <fo:table-cell border-left-color="green" border-left-width="0.5pt" border-left-style="solid">
  788. <fo:block text-align="center">
  789. a
  790. </fo:block>
  791. </fo:table-cell>
  792. <fo:table-cell border-top-color="red" border-top-width="0.5pt" border-top-style="solid">
  793. <fo:block text-align="center">
  794. b
  795. </fo:block>
  796. </fo:table-cell>
  797. <fo:table-cell border-right-color="blue" border-right-width="0.5pt" border-right-style="solid">
  798. <fo:block text-align="center">
  799. c
  800. </fo:block>
  801. </fo:table-cell>
  802. <fo:table-cell border-bottom-color="yellow" border-bottom-width="0.5pt" border-bottom-style="solid">
  803. <fo:block text-align="center">
  804. d
  805. </fo:block>
  806. </fo:table-cell>
  807. <fo:table-cell border-color="orange" border-width="0.5pt" border-style="solid">
  808. <fo:block text-align="center">
  809. e
  810. </fo:block>
  811. </fo:table-cell>
  812. <fo:table-cell>
  813. <fo:block text-align="center">
  814. text for an extra line in the table row
  815. </fo:block>
  816. </fo:table-cell>
  817. </fo:table-row>
  818. <fo:table-row border-top-color="red" border-top-width="0.5pt" border-top-style="solid">
  819. <fo:table-cell border-left-color="green" border-left-width="0.5pt" border-left-style="solid">
  820. <fo:block text-align="center">
  821. a
  822. </fo:block>
  823. </fo:table-cell>
  824. <fo:table-cell border-top-color="red" border-top-width="0.5pt" border-top-style="solid">
  825. <fo:block text-align="center">
  826. b
  827. </fo:block>
  828. </fo:table-cell>
  829. <fo:table-cell border-right-color="blue" border-right-width="0.5pt" border-right-style="solid">
  830. <fo:block text-align="center">
  831. c
  832. </fo:block>
  833. </fo:table-cell>
  834. <fo:table-cell border-bottom-color="yellow" border-bottom-width="0.5pt" border-bottom-style="solid">
  835. <fo:block text-align="center">
  836. d
  837. </fo:block>
  838. </fo:table-cell>
  839. <fo:table-cell border-color="orange" border-width="0.5pt" border-style="solid">
  840. <fo:block text-align="center">
  841. e
  842. </fo:block>
  843. </fo:table-cell>
  844. <fo:table-cell>
  845. <fo:block text-align="center">
  846. text for an extra line in the table row
  847. </fo:block>
  848. </fo:table-cell>
  849. </fo:table-row>
  850. <fo:table-row border-right-color="blue" border-right-width="0.5pt" border-right-style="solid">
  851. <fo:table-cell border-left-color="green" border-left-width="0.5pt" border-left-style="solid">
  852. <fo:block text-align="center">
  853. a
  854. </fo:block>
  855. </fo:table-cell>
  856. <fo:table-cell border-top-color="red" border-top-width="0.5pt" border-top-style="solid">
  857. <fo:block text-align="center">
  858. b
  859. </fo:block>
  860. </fo:table-cell>
  861. <fo:table-cell border-right-color="blue" border-right-width="0.5pt" border-right-style="solid">
  862. <fo:block text-align="center">
  863. c
  864. </fo:block>
  865. </fo:table-cell>
  866. <fo:table-cell border-bottom-color="yellow" border-bottom-width="0.5pt" border-bottom-style="solid">
  867. <fo:block text-align="center">
  868. d
  869. </fo:block>
  870. </fo:table-cell>
  871. <fo:table-cell border-color="orange" border-width="0.5pt" border-style="solid">
  872. <fo:block text-align="center">
  873. e
  874. </fo:block>
  875. </fo:table-cell>
  876. <fo:table-cell>
  877. <fo:block text-align="center">
  878. text for an extra line in the table row
  879. </fo:block>
  880. </fo:table-cell>
  881. </fo:table-row>
  882. <fo:table-row border-bottom-color="yellow" border-bottom-width="0.5pt" border-bottom-style="solid">
  883. <fo:table-cell border-left-color="green" border-left-width="0.5pt" border-left-style="solid">
  884. <fo:block text-align="center">
  885. a
  886. </fo:block>
  887. </fo:table-cell>
  888. <fo:table-cell border-top-color="red" border-top-width="0.5pt" border-top-style="solid">
  889. <fo:block text-align="center">
  890. b
  891. </fo:block>
  892. </fo:table-cell>
  893. <fo:table-cell border-right-color="blue" border-right-width="0.5pt" border-right-style="solid">
  894. <fo:block text-align="center">
  895. c
  896. </fo:block>
  897. </fo:table-cell>
  898. <fo:table-cell border-bottom-color="yellow" border-bottom-width="0.5pt" border-bottom-style="solid">
  899. <fo:block text-align="center">
  900. d
  901. </fo:block>
  902. </fo:table-cell>
  903. <fo:table-cell border-color="orange" border-width="0.5pt" border-style="solid">
  904. <fo:block text-align="center">
  905. e
  906. </fo:block>
  907. </fo:table-cell>
  908. <fo:table-cell>
  909. <fo:block text-align="center">
  910. text for an extra line in the table row
  911. </fo:block>
  912. </fo:table-cell>
  913. </fo:table-row>
  914. <fo:table-row border-color="orange" border-width="0.5pt" border-style="solid">
  915. <fo:table-cell border-left-color="green" border-left-width="0.5pt" border-left-style="solid">
  916. <fo:block text-align="center">
  917. a
  918. </fo:block>
  919. </fo:table-cell>
  920. <fo:table-cell border-top-color="red" border-top-width="0.5pt" border-top-style="solid">
  921. <fo:block text-align="center">
  922. b
  923. </fo:block>
  924. </fo:table-cell>
  925. <fo:table-cell border-right-color="blue" border-right-width="0.5pt" border-right-style="solid">
  926. <fo:block text-align="center">
  927. c
  928. </fo:block>
  929. </fo:table-cell>
  930. <fo:table-cell border-bottom-color="yellow" border-bottom-width="0.5pt" border-bottom-style="solid">
  931. <fo:block text-align="center">
  932. d
  933. </fo:block>
  934. </fo:table-cell>
  935. <fo:table-cell border-color="orange" border-width="0.5pt" border-style="solid">
  936. <fo:block text-align="center">
  937. e
  938. </fo:block>
  939. </fo:table-cell>
  940. <fo:table-cell>
  941. <fo:block text-align="center">
  942. text for an extra line in the table row
  943. </fo:block>
  944. </fo:table-cell>
  945. </fo:table-row>
  946. <fo:table-row>
  947. <fo:table-cell border-left-color="green" border-left-width="0.5pt" border-left-style="solid">
  948. <fo:block text-align="center">
  949. a
  950. </fo:block>
  951. </fo:table-cell>
  952. <fo:table-cell border-top-color="red" border-top-width="0.5pt" border-top-style="solid">
  953. <fo:block text-align="center">
  954. b
  955. </fo:block>
  956. </fo:table-cell>
  957. <fo:table-cell border-right-color="blue" border-right-width="0.5pt" border-right-style="solid">
  958. <fo:block text-align="center">
  959. c
  960. </fo:block>
  961. </fo:table-cell>
  962. <fo:table-cell border-bottom-color="yellow" border-bottom-width="0.5pt" border-bottom-style="solid">
  963. <fo:block text-align="center">
  964. d
  965. </fo:block>
  966. </fo:table-cell>
  967. <fo:table-cell border-color="orange" border-width="0.5pt" border-style="solid">
  968. <fo:block text-align="center">
  969. e
  970. </fo:block>
  971. </fo:table-cell>
  972. <fo:table-cell>
  973. <fo:block text-align="center">
  974. text for an extra line in the table row
  975. </fo:block>
  976. </fo:table-cell>
  977. </fo:table-row>
  978. </fo:table-body>
  979. </fo:table>
  980. <fo:block space-before.optimum="30pt" space-after.optimum="15pt">
  981. Table 8: This is a table with border properties (border-style,
  982. border-width, border-color) defined at the fo:table-column and
  983. fo:table-row level. Not all properties are currently
  984. implemented--check the compliance page on the FOP website for current
  985. implementation status.
  986. </fo:block>
  987. <fo:table border-collapse="collapse" table-layout="fixed">
  988. <fo:table-column column-width="3cm" border-color="blue" border-width="0.5pt" border-style="solid"/>
  989. <fo:table-column column-width="3cm" border-color="blue" border-width="0.5pt" border-style="solid"/>
  990. <fo:table-column column-width="3cm" border-color="blue" border-width="0.5pt" border-style="solid"/>
  991. <fo:table-body>
  992. <fo:table-row border-color="blue" border-width="0.5pt" border-style="solid">
  993. <fo:table-cell>
  994. <fo:block text-align="center">
  995. (1,1)
  996. </fo:block>
  997. </fo:table-cell>
  998. <fo:table-cell>
  999. <fo:block text-align="center">
  1000. (1,2)
  1001. </fo:block>
  1002. </fo:table-cell>
  1003. <fo:table-cell>
  1004. <fo:block text-align="center">
  1005. (1,3)
  1006. </fo:block>
  1007. </fo:table-cell>
  1008. </fo:table-row>
  1009. <fo:table-row border-color="blue" border-width="0.5pt" border-style="solid">
  1010. <fo:table-cell>
  1011. <fo:block text-align="center">
  1012. (2,1)
  1013. </fo:block>
  1014. </fo:table-cell>
  1015. <fo:table-cell>
  1016. <fo:block text-align="center">
  1017. (2,2)
  1018. </fo:block>
  1019. </fo:table-cell>
  1020. <fo:table-cell>
  1021. <fo:block text-align="center">
  1022. (2,3)
  1023. </fo:block>
  1024. </fo:table-cell>
  1025. </fo:table-row>
  1026. <fo:table-row border-color="blue" border-width="0.5pt" border-style="solid">
  1027. <fo:table-cell>
  1028. <fo:block text-align="center">
  1029. (3,1)
  1030. </fo:block>
  1031. </fo:table-cell>
  1032. <fo:table-cell>
  1033. <fo:block text-align="center">
  1034. (3,2)
  1035. </fo:block>
  1036. </fo:table-cell>
  1037. <fo:table-cell>
  1038. <fo:block text-align="center">
  1039. (3,3)
  1040. </fo:block>
  1041. </fo:table-cell>
  1042. </fo:table-row>
  1043. </fo:table-body>
  1044. </fo:table>
  1045. <fo:block space-before.optimum="30pt" space-after.optimum="15pt">
  1046. Table 9: This table has border properties defined at the
  1047. fo:table-cell level.
  1048. </fo:block>
  1049. <fo:table border-collapse="collapse" table-layout="fixed">
  1050. <fo:table-column column-width="3cm"/>
  1051. <fo:table-column column-width="3cm"/>
  1052. <fo:table-column column-width="3cm"/>
  1053. <fo:table-body>
  1054. <fo:table-row>
  1055. <fo:table-cell border-color="blue" border-width="0.5pt" border-style="solid">
  1056. <fo:block text-align="center">
  1057. (1,1)
  1058. </fo:block>
  1059. </fo:table-cell>
  1060. <fo:table-cell border-color="blue" border-width="0.5pt" border-style="solid">
  1061. <fo:block text-align="center">
  1062. (1,2)
  1063. </fo:block>
  1064. </fo:table-cell>
  1065. <fo:table-cell border-color="blue" border-width="0.5pt" border-style="solid">
  1066. <fo:block text-align="center">
  1067. (1,3)
  1068. </fo:block>
  1069. </fo:table-cell>
  1070. </fo:table-row>
  1071. <fo:table-row>
  1072. <fo:table-cell border-color="blue" border-width="0.5pt" border-style="solid">
  1073. <fo:block text-align="center">
  1074. (2,1)
  1075. </fo:block>
  1076. </fo:table-cell>
  1077. <fo:table-cell border-color="blue" border-width="0.5pt" border-style="solid">
  1078. <fo:block text-align="center">
  1079. (2,2)
  1080. </fo:block>
  1081. </fo:table-cell>
  1082. <fo:table-cell border-color="blue" border-width="0.5pt" border-style="solid">
  1083. <fo:block text-align="center">
  1084. (2,3)
  1085. </fo:block>
  1086. </fo:table-cell>
  1087. </fo:table-row>
  1088. <fo:table-row>
  1089. <fo:table-cell border-color="blue" border-width="0.5pt" border-style="solid">
  1090. <fo:block text-align="center">
  1091. (3,1)
  1092. </fo:block>
  1093. </fo:table-cell>
  1094. <fo:table-cell border-color="blue" border-width="0.5pt" border-style="solid">
  1095. <fo:block text-align="center">
  1096. (3,2)
  1097. </fo:block>
  1098. </fo:table-cell>
  1099. <fo:table-cell border-color="blue" border-width="0.5pt" border-style="solid">
  1100. <fo:block text-align="center">
  1101. (3,3)
  1102. </fo:block>
  1103. </fo:table-cell>
  1104. </fo:table-row>
  1105. </fo:table-body>
  1106. </fo:table>
  1107. <fo:block space-before.optimum="30pt" space-after.optimum="15pt">
  1108. Table 10: This example is the first example given in the CSS2 border conflict
  1109. resolution rules.
  1110. (See http://www.w3.org/TR/REC-CSS2/tables.html#border-conflict-resolution)
  1111. When all properties are resolved and implemented, the table below should
  1112. resemble the one shown in this section of the CSS2 specification.
  1113. Check the FOP compliance page for current implementation status.
  1114. </fo:block>
  1115. <fo:table border-collapse="collapse" table-layout="fixed"
  1116. border-style="solid" border-width="5pt" border-color="yellow">
  1117. <fo:table-column column-width="3cm"
  1118. border-style="solid" border-width="3pt" border-color="black"/>
  1119. <fo:table-column column-width="3cm"/>
  1120. <fo:table-column column-width="3cm"/>
  1121. <fo:table-body>
  1122. <fo:table-row>
  1123. <fo:table-cell border-style="solid" border-width="1pt" border-color="red" padding="1em">
  1124. <fo:block text-align="center">
  1125. 1
  1126. </fo:block>
  1127. </fo:table-cell>
  1128. <fo:table-cell border-style="solid" border-width="1pt" border-color="red" padding="1em">
  1129. <fo:block text-align="center">
  1130. 2
  1131. </fo:block>
  1132. </fo:table-cell>
  1133. <fo:table-cell border-style="solid" border-width="1pt" border-color="red" padding="1em">
  1134. <fo:block text-align="center">
  1135. 3
  1136. </fo:block>
  1137. </fo:table-cell>
  1138. </fo:table-row>
  1139. <fo:table-row>
  1140. <fo:table-cell border-style="solid" border-width="1pt" border-color="red" padding="1em">
  1141. <fo:block text-align="center">
  1142. 4
  1143. </fo:block>
  1144. </fo:table-cell>
  1145. <fo:table-cell border-style="dashed" border-width="5pt" border-color="blue" padding="1em">
  1146. <fo:block text-align="center">
  1147. 5
  1148. </fo:block>
  1149. </fo:table-cell>
  1150. <fo:table-cell border-style="solid" border-width="5pt" border-color="green" padding="1em">
  1151. <fo:block text-align="center">
  1152. 6
  1153. </fo:block>
  1154. </fo:table-cell>
  1155. </fo:table-row>
  1156. <fo:table-row>
  1157. <fo:table-cell border-style="solid" border-width="1pt" border-color="red" padding="1em">
  1158. <fo:block text-align="center">
  1159. 7
  1160. </fo:block>
  1161. </fo:table-cell>
  1162. <fo:table-cell border-style="solid" border-width="1pt" border-color="red" padding="1em">
  1163. <fo:block text-align="center">
  1164. 8
  1165. </fo:block>
  1166. </fo:table-cell>
  1167. <fo:table-cell border-style="solid" border-width="1pt" border-color="red" padding="1em">
  1168. <fo:block text-align="center">
  1169. 9
  1170. </fo:block>
  1171. </fo:table-cell>
  1172. </fo:table-row>
  1173. <fo:table-row>
  1174. <fo:table-cell border-style="solid" border-width="1pt" border-color="red" padding="1em">
  1175. <fo:block text-align="center">
  1176. 10
  1177. </fo:block>
  1178. </fo:table-cell>
  1179. <fo:table-cell border-style="solid" border-width="1pt" border-color="red" padding="1em">
  1180. <fo:block text-align="center">
  1181. 11
  1182. </fo:block>
  1183. </fo:table-cell>
  1184. <fo:table-cell border-style="solid" border-width="1pt" border-color="red" padding="1em">
  1185. <fo:block text-align="center">
  1186. 12
  1187. </fo:block>
  1188. </fo:table-cell>
  1189. </fo:table-row>
  1190. <fo:table-row>
  1191. <fo:table-cell border-style="solid" border-width="1pt" border-color="red" padding="1em">
  1192. <fo:block text-align="center">
  1193. 13
  1194. </fo:block>
  1195. </fo:table-cell>
  1196. <fo:table-cell border-style="solid" border-width="1pt" border-color="red" padding="1em">
  1197. <fo:block text-align="center">
  1198. 14
  1199. </fo:block>
  1200. </fo:table-cell>
  1201. <fo:table-cell border-style="solid" border-width="1pt" border-color="red" padding="1em">
  1202. <fo:block text-align="center">
  1203. 15
  1204. </fo:block>
  1205. </fo:table-cell>
  1206. </fo:table-row>
  1207. </fo:table-body>
  1208. </fo:table>
  1209. <fo:block space-before.optimum="30pt" space-after.optimum="15pt">
  1210. Table 11: This example is a test of Rule 4 of the CSS2 border conflict
  1211. resolution rules.
  1212. (See http://www.w3.org/TR/REC-CSS2/tables.html#border-conflict-resolution)
  1213. This rule gives the order of precedence of resolution to be cell (highest),
  1214. then row, then column, then table (lowest), in those cases where
  1215. the border properties differ only on color.
  1216. </fo:block>
  1217. <fo:table border-collapse="collapse" table-layout="fixed">
  1218. <fo:table-column column-width="3cm"
  1219. border-style="solid" border-width="3pt" border-color="black"/>
  1220. <fo:table-column column-width="3cm"/>
  1221. <fo:table-column column-width="3cm"/>
  1222. <fo:table-column column-width="3cm"/>
  1223. <fo:table-column column-width="3cm"
  1224. border-style="solid" border-width="3pt" border-color="black"/>
  1225. <fo:table-body>
  1226. <fo:table-row border-style="solid" border-width="3pt" border-color="red">
  1227. <fo:table-cell border-style="solid" border-width="3pt" border-color="blue">
  1228. <fo:block text-align="center">cell, row, col</fo:block>
  1229. </fo:table-cell>
  1230. <fo:table-cell>
  1231. <fo:block text-align="center">row</fo:block>
  1232. </fo:table-cell>
  1233. <fo:table-cell border-style="solid" border-width="3pt" border-color="blue">
  1234. <fo:block text-align="center">cell, row</fo:block>
  1235. </fo:table-cell>
  1236. <fo:table-cell>
  1237. <fo:block text-align="center">row</fo:block>
  1238. </fo:table-cell>
  1239. <fo:table-cell>
  1240. <fo:block text-align="center">row, col</fo:block>
  1241. </fo:table-cell>
  1242. </fo:table-row>
  1243. <fo:table-row>
  1244. <fo:table-cell>
  1245. <fo:block text-align="center">col</fo:block>
  1246. </fo:table-cell>
  1247. <fo:table-cell>
  1248. <fo:block text-align="center">none</fo:block>
  1249. </fo:table-cell>
  1250. <fo:table-cell>
  1251. <fo:block text-align="center">none</fo:block>
  1252. </fo:table-cell>
  1253. <fo:table-cell>
  1254. <fo:block text-align="center">none</fo:block>
  1255. </fo:table-cell>
  1256. <fo:table-cell>
  1257. <fo:block text-align="center">col</fo:block>
  1258. </fo:table-cell>
  1259. </fo:table-row>
  1260. <fo:table-row>
  1261. <fo:table-cell border-style="solid" border-width="3pt" border-color="blue">
  1262. <fo:block text-align="center">cell, col</fo:block>
  1263. </fo:table-cell>
  1264. <fo:table-cell>
  1265. <fo:block text-align="center">none</fo:block>
  1266. </fo:table-cell>
  1267. <fo:table-cell border-style="solid" border-width="3pt" border-color="blue">
  1268. <fo:block text-align="center">cell</fo:block>
  1269. </fo:table-cell>
  1270. <fo:table-cell>
  1271. <fo:block text-align="center">none</fo:block>
  1272. </fo:table-cell>
  1273. <fo:table-cell>
  1274. <fo:block text-align="center">col</fo:block>
  1275. </fo:table-cell>
  1276. </fo:table-row>
  1277. </fo:table-body>
  1278. </fo:table>
  1279. </fo:flow>
  1280. </fo:page-sequence>
  1281. </fo:root>