Creating Table Columns: fo:table-column

Creating Table Columns : <fo:table-column>

You include one <fo:table-column> element for each column you want in the table. You can use this element to indicate characteristics that apply to table cells that have the same column. One of the most important properties here is the column-width property, which you use to set the width of each column.

You can use the following properties with the <fo:table-column> 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

  • column-number

  • column-width

  • number-columns-repeated

  • number-columns- spanned

  • visibility

In tables.fo, I give each column the same width, 30mm, 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> 

After specifying each column, you create the tables body.



Inside XSLT
Inside Xslt
ISBN: B0031W8M4K
EAN: N/A
Year: 2005
Pages: 196

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net