>>>>> Steinar Bang <[EMAIL PROTECTED]>:

> Can the spanning header be done with multible <tgroup> elements?
> Eg. something like this?

>  <table>
>   <tgroup>
>     <thead>
>      <entry>Some text spanning multiple columns</entry>
>     </thead>
>     ...
>   </tgroup>
>   <tgroup>
>     <thead>
>      <entry>Some more text spanning multiple columns</entry>
>     </thead>
>     ...
>   </tgroup>
>  </table>

This looks like two separate tables stuck close together in HTML.  Not
the look I was aiming for.

Also, the only way I found for both <tgroup> elements to have the same
value, was to set pgwide="1" on the <table>.  Is there another way?

Thanx!


- Steinar

My table test document follows:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://localhost/xml/dtds/docbook4.1.2/docbookx.dtd";>


<article>
  <section>
    <title>A section</title>

    <table pgwide="1">
      <title>A table</title>
      <tgroup cols="3">
        <colspec colname="c1" align="left"/>
        <colspec colname="c2"/>
        <colspec colname="c3"/>
        <thead>
          <row>
            <entry namest="c1" nameend="c3">Some text spanning multiple columns</entry>
          </row>
        </thead>
        <tbody>
          <row>
            <entry>Header1</entry>
            <entry></entry>
            <entry></entry>
          </row>
          <row>
            <entry>Header2</entry>
            <entry></entry>
            <entry></entry>
          </row>
          <row>
            <entry>Header3</entry>
            <entry></entry>
            <entry></entry>
          </row>
        </tbody>
      </tgroup>
      <tgroup cols="3">
        <colspec colname="c1"/>
        <colspec colname="c2"/>
        <colspec colname="c3"/>
        <thead>
          <row>
            <entry namest="c1" nameend="c3" align="left">Some more text spanning 
multiple columns</entry>
          </row>
        </thead>
        <tbody>
          <row>
            <entry>Header4</entry>
            <entry></entry>
            <entry></entry>
          </row>
          <row>
            <entry>Header5</entry>
            <entry></entry>
            <entry></entry>
          </row>
        </tbody>
      </tgroup>
    </table>
  </section>
</article>

Reply via email to