Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  3. <!-- defines the layout master -->
  4. <fo:layout-master-set>
  5. <fo:simple-page-master master-name="first"
  6. page-height="29.7cm"
  7. page-width="21cm"
  8. margin-top="1cm"
  9. margin-bottom="2cm"
  10. margin-left="2.5cm"
  11. margin-right="2.5cm">
  12. <fo:region-body margin-top="3cm"/>
  13. <fo:region-before extent="3cm"/>
  14. <fo:region-after extent="1.5cm"/>
  15. </fo:simple-page-master>
  16. </fo:layout-master-set>
  17. <!-- starts actual layout -->
  18. <fo:page-sequence master-reference="first">
  19. <fo:flow flow-name="xsl-region-body">
  20. <!-- this defines a title level 1-->
  21. <fo:block font-size="18pt"
  22. font-family="sans-serif"
  23. line-height="24pt"
  24. space-after.optimum="15pt"
  25. background-color="blue"
  26. color="white"
  27. text-align="center"
  28. padding-top="3pt">
  29. How to use table elements
  30. </fo:block>
  31. <!-- this defines a title level 2-->
  32. <fo:block font-size="16pt"
  33. font-family="sans-serif"
  34. space-after.optimum="15pt"
  35. text-align="center">
  36. A simple table, 3 columns, 4 rows
  37. </fo:block>
  38. <!-- normal text -->
  39. <fo:block text-align="start">this is normal text. this is normal text. this is normal text.
  40. this is normal text. this is normal text. this is normal text.
  41. </fo:block>
  42. <!-- table start -->
  43. <fo:table table-layout="fixed" width="100%" border-collapse="separate">
  44. <fo:table-column column-width="50mm"/>
  45. <fo:table-column column-width="50mm"/>
  46. <fo:table-column column-width="50mm"/>
  47. <fo:table-body>
  48. <fo:table-row>
  49. <fo:table-cell ><fo:block>good</fo:block></fo:table-cell>
  50. <fo:table-cell ><fo:block>bad</fo:block></fo:table-cell>
  51. <fo:table-cell ><fo:block>ugly</fo:block></fo:table-cell>
  52. </fo:table-row>
  53. <fo:table-row>
  54. <fo:table-cell ><fo:block>nice</fo:block></fo:table-cell>
  55. <fo:table-cell ><fo:block>dice</fo:block></fo:table-cell>
  56. <fo:table-cell ><fo:block>vice</fo:block></fo:table-cell>
  57. </fo:table-row>
  58. <fo:table-row>
  59. <fo:table-cell ><fo:block>literature</fo:block></fo:table-cell>
  60. <fo:table-cell ><fo:block>music</fo:block></fo:table-cell>
  61. <fo:table-cell ><fo:block>art</fo:block></fo:table-cell>
  62. </fo:table-row>
  63. <fo:table-row>
  64. <fo:table-cell ><fo:block>java</fo:block></fo:table-cell>
  65. <fo:table-cell ><fo:block>perl</fo:block></fo:table-cell>
  66. <fo:table-cell ><fo:block>python</fo:block></fo:table-cell>
  67. </fo:table-row>
  68. </fo:table-body>
  69. </fo:table>
  70. <!-- table end -->
  71. <!-- normal text -->
  72. <fo:block text-align="start">this is normal text. this is normal text. this is normal text.
  73. this is normal text. this is normal text. this is normal text.
  74. </fo:block>
  75. <!-- **************************** NEW PAGE ************************************* -->
  76. <!-- this defines a title level 2-->
  77. <fo:block font-size="16pt"
  78. font-family="sans-serif"
  79. space-after.optimum="15pt"
  80. text-align="center"
  81. break-before="page">
  82. A table with borders
  83. </fo:block>
  84. <!-- normal text -->
  85. <fo:block text-align="start">this is normal text. this is normal text. this is normal text.
  86. this is normal text. this is normal text. this is normal text.
  87. </fo:block>
  88. <!-- table start -->
  89. <fo:table border-width="0.5mm" border-style="solid" background-color="yellow" table-layout="fixed" width="100%" border-collapse="separate">
  90. <fo:table-column column-width="50mm"/>
  91. <fo:table-column column-width="50mm"/>
  92. <fo:table-column column-width="50mm"/>
  93. <fo:table-body>
  94. <fo:table-row>
  95. <fo:table-cell ><fo:block>good</fo:block></fo:table-cell>
  96. <fo:table-cell ><fo:block>bad</fo:block></fo:table-cell>
  97. <fo:table-cell ><fo:block>ugly</fo:block></fo:table-cell>
  98. </fo:table-row>
  99. <fo:table-row>
  100. <fo:table-cell ><fo:block>nice</fo:block></fo:table-cell>
  101. <fo:table-cell ><fo:block>dice</fo:block></fo:table-cell>
  102. <fo:table-cell ><fo:block>vice</fo:block></fo:table-cell>
  103. </fo:table-row>
  104. <fo:table-row>
  105. <fo:table-cell ><fo:block>literature</fo:block></fo:table-cell>
  106. <fo:table-cell ><fo:block>music</fo:block></fo:table-cell>
  107. <fo:table-cell ><fo:block>art</fo:block></fo:table-cell>
  108. </fo:table-row>
  109. <fo:table-row>
  110. <fo:table-cell ><fo:block>java</fo:block></fo:table-cell>
  111. <fo:table-cell ><fo:block>perl</fo:block></fo:table-cell>
  112. <fo:table-cell ><fo:block>python</fo:block></fo:table-cell>
  113. </fo:table-row>
  114. </fo:table-body>
  115. </fo:table>
  116. <!-- table end -->
  117. <!-- normal text -->
  118. <fo:block text-align="start">this is normal text. this is normal text. this is normal text.
  119. this is normal text. this is normal text. this is normal text.
  120. </fo:block>
  121. <!-- **************************** NEW PAGE ************************************* -->
  122. <!-- this defines a title level 2-->
  123. <fo:block font-size="16pt"
  124. font-family="sans-serif"
  125. space-after.optimum="15pt"
  126. text-align="center"
  127. break-before="page">
  128. A table with thick borders
  129. </fo:block>
  130. <!-- normal text -->
  131. <fo:block text-align="start">this is normal text. this is normal text. this is normal text.
  132. this is normal text. this is normal text. this is normal text.
  133. </fo:block>
  134. <!-- table start -->
  135. <fo:table border-width="3mm" border-style="solid" background-color="yellow" table-layout="fixed" width="100%" border-collapse="separate">
  136. <fo:table-column column-width="50mm"/>
  137. <fo:table-column column-width="50mm"/>
  138. <fo:table-column column-width="50mm"/>
  139. <fo:table-body>
  140. <fo:table-row>
  141. <fo:table-cell ><fo:block>good</fo:block></fo:table-cell>
  142. <fo:table-cell ><fo:block>bad</fo:block></fo:table-cell>
  143. <fo:table-cell ><fo:block>ugly</fo:block></fo:table-cell>
  144. </fo:table-row>
  145. <fo:table-row>
  146. <fo:table-cell ><fo:block>nice</fo:block></fo:table-cell>
  147. <fo:table-cell ><fo:block>dice</fo:block></fo:table-cell>
  148. <fo:table-cell ><fo:block>vice</fo:block></fo:table-cell>
  149. </fo:table-row>
  150. <fo:table-row>
  151. <fo:table-cell ><fo:block>literature</fo:block></fo:table-cell>
  152. <fo:table-cell ><fo:block>music</fo:block></fo:table-cell>
  153. <fo:table-cell ><fo:block>art</fo:block></fo:table-cell>
  154. </fo:table-row>
  155. <fo:table-row>
  156. <fo:table-cell ><fo:block>java</fo:block></fo:table-cell>
  157. <fo:table-cell ><fo:block>perl</fo:block></fo:table-cell>
  158. <fo:table-cell ><fo:block>python</fo:block></fo:table-cell>
  159. </fo:table-row>
  160. </fo:table-body>
  161. </fo:table>
  162. <!-- table end -->
  163. <!-- normal text -->
  164. <fo:block text-align="start" start-indent="-3mm">this is normal text. this is normal text. this is normal text.
  165. this is normal text. this is normal text. this is normal text.
  166. </fo:block>
  167. <!-- **************************** NEW PAGE ************************************* -->
  168. <!-- this defines a title level 2-->
  169. <fo:block font-size="16pt"
  170. font-family="sans-serif"
  171. space-after.optimum="15pt"
  172. text-align="center"
  173. break-before="page">
  174. A table with borders around the cells
  175. </fo:block>
  176. <!-- normal text -->
  177. <fo:block text-align="start">this is normal text. this is normal text. this is normal text.
  178. this is normal text. this is normal text. this is normal text.
  179. </fo:block>
  180. <!-- table start -->
  181. <fo:table table-layout="fixed" width="100%" border-collapse="separate">
  182. <fo:table-column column-width="50mm"/>
  183. <fo:table-column column-width="50mm"/>
  184. <fo:table-column column-width="50mm"/>
  185. <fo:table-body>
  186. <fo:table-row>
  187. <fo:table-cell border-width="0.5mm" border-style="solid" background-color="yellow"><fo:block>good</fo:block></fo:table-cell>
  188. <fo:table-cell border-width="0.5mm" border-style="solid" background-color="yellow"><fo:block>bad</fo:block></fo:table-cell>
  189. <fo:table-cell border-width="0.5mm" border-style="solid" background-color="yellow"><fo:block>ugly</fo:block></fo:table-cell>
  190. </fo:table-row>
  191. <fo:table-row>
  192. <fo:table-cell border-width="0.5mm" border-style="solid" background-color="yellow"><fo:block>nice</fo:block></fo:table-cell>
  193. <fo:table-cell border-width="0.5mm" border-style="solid" background-color="yellow"><fo:block>dice</fo:block></fo:table-cell>
  194. <fo:table-cell border-width="0.5mm" border-style="solid" background-color="yellow"><fo:block>vice</fo:block></fo:table-cell>
  195. </fo:table-row>
  196. <fo:table-row>
  197. <fo:table-cell border-width="0.5mm" border-style="solid" background-color="yellow"><fo:block>literature</fo:block></fo:table-cell>
  198. <fo:table-cell border-width="0.5mm" border-style="solid" background-color="yellow"><fo:block>music</fo:block></fo:table-cell>
  199. <fo:table-cell border-width="0.5mm" border-style="solid" background-color="yellow"><fo:block>art</fo:block></fo:table-cell>
  200. </fo:table-row>
  201. <fo:table-row>
  202. <fo:table-cell border-width="0.5mm" border-style="solid" background-color="yellow"><fo:block>java</fo:block></fo:table-cell>
  203. <fo:table-cell border-width="0.5mm" border-style="solid" background-color="yellow"><fo:block>perl</fo:block></fo:table-cell>
  204. <fo:table-cell border-width="0.5mm" border-style="solid" background-color="yellow"><fo:block>python</fo:block></fo:table-cell>
  205. </fo:table-row>
  206. </fo:table-body>
  207. </fo:table>
  208. <!-- table end -->
  209. <!-- normal text -->
  210. <fo:block text-align="start">this is normal text. this is normal text. this is normal text.
  211. this is normal text. this is normal text. this is normal text.
  212. </fo:block>
  213. <!-- **************************** NEW PAGE ************************************* -->
  214. <!-- this defines a title level 2-->
  215. <fo:block font-size="16pt"
  216. font-family="sans-serif"
  217. space-after.optimum="15pt"
  218. text-align="center"
  219. break-before="page">
  220. 2 tables with thick borders around the cells
  221. </fo:block>
  222. <!-- normal text -->
  223. <fo:block text-align="start">this is normal text. this is normal text. this is normal text.
  224. this is normal text. this is normal text. this is normal text.
  225. </fo:block>
  226. <!-- table start -->
  227. <fo:table table-layout="fixed" width="100%" border-collapse="separate">
  228. <fo:table-column column-width="50mm"/>
  229. <fo:table-column column-width="50mm"/>
  230. <fo:table-column column-width="50mm"/>
  231. <fo:table-body>
  232. <fo:table-row>
  233. <fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>good</fo:block></fo:table-cell>
  234. <fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>bad</fo:block></fo:table-cell>
  235. <fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>ugly</fo:block></fo:table-cell>
  236. </fo:table-row>
  237. <fo:table-row>
  238. <fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>nice</fo:block></fo:table-cell>
  239. <fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>dice</fo:block></fo:table-cell>
  240. <fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>vice</fo:block></fo:table-cell>
  241. </fo:table-row>
  242. <fo:table-row>
  243. <fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>literature</fo:block></fo:table-cell>
  244. <fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>music</fo:block></fo:table-cell>
  245. <fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>art</fo:block></fo:table-cell>
  246. </fo:table-row>
  247. <fo:table-row>
  248. <fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>java</fo:block></fo:table-cell>
  249. <fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>perl</fo:block></fo:table-cell>
  250. <fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>python</fo:block></fo:table-cell>
  251. </fo:table-row>
  252. </fo:table-body>
  253. </fo:table>
  254. <!-- table end -->
  255. <!-- normal text -->
  256. <fo:block text-align="start">this is normal text. this is normal text. this is normal text.
  257. this is normal text. this is normal text. this is normal text.
  258. </fo:block>
  259. <!-- table start -->
  260. <fo:table table-layout="fixed" width="100%" border-collapse="separate">
  261. <fo:table-column column-width="50mm"/>
  262. <fo:table-column column-width="50mm"/>
  263. <fo:table-column column-width="50mm"/>
  264. <fo:table-body>
  265. <fo:table-row>
  266. <fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>good</fo:block></fo:table-cell>
  267. <fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>bad</fo:block></fo:table-cell>
  268. <fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>ugly</fo:block></fo:table-cell>
  269. </fo:table-row>
  270. <fo:table-row>
  271. <fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>nice</fo:block></fo:table-cell>
  272. <fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>dice</fo:block></fo:table-cell>
  273. <fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>vice</fo:block></fo:table-cell>
  274. </fo:table-row>
  275. <fo:table-row>
  276. <fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>literature</fo:block></fo:table-cell>
  277. <fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>music</fo:block></fo:table-cell>
  278. <fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>art</fo:block></fo:table-cell>
  279. </fo:table-row>
  280. <fo:table-row>
  281. <fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>java</fo:block></fo:table-cell>
  282. <fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>perl</fo:block></fo:table-cell>
  283. <fo:table-cell border-width="2mm" border-style="solid" background-color="yellow"><fo:block>python</fo:block></fo:table-cell>
  284. </fo:table-row>
  285. </fo:table-body>
  286. </fo:table>
  287. <!-- table end -->
  288. <!-- normal text -->
  289. <fo:block text-align="start">this is normal text. this is normal text. this is normal text.
  290. this is normal text. this is normal text. this is normal text.
  291. </fo:block>
  292. <!-- **************************** NEW PAGE ************************************* -->
  293. <!-- this defines a title level 2-->
  294. <fo:block font-size="16pt"
  295. font-family="sans-serif"
  296. space-after.optimum="15pt"
  297. text-align="center"
  298. break-before="page">
  299. 5 tables with borders
  300. </fo:block>
  301. <!-- normal text -->
  302. <fo:block text-align="start">this is normal text. this is normal text. this is normal text.
  303. this is normal text. this is normal text. this is normal text.
  304. </fo:block>
  305. <fo:table border-width="1.5mm" border-style="solid" background-color="rgb(100,210,250)" table-layout="fixed" width="100%" border-collapse="separate">
  306. <fo:table-column column-width="150mm"/>
  307. <fo:table-body>
  308. <fo:table-row>
  309. <fo:table-cell><fo:block>bad</fo:block></fo:table-cell>
  310. </fo:table-row>
  311. </fo:table-body>
  312. </fo:table>
  313. <fo:table border-width="1.5mm" border-style="solid" background-color="rgb(100,210,250)" table-layout="fixed" width="100%" border-collapse="separate">
  314. <fo:table-column column-width="150mm"/>
  315. <fo:table-body>
  316. <fo:table-row>
  317. <fo:table-cell><fo:block>bad</fo:block></fo:table-cell>
  318. </fo:table-row>
  319. </fo:table-body>
  320. </fo:table>
  321. <fo:table border-width="1.5mm" border-style="solid" background-color="rgb(100,210,250)" table-layout="fixed" width="100%" border-collapse="separate">
  322. <fo:table-column column-width="150mm"/>
  323. <fo:table-body>
  324. <fo:table-row>
  325. <fo:table-cell><fo:block>bad</fo:block></fo:table-cell>
  326. </fo:table-row>
  327. </fo:table-body>
  328. </fo:table>
  329. <fo:table border-width="1.5mm" border-style="solid" background-color="rgb(100,210,250)" table-layout="fixed" width="100%" border-collapse="separate">
  330. <fo:table-column column-width="150mm"/>
  331. <fo:table-body>
  332. <fo:table-row>
  333. <fo:table-cell><fo:block>bad</fo:block></fo:table-cell>
  334. </fo:table-row>
  335. </fo:table-body>
  336. </fo:table>
  337. <!-- normal text -->
  338. <fo:block text-align="start">this is normal text. this is normal text. this is normal text.
  339. this is normal text. this is normal text. this is normal text.
  340. </fo:block>
  341. <!-- **************************** NEW PAGE ************************************* -->
  342. <fo:block font-size="16pt"
  343. font-family="sans-serif"
  344. line-height="20pt"
  345. space-after.optimum="3pt"
  346. break-before="page"
  347. text-align="justify">
  348. A Contents table
  349. </fo:block>
  350. <!-- Here starts the table -->
  351. <fo:table table-layout="fixed" width="100%" border-collapse="separate">
  352. <fo:table-column column-width="1cm"/>
  353. <fo:table-column column-width="15cm"/>
  354. <fo:table-body font-size="10pt" font-family="sans-serif">
  355. <fo:table-row line-height="12pt">
  356. <fo:table-cell>
  357. <fo:block text-align="end">A) </fo:block>
  358. </fo:table-cell>
  359. <fo:table-cell>
  360. <fo:block text-align="start">What is FOP?</fo:block>
  361. </fo:table-cell>
  362. </fo:table-row>
  363. <fo:table-row line-height="12pt">
  364. <fo:table-cell>
  365. <fo:block text-align="end">B) </fo:block>
  366. </fo:table-cell>
  367. <fo:table-cell>
  368. <fo:block text-align="start">Downloading FOP</fo:block>
  369. </fo:table-cell>
  370. </fo:table-row>
  371. <fo:table-row line-height="12pt">
  372. <fo:table-cell>
  373. <fo:block text-align="end">C) </fo:block>
  374. </fo:table-cell>
  375. <fo:table-cell>
  376. <fo:block text-align="start">Running FOP</fo:block>
  377. </fo:table-cell>
  378. </fo:table-row>
  379. <fo:table-row line-height="12pt">
  380. <fo:table-cell>
  381. <fo:block text-align="end">D) </fo:block>
  382. </fo:table-cell>
  383. <fo:table-cell>
  384. <fo:block text-align="start">Embedding FOP </fo:block>
  385. </fo:table-cell>
  386. </fo:table-row>
  387. <fo:table-row line-height="12pt">
  388. <fo:table-cell>
  389. <fo:block text-align="end">E) </fo:block>
  390. </fo:table-cell>
  391. <fo:table-cell>
  392. <fo:block text-align="start">What's Implemented?</fo:block>
  393. </fo:table-cell>
  394. </fo:table-row>
  395. <fo:table-row line-height="12pt">
  396. <fo:table-cell>
  397. <fo:block text-align="end">F) </fo:block>
  398. </fo:table-cell>
  399. <fo:table-cell>
  400. <fo:block text-align="start">Limitations</fo:block>
  401. </fo:table-cell>
  402. </fo:table-row>
  403. <fo:table-row line-height="12pt">
  404. <fo:table-cell>
  405. <fo:block text-align="end">G) </fo:block>
  406. </fo:table-cell>
  407. <fo:table-cell>
  408. <fo:block text-align="start">Bugs</fo:block>
  409. </fo:table-cell>
  410. </fo:table-row>
  411. <fo:table-row line-height="12pt">
  412. <fo:table-cell>
  413. <fo:block text-align="end">H) </fo:block>
  414. </fo:table-cell>
  415. <fo:table-cell>
  416. <fo:block text-align="start">Compiling FOP</fo:block>
  417. </fo:table-cell>
  418. </fo:table-row>
  419. <fo:table-row line-height="12pt">
  420. <fo:table-cell>
  421. <fo:block text-align="end">I) </fo:block>
  422. </fo:table-cell>
  423. <fo:table-cell>
  424. <fo:block text-align="start">Getting involved</fo:block>
  425. </fo:table-cell>
  426. </fo:table-row>
  427. <fo:table-row line-height="12pt">
  428. <fo:table-cell>
  429. <fo:block text-align="end">J) </fo:block>
  430. </fo:table-cell>
  431. <fo:table-cell>
  432. <fo:block text-align="start">FOP Relevant Specifications</fo:block>
  433. </fo:table-cell>
  434. </fo:table-row>
  435. <fo:table-row line-height="12pt">
  436. <fo:table-cell>
  437. <fo:block text-align="end">K) </fo:block>
  438. </fo:table-cell>
  439. <fo:table-cell>
  440. <fo:block text-align="start">Licence</fo:block>
  441. </fo:table-cell>
  442. </fo:table-row>
  443. </fo:table-body>
  444. </fo:table>
  445. </fo:flow>
  446. </fo:page-sequence>
  447. </fo:root>