diff options
author | fotis <fotis@unknown> | 2000-11-17 10:25:40 +0000 |
---|---|---|
committer | fotis <fotis@unknown> | 2000-11-17 10:25:40 +0000 |
commit | f9c70dded6430f84fda692dae10737f2a4eef624 (patch) | |
tree | aa5a534c6671abf002e7967ad44e1e7c8f40d999 /docs/examples/fo/table.fo | |
parent | 810dfe11fb6d2b2b17d9829e4ef49de4dc1f5975 (diff) | |
download | xmlgraphics-fop-f9c70dded6430f84fda692dae10737f2a4eef624.tar.gz xmlgraphics-fop-f9c70dded6430f84fda692dae10737f2a4eef624.zip |
replaces old list.fo with list2.fo and adds a more interesting table.fo
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193827 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/examples/fo/table.fo')
-rw-r--r-- | docs/examples/fo/table.fo | 386 |
1 files changed, 378 insertions, 8 deletions
diff --git a/docs/examples/fo/table.fo b/docs/examples/fo/table.fo index 2e4b6bcb6..79712fb47 100644 --- a/docs/examples/fo/table.fo +++ b/docs/examples/fo/table.fo @@ -21,17 +21,387 @@ <!-- starts actual layout --> <fo:page-sequence master-name="first"> - <!-- Inserts a header with the page number --> - <fo:static-content flow-name="xsl-region-before"> - <fo:block text-align="end" font-size="10pt" font-family="serif" line-height="14pt"> - FOP - p. <fo:page-number/> + <fo:flow flow-name="xsl-region-body"> + + <!-- this defines a title level 1--> + <fo:block font-size="18pt" + font-family="sans-serif" + line-height="24pt" + space-after.optimum="15pt" + background-color="blue" + color="white" + text-align="center" + padding-top="3pt"> + How to use table elements + </fo:block> + + <!-- this defines a title level 2--> + <fo:block font-size="16pt" + font-family="sans-serif" + space-after.optimum="15pt" + text-align="center"> + A simple table, 3 columns, 4 rows + </fo:block> + + <!-- normal text --> + <fo:block text-align="start">this is normal text. this is normal text. this is normal text. + this is normal text. this is normal text. this is normal text. + </fo:block> + + <!-- table start --> + <fo:table> + <fo:table-column column-width="50mm"/> + <fo:table-column column-width="50mm"/> + <fo:table-column column-width="50mm"/> + <fo:table-body> + <fo:table-row> + <fo:table-cell ><fo:block>good</fo:block></fo:table-cell> + <fo:table-cell ><fo:block>bad</fo:block></fo:table-cell> + <fo:table-cell ><fo:block>ugly</fo:block></fo:table-cell> + </fo:table-row> + <fo:table-row> + <fo:table-cell ><fo:block>nice</fo:block></fo:table-cell> + <fo:table-cell ><fo:block>dice</fo:block></fo:table-cell> + <fo:table-cell ><fo:block>vice</fo:block></fo:table-cell> + </fo:table-row> + <fo:table-row> + <fo:table-cell ><fo:block>literature</fo:block></fo:table-cell> + <fo:table-cell ><fo:block>music</fo:block></fo:table-cell> + <fo:table-cell ><fo:block>art</fo:block></fo:table-cell> + </fo:table-row> + <fo:table-row> + <fo:table-cell ><fo:block>java</fo:block></fo:table-cell> + <fo:table-cell ><fo:block>perl</fo:block></fo:table-cell> + <fo:table-cell ><fo:block>python</fo:block></fo:table-cell> + </fo:table-row> + </fo:table-body> + </fo:table> + <!-- table end --> + + <!-- normal text --> + <fo:block text-align="start">this is normal text. this is normal text. this is normal text. + this is normal text. this is normal text. this is normal text. + </fo:block> + +<!-- **************************** NEW PAGE ************************************* --> + + <!-- this defines a title level 2--> + <fo:block font-size="16pt" + font-family="sans-serif" + space-after.optimum="15pt" + text-align="center" + break-before="page"> + A table with borders + </fo:block> + + + <!-- normal text --> + <fo:block text-align="start">this is normal text. this is normal text. this is normal text. + this is normal text. this is normal text. this is normal text. + </fo:block> + + + <!-- table start --> + <fo:table border-width="0.5mm" background-color="yellow"> + <fo:table-column column-width="50mm"/> + <fo:table-column column-width="50mm"/> + <fo:table-column column-width="50mm"/> + <fo:table-body> + <fo:table-row> + <fo:table-cell ><fo:block>good</fo:block></fo:table-cell> + <fo:table-cell ><fo:block>bad</fo:block></fo:table-cell> + <fo:table-cell ><fo:block>ugly</fo:block></fo:table-cell> + </fo:table-row> + <fo:table-row> + <fo:table-cell ><fo:block>nice</fo:block></fo:table-cell> + <fo:table-cell ><fo:block>dice</fo:block></fo:table-cell> + <fo:table-cell ><fo:block>vice</fo:block></fo:table-cell> + </fo:table-row> + <fo:table-row> + <fo:table-cell ><fo:block>literature</fo:block></fo:table-cell> + <fo:table-cell ><fo:block>music</fo:block></fo:table-cell> + <fo:table-cell ><fo:block>art</fo:block></fo:table-cell> + </fo:table-row> + <fo:table-row> + <fo:table-cell ><fo:block>java</fo:block></fo:table-cell> + <fo:table-cell ><fo:block>perl</fo:block></fo:table-cell> + <fo:table-cell ><fo:block>python</fo:block></fo:table-cell> + </fo:table-row> + </fo:table-body> + </fo:table> + <!-- table end --> + + <!-- normal text --> + <fo:block text-align="start">this is normal text. this is normal text. this is normal text. + this is normal text. this is normal text. this is normal text. + </fo:block> + + +<!-- **************************** NEW PAGE ************************************* --> + + <!-- this defines a title level 2--> + <fo:block font-size="16pt" + font-family="sans-serif" + space-after.optimum="15pt" + text-align="center" + break-before="page"> + A table with thick borders + </fo:block> + + + <!-- normal text --> + <fo:block text-align="start">this is normal text. this is normal text. this is normal text. + this is normal text. this is normal text. this is normal text. + </fo:block> + + + <!-- table start --> + <fo:table border-width="3mm" background-color="yellow"> + <fo:table-column column-width="50mm"/> + <fo:table-column column-width="50mm"/> + <fo:table-column column-width="50mm"/> + <fo:table-body> + <fo:table-row> + <fo:table-cell ><fo:block>good</fo:block></fo:table-cell> + <fo:table-cell ><fo:block>bad</fo:block></fo:table-cell> + <fo:table-cell ><fo:block>ugly</fo:block></fo:table-cell> + </fo:table-row> + <fo:table-row> + <fo:table-cell ><fo:block>nice</fo:block></fo:table-cell> + <fo:table-cell ><fo:block>dice</fo:block></fo:table-cell> + <fo:table-cell ><fo:block>vice</fo:block></fo:table-cell> + </fo:table-row> + <fo:table-row> + <fo:table-cell ><fo:block>literature</fo:block></fo:table-cell> + <fo:table-cell ><fo:block>music</fo:block></fo:table-cell> + <fo:table-cell ><fo:block>art</fo:block></fo:table-cell> + </fo:table-row> + <fo:table-row> + <fo:table-cell ><fo:block>java</fo:block></fo:table-cell> + <fo:table-cell ><fo:block>perl</fo:block></fo:table-cell> + <fo:table-cell ><fo:block>python</fo:block></fo:table-cell> + </fo:table-row> + </fo:table-body> + </fo:table> + <!-- table end --> + + <!-- normal text --> + <fo:block text-align="start" start-indent="-3mm">this is normal text. this is normal text. this is normal text. + this is normal text. this is normal text. this is normal text. + </fo:block> + + +<!-- **************************** NEW PAGE ************************************* --> + + <!-- this defines a title level 2--> + <fo:block font-size="16pt" + font-family="sans-serif" + space-after.optimum="15pt" + text-align="center" + break-before="page"> + A table with borders around the cells + </fo:block> + + + <!-- normal text --> + <fo:block text-align="start">this is normal text. this is normal text. this is normal text. + this is normal text. this is normal text. this is normal text. + </fo:block> + + + <!-- table start --> + <fo:table> + <fo:table-column column-width="50mm"/> + <fo:table-column column-width="50mm"/> + <fo:table-column column-width="50mm"/> + <fo:table-body> + <fo:table-row> + <fo:table-cell border-width="0.5mm" background-color="yellow"><fo:block>good</fo:block></fo:table-cell> + <fo:table-cell border-width="0.5mm" background-color="yellow"><fo:block>bad</fo:block></fo:table-cell> + <fo:table-cell border-width="0.5mm" background-color="yellow"><fo:block>ugly</fo:block></fo:table-cell> + </fo:table-row> + <fo:table-row> + <fo:table-cell border-width="0.5mm" background-color="yellow"><fo:block>nice</fo:block></fo:table-cell> + <fo:table-cell border-width="0.5mm" background-color="yellow"><fo:block>dice</fo:block></fo:table-cell> + <fo:table-cell border-width="0.5mm" background-color="yellow"><fo:block>vice</fo:block></fo:table-cell> + </fo:table-row> + <fo:table-row> + <fo:table-cell border-width="0.5mm" background-color="yellow"><fo:block>literature</fo:block></fo:table-cell> + <fo:table-cell border-width="0.5mm" background-color="yellow"><fo:block>music</fo:block></fo:table-cell> + <fo:table-cell border-width="0.5mm" background-color="yellow"><fo:block>art</fo:block></fo:table-cell> + </fo:table-row> + <fo:table-row> + <fo:table-cell border-width="0.5mm" background-color="yellow"><fo:block>java</fo:block></fo:table-cell> + <fo:table-cell border-width="0.5mm" background-color="yellow"><fo:block>perl</fo:block></fo:table-cell> + <fo:table-cell border-width="0.5mm" background-color="yellow"><fo:block>python</fo:block></fo:table-cell> + </fo:table-row> + </fo:table-body> + </fo:table> + <!-- table end --> + + <!-- normal text --> + <fo:block text-align="start">this is normal text. this is normal text. this is normal text. + this is normal text. this is normal text. this is normal text. + </fo:block> + +<!-- **************************** NEW PAGE ************************************* --> + + <!-- this defines a title level 2--> + <fo:block font-size="16pt" + font-family="sans-serif" + space-after.optimum="15pt" + text-align="center" + break-before="page"> + 2 tables with thick borders around the cells + </fo:block> + + + <!-- normal text --> + <fo:block text-align="start">this is normal text. this is normal text. this is normal text. + this is normal text. this is normal text. this is normal text. + </fo:block> + + + <!-- table start --> + <fo:table> + <fo:table-column column-width="50mm"/> + <fo:table-column column-width="50mm"/> + <fo:table-column column-width="50mm"/> + <fo:table-body> + <fo:table-row> + <fo:table-cell border-width="2mm" background-color="yellow"><fo:block>good</fo:block></fo:table-cell> + <fo:table-cell border-width="2mm" background-color="yellow"><fo:block>bad</fo:block></fo:table-cell> + <fo:table-cell border-width="2mm" background-color="yellow"><fo:block>ugly</fo:block></fo:table-cell> + </fo:table-row> + <fo:table-row> + <fo:table-cell border-width="2mm" background-color="yellow"><fo:block>nice</fo:block></fo:table-cell> + <fo:table-cell border-width="2mm" background-color="yellow"><fo:block>dice</fo:block></fo:table-cell> + <fo:table-cell border-width="2mm" background-color="yellow"><fo:block>vice</fo:block></fo:table-cell> + </fo:table-row> + <fo:table-row> + <fo:table-cell border-width="2mm" background-color="yellow"><fo:block>literature</fo:block></fo:table-cell> + <fo:table-cell border-width="2mm" background-color="yellow"><fo:block>music</fo:block></fo:table-cell> + <fo:table-cell border-width="2mm" background-color="yellow"><fo:block>art</fo:block></fo:table-cell> + </fo:table-row> + <fo:table-row> + <fo:table-cell border-width="2mm" background-color="yellow"><fo:block>java</fo:block></fo:table-cell> + <fo:table-cell border-width="2mm" background-color="yellow"><fo:block>perl</fo:block></fo:table-cell> + <fo:table-cell border-width="2mm" background-color="yellow"><fo:block>python</fo:block></fo:table-cell> + </fo:table-row> + </fo:table-body> + </fo:table> + <!-- table end --> + + <!-- normal text --> + <fo:block text-align="start">this is normal text. this is normal text. this is normal text. + this is normal text. this is normal text. this is normal text. + </fo:block> + + <!-- table start --> + <fo:table> + <fo:table-column column-width="50mm"/> + <fo:table-column column-width="50mm"/> + <fo:table-column column-width="50mm"/> + <fo:table-body> + <fo:table-row> + <fo:table-cell border-width="2mm" background-color="yellow"><fo:block>good</fo:block></fo:table-cell> + <fo:table-cell border-width="2mm" background-color="yellow"><fo:block>bad</fo:block></fo:table-cell> + <fo:table-cell border-width="2mm" background-color="yellow"><fo:block>ugly</fo:block></fo:table-cell> + </fo:table-row> + <fo:table-row> + <fo:table-cell border-width="2mm" background-color="yellow"><fo:block>nice</fo:block></fo:table-cell> + <fo:table-cell border-width="2mm" background-color="yellow"><fo:block>dice</fo:block></fo:table-cell> + <fo:table-cell border-width="2mm" background-color="yellow"><fo:block>vice</fo:block></fo:table-cell> + </fo:table-row> + <fo:table-row> + <fo:table-cell border-width="2mm" background-color="yellow"><fo:block>literature</fo:block></fo:table-cell> + <fo:table-cell border-width="2mm" background-color="yellow"><fo:block>music</fo:block></fo:table-cell> + <fo:table-cell border-width="2mm" background-color="yellow"><fo:block>art</fo:block></fo:table-cell> + </fo:table-row> + <fo:table-row> + <fo:table-cell border-width="2mm" background-color="yellow"><fo:block>java</fo:block></fo:table-cell> + <fo:table-cell border-width="2mm" background-color="yellow"><fo:block>perl</fo:block></fo:table-cell> + <fo:table-cell border-width="2mm" background-color="yellow"><fo:block>python</fo:block></fo:table-cell> + </fo:table-row> + </fo:table-body> + </fo:table> + <!-- table end --> + + <!-- normal text --> + <fo:block text-align="start">this is normal text. this is normal text. this is normal text. + this is normal text. this is normal text. this is normal text. + </fo:block> + +<!-- **************************** NEW PAGE ************************************* --> + + <!-- this defines a title level 2--> + <fo:block font-size="16pt" + font-family="sans-serif" + space-after.optimum="15pt" + text-align="center" + break-before="page"> + 5 tables with borders + </fo:block> + + + <!-- normal text --> + <fo:block text-align="start">this is normal text. this is normal text. this is normal text. + this is normal text. this is normal text. this is normal text. + </fo:block> + + + <fo:table border-width="1.5mm" background-color="rgb(100,210,250)"> + <fo:table-column column-width="150mm"/> + <fo:table-body> + <fo:table-row> + <fo:table-cell><fo:block>bad</fo:block></fo:table-cell> + </fo:table-row> + </fo:table-body> + </fo:table> + + + <fo:table border-width="1.5mm" background-color="rgb(100,210,250)" > + <fo:table-column column-width="150mm"/> + <fo:table-body> + <fo:table-row> + <fo:table-cell><fo:block>bad</fo:block></fo:table-cell> + </fo:table-row> + </fo:table-body> + </fo:table> + + + <fo:table border-width="1.5mm" background-color="rgb(100,210,250)" > + <fo:table-column column-width="150mm"/> + <fo:table-body> + <fo:table-row> + <fo:table-cell><fo:block>bad</fo:block></fo:table-cell> + </fo:table-row> + </fo:table-body> + </fo:table> + + <fo:table border-width="1.5mm" background-color="rgb(100,210,250)"> + <fo:table-column column-width="150mm"/> + <fo:table-body> + <fo:table-row> + <fo:table-cell><fo:block>bad</fo:block></fo:table-cell> + </fo:table-row> + </fo:table-body> + </fo:table> + + <!-- normal text --> + <fo:block text-align="start">this is normal text. this is normal text. this is normal text. + this is normal text. this is normal text. this is normal text. </fo:block> - </fo:static-content> - <fo:flow flow-name="xsl-region-body"> - <fo:block font-size="10pt" font-family="sans-serif" line-height="10pt" space-after.optimum="3pt" font-weight="bold" start-indent="15pt"> - Content +<!-- **************************** NEW PAGE ************************************* --> + <fo:block font-size="16pt" + font-family="sans-serif" + line-height="20pt" + space-after.optimum="3pt" + break-before="page" + text-align="justify"> + A Contents table </fo:block> <!-- Here starts the table --> |