<cell> (Template Tag)


Description


The <cell> tag is the basic building block of a table. Several cells create rows or columns of the table.

This tag defines individual cells of the table.


Example


 <?xml version="1.0" encoding="utf-8"?>

. . .

   <table>

     <columns>

       <column width="5.0">

       <column width="6.0">

     </columns>

     <row>

       <cell>

         <text>Cell text No1</text>

       </cell>

       <cell>

         <text>Cell text No2</text>

       </cell>

     </row>

   </table>

. . .


Attributes



Attribute

Description

Table-related attributes


rowspan

colspan

text-align


Tag specific attributes


background

This attribute defines a background in a cell.

background-color

This attribute defines a color of background in a cell.

border-color

border-color-left/top/right/bottom

This group of attributes defines colors of borders of a cell. You can define a color of all the border at once or a color of each border separately.

border-style

border-style-left/top/right/bottom

This group of attributes defines styles of borders of a cell. You can define a style of each border separately.

border-width

border-width-left/top/right/bottom

This group of attributes defines styles of borders of a cell. You can define a width of each border separately.

font

This attribute defines font used in a cell.

font-size

This attribute defines size of font used in a cell.

font-family

This attribute defines family of font used in a cell.

font-style

This attribute defines style of font used in a cell.

foreground-color

This attribute defines a color of foreground in a cell.

padding

padding-left/top/right/bottom

This group of attributes defines padding inside a cell. You can define a width of each padding separately.

rowspan


style

This attribute defines style used in a cell.

text-align




Child elements permitted



Child element

Description

text, br, image,
paragraph, table, container,

These child elements define components inside a cell



Parent elements permitted


row,


Child elements prohibited


Any parent element is prohibited except for the elements permitted.


Parent elements prohibited


Any parent element is prohibited except for <row>.