Close this window

Using the <spanspec> tag

Description

The spanspec tag identifies a horizontal span of columns and associated attributes that can subsequently be referenced by its spanname for repeated use in entry or entrytbl in different rows.

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" />
    <spanspec namest="col1" nameend="col2"
              spanname="dich" />
    <thead>
      <row>
        <entry spanname="dich">
          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 spanspec tag is an empty tag and does not contain any children.

Parents(what's this?)

tgroup, entrytbl
Close this window