Re: [docbook-apps] table headers

From
<>
Date
2005-10-11T07:46:43+00:00
ID
Thread
Re: [docbook-apps] table headers
I'm sorry, I was being lazy and using
a very (very) shorthand html snipped to represent what I need to do - which
is :more like:

(although it needs to actually be in
docbook). The point is that I have multiple head entries, dotted about
the table. Currently I am just using <emphasis> to fake the head
entries, but I'd much rather have it defined in terms of the tables structure
rather than how I want it to look - hense why I am using Docbook in the
first place.

<table>

    <row>

        <headentry></headentry>
      

        <headentry></headentry>

    </row>

    <row>

        <entry></entry>
      

        <entry></entry>

    </row>

    <row>

        <headentry></headentry>
      

        <entry></entry>

    </row>

    <row>

        <entry></entry>
      

        <entry></entry>

    </row>

</table>

I hope I have been a little more clear
this time..

thanks

Michael Smith <> wrote on 11/10/2005
08:22:34:

> Tom,

> 

> See Bob's response. Whatever your actual markup is (it can't be

> what you have below, because as Bob points out, it has no rows).

> 

> Are you sure that your source is actually valid? If I run the

> following through the FO and HTML stylesheets, I get <th>'s
in

> output exactly where they're expected.

>   <article>

>     <title></title>

>     <table>

>       <caption>foo</caption>

>       <tr>

>         <th>head1</th>

>         <th>head2</th>

>       </tr>

>       <tr>

>         <td>cell1</td>

>         <td>cell2</td>

>       </tr>

>       <tr>

>         <th>head3</th>

>         <th>head4</th>

>       </tr>

>       <tr>

>         <td>cell3</td>

>         <td>cell4</td>

>       </tr>

>     </table>

>   </article>

> 

>  writes:

> 

> > Neil Roeth <> wrote on 10/10/2005 23:57:09:

> > 

> > > Will a tgroup do what you want? Each tgroup can have a thead
and tfoot.

> > 

> > No, multiple tgroups do not quite achieve the same effect. Each
tgroup 

> > renders as a whole new table - so you just end up with multiple
stacked 

> > tables. It also doesnt cater for the time when I need to say:

> > 

> > <table>

> >     <th></th><th>/th>

> >     <td></td><td></td>

> >     <th></th><td>/td>

> >     <td></td><td></td>

> > <table>

> > 

> > Really, I need to be able to specify a single cell to be a header
cell, 

> > regardless of where it appears in the table. Is this possible,
or must I 

> > fake it with a <emphasis role="bold"> or something
similar? If so, what 

> > would be the best method - one that will render in both XHTML
and PDF?

> > 

> > > On Oct 10,  ()

> > wrote:

> > >  > I need to create a docbook table with a structure
similar to this:

> > >  > 

> > >  > <table>

> > >  >     <th></th>

> > >  >     <td></td>

> > >  >     <td></td>

> > >  >     <th></th>

> > >  >     <td></td>

> > >  >     <td></td>

> > >  > </table>

> > >  > 

> > >  > ie. I ned to be able to have multiple thead sections.
When I try 

> > this, the 

> > >  > style sheets seem to put both theads at the top
of the table (which I 

> > gess 

> > >  > makes sence). How could I create a table with
multiple table headers 

> > at 

> > >  > varying positions in the table?

> > >  > 

> > >  > 

> > >  > thanks in advance

> > >  > tom

> > >  > 

> > >  > -- 

> > >  > Tom Kirkpatrick

> > >  > Web Developer - Virus Bulletin

> > > 

> > > -- 

> > > Neil Roeth

> > 

> > 

> > -- 

> > Tom Kirkpatrick

> > Web Developer - Virus Bulletin

> > 

> > -- 

> > Tom Kirkpatrick

> > Web Developer - Virus Bulletin

> -- 

> Michael Smith

> http://sideshowbarker.net/

> (The attachment smime.p7s has been stripped from this message)

-- 

Tom Kirkpatrick

Web Developer - Virus Bulletin