Next in thread → Next in month →

Re: [docbook-apps] is variablelist.max.termlength ignored?

From
Bob Stayton <>
Date
2009-05-11T21:20:58+00:00
ID
01a201c9d27e$599fb1c0$6400a8c0@pazu
Thread
Re: [docbook-apps] is variablelist.max.termlength ignored?
Hi,
I think there is a misunderstanding about what variablelist.max.termlength 
means.  It isn't the minimum, it is the maximum.  If all your terms are 
shorter that 24 characters, it will have no effect.  The width is then 
computed based on the longest actual character count among your listitems, 
times 0.6em.  If you want a wider ratio than 0.6, you need to customize this 
template in fo/lists.xsl:

<xsl:template match="variablelist" mode="vl.as.list">

Also, the list presentation choices in FO are 'block' and 'list', while the 
choices in HTML output are 'table' and 'list'. So 'variablelist.as.table' is 
only an HTML stylesheet parameter.  Kind of strange, but the params indicate 
the elements used in the output.

Bob Stayton
Sagehill Enterprises



----- Original Message ----- 
From: "Bergfrid Skaara" <>
To: <>
Sent: Tuesday, May 05, 2009 3:52 AM
Subject: [docbook-apps] is variablelist.max.termlength ignored?


> Hi,
> it seems like the parameter <xsl:param
> name="variablelist.max.termlength">24</xsl:param> is being ignored in
> FO output. Alternatively, the calculation of the width of the term
> elements themselves might be incorrect. The problem term is
> "ERR_NUMOFCARDS" in Verdana 10pt.
>
> I'm not using any of the 4 higher prioritized methods for setting the
> term width. I do however have variablelist.as.table="0".
>
> Adding a dbfo PI to the specific variablelist with an explicit
> term-width (of 10em) works and solves my immediate problem, but since
> our documents frequently use variablelists, manual tuning for each
> list is not an option.
>
> I use the DocBook 5.0 stylesheets shipped with oXygen 10.0
>
> Best regards,
> Bergfrid Skaara
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
>
>
>
Next in thread → Next in month →