Re: [docbook-apps] column spanning issue

From
Bob Stayton <>
Date
2006-08-23T19:11:00+00:00
ID
09c101c6c6e7$d9120660$b663f93f@totoro
Thread
Re: [docbook-apps] column spanning issue
Hi Jay,
I'm unable to duplicate your problem.  I cut and pasted your table into a 
document and processed with the fo/docbook.xsl stylesheet from 1.70.1 (and 
1.69.1 and 1.68.1) and I got this output:

            <fo:table-body start-indent="0pt">
              <fo:table-row>
                <fo:table-cell padding-left="2pt" padding-right="2pt" 
padding-top="2pt" padding-bottom="2pt" border-right-width="0.5pt" 
border-right-style="solid" border-right-color="black" text-align="center" 
number-columns-spanned="4">
                  <fo:block>VER</fo:block>
                </fo:table-cell>
                <fo:table-cell padding-left="2pt" padding-right="2pt" 
padding-top="2pt" padding-bottom="2pt" border-right-width="0.5pt" 
border-right-style="solid" border-right-color="black" text-align="center" 
number-columns-spanned="4">
                  <fo:block>FAM</fo:block>
                </fo:table-cell>
                <fo:table-cell padding-left="2pt" padding-right="2pt" 
padding-top="2pt" padding-bottom="2pt" text-align="center" 
number-columns-spanned="8">
                  <fo:block>PARTNO</fo:block>
                </fo:table-cell>
              </fo:table-row>
            </fo:table-body>


Bob Stayton
Sagehill Enterprises
DocBook Consulting



----- Original Message ----- 
From: "Jay Bryant" <>
To: <>
Sent: Wednesday, August 23, 2006 11:31 AM
Subject: [docbook-apps] column spanning issue


> Note that I have removed all attributes except number-columns-spanned, 
> for
> brevity's sake. I have also removed rows around the one causing the 
> problem.
>
> Given the following docbook fragment:
>
> <informaltable frame="none">
>  <tgroup cols="16" align="left" colsep="1" rowsep="0">
>    <colspec colname="c1" colwidth=".4in"/>
>    <colspec colname="c2" colwidth=".4in"/>
>    <colspec colname="c3" colwidth=".4in"/>
>    <colspec colname="c4" colwidth=".4in"/>
>    <colspec colname="c5" colwidth=".4in"/>
>    <colspec colname="c6" colwidth=".4in"/>
>    <colspec colname="c7" colwidth=".4in"/>
>    <colspec colname="c8" colwidth=".4in"/>
>    <colspec colname="c9" colwidth=".4in"/>
>    <colspec colname="c10" colwidth=".4in"/>
>    <colspec colname="c11" colwidth=".4in"/>
>    <colspec colname="c12" colwidth=".4in"/>
>    <colspec colname="c13" colwidth=".4in"/>
>    <colspec colname="c14" colwidth=".4in"/>
>    <colspec colname="c15" colwidth=".4in"/>
>    <colspec colname="c16" colwidth=".4in"/>
>    <tbody>
>      <row>
>        <entry align="center" namest="c1" nameend="c4">VER</entry>
>        <entry align="center" namest="c5" nameend="c8">FAM</entry>
>        <entry align="center" namest="c9" nameend="c16">PARTNO</entry>
>      </row>
>    </tbody>
>  </tgroup>
> </informaltable>
>
> I expect the following output from the docbook.fo stylesheet:
>
> <!-- table markup trimmed for brevity's sake -->
> <fo:table-cell number-columns-spanned="4">
>  <fo:block>VER</fo:block>
> </fo:table-cell>
> <fo:table-cell number-columns-spanned="4">
>  <fo:block>FAM</fo:block>
> </fo:table-cell>
> <fo:table-cell number-columns-spanned="8">
>  <fo:block>PARTNO</fo:block>
> </fo:table-cell>
>
> <!-- table markup trimmed for brevity's sake -->
>
> Instead, I get this:
>
> <!-- table markup trimmed for brevity's sake -->
> <fo:table-cell number-columns-spanned="4">
>  <fo:block>VER</fo:block>
> </fo:table-cell>
> <fo:table-cell number-columns-spanned="4">
>  <fo:block>FAM</fo:block>
> </fo:table-cell>
> <fo:table-cell>
>  <fo:block>PARTNO</fo:block>
> </fo:table-cell>
> <fo:table-cell>
>  <fo:block/>
> </fo:table-cell>
> <fo:table-cell>
>  <fo:block/>
> </fo:table-cell>
> <fo:table-cell>
>  <fo:block/>
> </fo:table-cell>
> <fo:table-cell>
>  <fo:block/>
> </fo:table-cell>
> <fo:table-cell>
>  <fo:block/>
> </fo:table-cell>
> <fo:table-cell>
>  <fo:block/>
> </fo:table-cell>
> <fo:table-cell>
>  <fo:block/>
> </fo:table-cell>
> <fo:table-cell>
>  <fo:block/>
> </fo:table-cell>
> <!-- table markup trimmed for brevity's sake -->
>
> Note that, in addition to not spanning, the number of cells is wrong (9
> rather than 8).
>
> What caused this and what can I do about it?
>
> Thanks.
>
> Jay Bryant
> Bryant Communication Services
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
>
>
>