table (Domino DTD)

Represents a table in rich text.

Containment Hierarchy

Contained by: %richtext.block;

Contains: <border>, <tablecolumn>, <tablerow>, <tablerowstyle>

Syntax

<!ELEMENT table ( tablerowstyle?, border?, tablecolumn*, tablerow* )>

Content

tablerowstyle?, border?, tablecolumn*, tablerow*

Contains an optional <tablerowstyle> element, an optional <border> element, followed by any number of <tablecolumn> and <tablerow> elements.

Attributes

<!ATTLIST table

widthtype

(%table.widthtypes;)

#IMPLIED

minrowheight

%length;

"0"

rowspacing

%length;

"0"

columnspacing

%length;

"0"

cellborderstyle

(%table.cell.border.styles;)

"solid"

cellbordercolor

%color;

"black"

colorstyle

(%table.color.styles;)

"none"

bgcolor

%color;

#IMPLIED

altbgcolor

%color;

#IMPLIED

leftmargin

%lenpct;

"1in"

rightmargin

%lenpct;

"100%"

r4spacing

%boolean;

"false"

rowdisplay

(%table.row.displays;)

"all"

rowtimer

%integer;

#IMPLIED

sizetabsequally

%boolean;

#IMPLIED

firsttabindent

%pixels;

#IMPLIED

tablocation

(%table.tablocations;

#IMPLIED

outsidewrap

%boolean;

"false"

insidewrap

%boolean;

"false"

insidewrapheight

%length;

#IMPLIED

%html.core.attrs;

%direction.attrs;

>

altbgcolor

Other color to use for coloring the table background, when using styles that involve dual color schemes, such as those defined in the %table.color.styles; entity.

bgcolor

Background color of the table.

columnspacing

Sets cell spacing between the cell text and column borders.

cellbordercolor

Border color for all cells.

cellborderstyle

Type of border for cells as defined in the %table.cell.border.styles; entity.

colorstyle

Sets the color style for a table as defined in the %table.color.styles; entity.

firsttabindent

Indicates the size of the indent to apply to the first tab when the rowdisplays attribute is set to "tabs."

insidewrap

If true, allows text to flow from one cell to the next, horizontally.

insidewrapheight

Cell height for text to fill before it flows over into the next cell.

leftmargin

Sets the left margin of the table, measured as a percentage of the available window width.

minrowheight

Sets minimum height for all rows.

outsidewrap

If true, wraps text around the outside of the table.

r4spacing

If true, makes the table spacing compatible with Notes Release 4.

rightmargin

Sets the right margin of the table, measured as a percentage of the available window width.

rowdisplay

Displays each row in the table in the style defined in the %table.row.displays; entity.

rowspacing

Sets row spacing between the cell text and row borders.

rowtimer

Number of milliseconds that should elapse before displaying the next row, when the rowdisplay attribute equals timer.

sizetabsequally

If true, and if the rowdisplay attribute is set to "tabs," creates tabs of equal size in the resulting table.

tablocation

Indicates where the tab displays on the row. Can be any of the options of the %table.tablocations; entity.

widthtype

Table width as defined in the entity described as follows.

Defined entities for <table> element

The %table.tablocations; entity defintes the options for the placement of tabs on a row in a table if the Show only one row at a time option is selected as a table property.

Syntax:

<!ENTITY % table.tablocations "top | left | bottom | right">

bottom

Displays the row tabs at the end of the currently displaying table row. Tabs look like rolodex index tabs.

left

Displays the row tabs in a vertical list to the left of the table row.

right

Displays the row tabs in a vertical list to the right of the table row.

top

Displays the row tabs at the beginning of the currently displaying table row. Tabs look like rolodex index tabs.

The %table.widthtypes; entity defines the options for the width of a table.

Syntax:

<!ENTITY % table.widthtypes "fixedleft | fixedcenter | fixedright | fitmargins | fitwindow">

fitwindow

Sets table width to be the same size as the window, extending beyond the margins of a given frame size.

fixedcenter

Sets a measured width for a table, regardless of frame size and centers it.

fixedleft

Sets a measured width for a table, regardless of frame size and positions it to align with the left side of the frame.

fitmargins

Sets table width to extend from margin to margin in a given frame size.

fixedright

Sets a measured width for a table, regardless of frame size and positions it to align with the right side of the frame.

The %table.cell.border.styles; entity defines the choices to set the border style around a table cell.

Syntax:

<!ENTITY % table.cell.border.styles "solid | ridge | groove">

groove

Border appears to cut into the page.

ridge

Border appears to be raised off the page.

solid

Border consists of a solid line.

The %table.color.styles; entity defines the choices for table coloring.

Syntax:

<!ENTITY % table.color.styles "none | solid | altrows | altcolumns | lefttop | left | righttop | right | top">

altcolumns

Columns alternate between the two colorsspecified as the color and altbgcolor attributes of <table>.

altrows

Rows alternate between the two colors specified as the color and altbgcolor attributes of <table>.

left

The leftmost column is the color specified in the color attribute of <table>, the rest of the columns are the color specified in its altbgcolor attribute.

lefttop

The first column and first row are the color specified in the table's color attribute, the rest of the table is the color specified in the altbgcolor attribute of <table>.

none

No table-wide coloring.

right

The rightmost column is the color specified in the color attribute of <table>, the rest of the columns are the color specified in its altbgcolor attribute.

righttop

The last column and first row are the color specified in the color attribute of <table>, the rest of the table is the color specified in its altbgcolor attribute.

solid

Entire table is a single color.

top

The first row is the color specified by the color attribute of <table>, the rest of the rows are the color specified in its altbgcolor attribute.

The %table.row.displays; entity defines the different options for displaying each row in a table.

Syntax:

<!ENTITY % table.row.displays "all | tabs | timer | onclick | compute | tabscompute | onclicktimer | onopentimer | captions">

all

Shows all table rows.

captions

Shows a row based on the caption or tab label. This option is available when display is set to Show only one row at a time and the Users picks row via captions choice is selected.

compute

Switches rows programmatically.

onclick

Advances to the next row with each mouse click.

onclicktimer

Once, on click, cycles through rows displaying each for the number of milliseconds indicated by the timer attribute.

onopentimer

Once, when opened, cycles through rows displaying each for the number of milliseconds indicated by the timer attribute.

tabs

Displays rows when you click on table tabs. This option is available when display is set to Show only one row at a time and the Users picks row via tab buttons choice is selected.

tabscompute

Shows tabs when switching rows programmatically, so you can pick the row.

timer

Continually switches rows based on the number of milliseconds specified in the rowtimer attribute of <table>.

Example