The table body holds the actual content of tables, and you create table bodies with <fo:table-body> elements. This element is the one that contains the actual <fo:table-row> elements, which in turn contain the <fo:table- cell > elements that hold the data for the table.
You can use the following properties with the <fo:table-body element:
Common Border, padding, and background properties: background-attachment , background- color , background-image, background-repeat , background-position-horizontal, background-position-vertical, border-before-color, border-before-style, border-before-width, border-after-color, border-after- style, border-after-width, border-start-color, border-start-style, border- start-width, border-end-color, border-end-style, border-end-width, border-top-color, border-top-style, border-top-width, border-bottom-color, border-bottom-style, border-bottom-width, border-left-color, border-left-style, border-left-width, border-right-color, border-right-style, border-right-width, padding-before, padding-after, padding-start, padding-end, padding-top, padding-bottom, padding-left, padding-right
id
relative-position
As you can see in Listing 11.5, I use <fo:table-body> to create the tables body in tables.fo, as follows :
<fo:table> <fo:table-column column-width="30mm"/> <fo:table-column column-width="30mm"/> <fo:table-column column-width="30mm"/> <fo:table-column column-width="30mm"/> <fo:table-column column-width="30mm"/> <fo:table-column column-width="30mm"/> <fo:table-body> . . . </fo:table-body> </fo:table>
After starting the tables body, you use one <fo:table-row> element for each row in the table.