xsl-list
[Top] [All Lists]

Re: [xsl] FO: gap between cells in a table

2008-10-21 08:32:12
At 2008-10-21 11:50 +0200, Florent Georges wrote:
  I have to design a table in XSL FO, and the client would like
to have the overall layout like in the following image:

    http://www.fgeorges.org/tmp/table-headers.png

Looks to me like tables without gaps inside of table cells of a table with gaps.

  My question is about the gap between some of those cells (in
this image between "sub-tables" A, B, C and D, and the cell "Type
of activity".)  While in the "sub-tables" the borders should be
collapsed.

  What is the best approach for this problem?

I would implement the sub-tables as individual tables.

  I thought to use a table with a gap between its cells and
without borders collapsing, its cells being sub-tabels which have
border-collapse="collapse".  Do you think it is a good idea?

Yep!

Is there something easier?  What is the easiest way to set the gap
width between the sub-tables?

Since gaps are table-wide properties, I think embedding tables is best, and I haven't seen any tool support problems with embedded tables.

I hope this helps.

. . . . . . . . . . . Ken

--
Upcoming XSLT/XSL-FO hands-on courses:      Wellington, NZ 2009-01
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video sample lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg
Video course overview:  http://www.youtube.com/watch?v=VTiodiij6gE
G. Ken Holman                 mailto:gkholman(_at_)CraneSoftwrights(_dot_)com
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--