Close this window

Using the <colspec> tag

Description

The colspec tag specifies a column of a table or entrytbl

Example

This CNXML:


<table id="myers_briggs" summary="Chart of 
    Myers-Briggs types, with each column representing 
    opposite ends of the four dichotomies.">
  <tgroup cols="2" align="center">
    <colspec colname="col1" colnum="1" />
    <colspec colname="col2" colnum="2" />
    <thead>
      <row>
        <entry namest="col1" nameend="col2">
          Dichotomies
        </entry>
      </row>
    </thead>
    <tbody>
      <row>
        <entry>Extroverted</entry>
        <entry>Introverted</entry>
      </row>
      <row>
        <entry>Sensing</entry>
        <entry>iNtuition</entry>
      </row>
      <row>
        <entry>Thinking</entry>
        <entry>Feeling</entry>
      </row>
      <row>
        <entry>Judging</entry>
        <entry>Perceiving</entry>
      </row>
    </tbody>
  </tgroup>
</table>
        

Results in this display:

Table 1
Dichotomies
Extroverted Introverted
Sensing iNtuition
Thinking Feeling
Judging Perceiving

Attributes(what's this?)

Children(what's this?)

The colspec tag is an empty tag and does not contain any children.

Parents(what's this?)

tgroup, thead, tfoot, entrytbl
Close this window