<table>

<table> 以表格形式呈現、包含在直行橫列中的文字內容。 14.1.1 TEI Tables
組件figures — 14 Tables, Formulæ, and Graphics
屬性
rows指出表格中的列數。
狀態 非必備的
資料類型

<rng:ref name="data.count"/>
data.count
If no number is supplied, an application must calculate the number of rows.
cols (columns) 指出表格中每一列所包含的行數。
狀態 非必備的
資料類型

<rng:ref name="data.count"/>
data.count
If no number is supplied, an application must calculate the number of columns.
屬於
可包含
宣告

<rng:element name="table">
<rng:ref name="att.global.attributes"/>
<rng:optional>
 <rng:attribute name="rows">
  <rng:ref name="data.count"/>
 </rng:attribute>
</rng:optional>
<rng:optional>
 <rng:attribute name="cols">
  <rng:ref name="data.count"/>
 </rng:attribute>
</rng:optional>
<rng:group>
 <rng:zeroOrMore>
  <rng:choice>
   <rng:ref name="model.headLike"/>
   <rng:ref name="model.global"/>
  </rng:choice>
 </rng:zeroOrMore>
 <rng:oneOrMore>
  <rng:ref name="row"/>
  <rng:zeroOrMore>
   <rng:ref name="model.global"/>
  </rng:zeroOrMore>
 </rng:oneOrMore>
</rng:group>
</rng:element>
element table
{
   att.global.attributes,
   attribute rows { data.count }?,
   attribute cols { data.count }?,
   ( ( model.headLike | model.global )*, ( row, model.global* )+ )
}
例子
<table rows="4cols="4">
 <head>台北飯店提供住房數目(2008年雙十國慶 )</head>
 <row role="label">
  <cell role="data"/>
  <cell role="data">經濟客房</cell>
  <cell role="data">標準客房</cell>
  <cell role="data">高級客房</cell>
 </row>
 <row role="data">
  <cell role="label">圓山大飯店</cell>
  <cell role="data">203</cell>
  <cell role="data">168</cell>
  <cell role="data">66</cell>
 </row>
 <row role="data">
  <cell role="label">凱撒大飯店</cell>
  <cell role="data">216</cell>
  <cell role="data">140</cell>
  <cell role="data">32</cell>
 </row>
 <row role="data">
  <cell role="label">喜來登大飯店</cell>
  <cell role="data">197</cell>
  <cell role="data">160</cell>
  <cell role="data">50</cell>
 </row>
 <row role="data">
  <cell role="label">君悅大飯店</cell>
  <cell role="data">177</cell>
  <cell role="data">130</cell>
  <cell role="data">22</cell>
 </row>
</table>