align Horizontal Alignment (OASIS Table Model)

Sets the horizontal (line) alignment for the text inside the associated element, controlling how the text is placed horizontally in the cell for display.

Usage/Remarks

Character alignment is set using three attributes:
  1. @align is set to “char”;
  2. @char contains the character to use for the aligning, for example, a decimal point “.” or equal sign “=”; and
  3. @charoff contains the percent of the current column width to the left of the (left edge of the) alignment character, for example, “30”.
The official OASIS Exchange (CALS) Table Model documentation can be found at http://www.oasis-open.org/specs/a502.htm
OPTIONAL on elements: <oasis:colspec>, <oasis:entry>, <oasis:tgroup>
Value Meaning
center The text will be centered within the Table Entry.
char The text will be aligned relative to a specified character; the character to be used is the value of the @char attribute.
justify The text will be aligned quad left and right.
left The text will be aligned flush left.
right The text will be aligned flush right.
Restriction If @align is not supplied on an <oasis:entry>, the value is inherited from the applicable <oasis:colspec> of the containing <oasis:tgroup>, or if none is available, the default is “left”.
Tagged Sample

Setting alignment for table cells

...
<oasis:row>
<oasis:entry>Comprehensive care (5 trials)</oasis:entry>
<oasis:entry align="center">151/597</oasis:entry>
<oasis:entry align="center">159/584</oasis:entry>
<oasis:entry align="center">0.91 (0.70 to 1.19)</oasis:entry>
<oasis:entry></oasis:entry>
<oasis:entry align="center">20.5</oasis:entry>
<oasis:entry align="char" char="." charoff="30">21.4</oasis:entry>
</oasis:row>
...