OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Nested table: separator problem


I looked at the stylesheets and found that they were not written to handle
nested tables. There are many instances where a template refers its ancestor
tgroup or table, but does not select the closest ancestor.  That is what is
happening in your case.

I asked Norm about this, and here is his response:

"You can't nest CALS tables inside other CALS tables no matter
how much markup you put in between them. This used to be enforced with
exclusions in the SGML DTD but now I guess it should be enforced in
the stylesheets.

I suggest adding a test in table.xsl that reports an error if
<table> or <informaltable> has an ancestor <table> or <informaltable>.

The workaround for Bjoern is to use HTML tables."

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Pool 475-1 FRD TE-N" <Pool475-1.FRDTE-N@zf.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Thursday, October 28, 2004 4:37 AM
Subject: [docbook-apps] Nested table: separator problem


> Hi,
>
> another question: why does my table (FO output) in the example below look
> like this (although I set colsep's for the inner table to 0)? If I set
> colsep on tgroup to 0, it works. Does anybody have an explanation for
this?
>
> ----------------------------
> |                          |
> | test   | test     test   |
> |                          |
> ----------------------------
>
>
> Greetings,
> Bjoern
>
> Example:
>
> <informaltable>
>   <tgroup cols="1">
>     <colspec colname="col1"/>
>     <tbody>
>       <row>
>         <entry>
>           <para>
>             <informaltable frame="none">
>               <tgroup cols="3">
>                 <colspec colname="col1" colsep="0"/>
>                 <colspec colname="col2" colsep="0"/>
>                 <colspec colname="col3" colsep="0"/>
>                 <tbody>
>                   <row>
>                     <entry>test</entry>
>                     <entry>test</entry>
>                     <entry>test</entry>
>                   </row>
>                 </tbody>
>               </tgroup>
>             </informaltable>
>           </para>
>         </entry>
>       </row>
>     </tbody>
>   </tgroup>
> </informaltable>
>
>




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]