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] height of rows in tables

Ah, what you are running into is this bit of code in the template with 

  <xsl:variable name="empty.cell" select="count(node()) = 0"/>

  <xsl:when test="$empty.cell">

This inserts a nonbreaking space in an empty cell.  I don't know why, but 
it was probably to work around some XSL-FO processor bug (anyone 

Since the fo:block in the cell is not empty, it generates a line area, and 
the line area has the current line-height, as well as the 2pt of cell 
padding above and below.  I think the height property on a table row is the 
minimum height, but it won't be smaller than the content's height.

To work around this problem for your tables, just put a comment inside each 
empty entry element in your divider rows. That will cause the non-breaking 
space to be omitted, and no line area to be generated.  Then your row 
height should work.

Bob Stayton
Sagehill Enterprises
DocBook Consulting

----- Original Message ----- 
From: "Ron Catterall" <ron@catterall.net>
To: "Bob Stayton" <bobs@sagehill.net>
Cc: <docbook-apps@lists.oasis-open.org>
Sent: Friday, September 22, 2006 1:29 PM
Subject: Re: [docbook-apps] height of rows in tables

> >Hi Ron,
>>You got the part that gets the PI value into a variable, now you need the 
>>part that uses the variable to add the property (attribute) to the 
>>fo:table-row.  See the xsl:if for $bgcolor to see how that is done. 
>>Something like:
>>    <xsl:if test="$row.height != ''">
>>      <xsl:attribute name="height">
>>        <xsl:value-of select="$row.height"/>
>>      </xsl:attribute>
>>    </xsl:if>
>>Bob Stayton
> Thanks yet again Bob.  I can now adjust row heights in both HTML and FO.
>                          ***BUT******BUT******BUT***
> The value of row-height you put in is added on to some standard or 
> default value - roughly 0.5cm (or about 20 pixels for HTML). For Fo using 
> XEP 4.7:
> put in    get
> 1.5cm     2.0cm
> 1.0cm     1.5cm
> 0.001cm   0.55cm
> -0.3cm    +0.25cm
> My measurements are done with a ruler on screen and paper - at best 
> approx.
> <?dbfo row-height="-0.3cm"?> get me a 2.5 mm blank row which is just 
> about what I want.  See p.441 of your book, which reads that row-height 
> sets the actual row height.
> For HTML:
> put in    get
> 20(px)    40
> 1         20
> -10       20
> There appears to be an absolute 20 pix minimum for HTML.
> -- 
> Ron Catterall, Phd, DSc email: ron@catterall.net
> Prolongacion de Hidalgo 140 http://catterall.net/
> San Felipe del Agua tel: +52 951 520 1821
> Oaxaca      68020 Mexico fax: +1 530 348 8309

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