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] How to adjust listitem indentation for variablelists?

Hi Erik,
Your request was a little confusing in that you said you wanted it rendered 
as a "list", but set the parameter to render it as "blocks".  Your 
parenthetical statement indicated that you wanted it as "blocks", though.

This is a case where the stylesheets don't provide much flexibility.  The 
template that formats a listitem in "blocks" mode looks like this:

<xsl:template match="varlistentry" mode="vl.as.blocks">
  <xsl:variable name="id"><xsl:call-template 

  <fo:block id="{$id}" xsl:use-attribute-sets="list.item.spacing"
    <xsl:apply-templates select="term"/>

  <fo:block margin-left="0.25in">
    <xsl:apply-templates select="listitem"/>

As you can see, the margin-left property is hardcoded in the stylesheet. 
Fortunately, this template is very short, so you can copy it to a 
customization layer and change that value.

If you were using "list" format (side by side), then there is a processing 
instruction that can adjust the indent width.

Bob Stayton
Sagehill Enterprises

----- Original Message ----- 
From: "Erik Leunissen" <e.leunissen@hccnet.nl>
To: <docbook-apps@lists.oasis-open.org>
Sent: Friday, June 27, 2008 2:33 PM
Subject: [docbook-apps] How to adjust listitem indentation for 

> Hello all,
> I'm looking for a way to adjust the amount of indentation of the
> listitems of a varlistentry. The variablelist is being rendered as a
> list (i.e. the term preceding the listitem in the print output), using
> the FO parameter:
>    <xsl:param name="variablelist.as.blocks">1</xsl:param>
> Is what I want possible? If so, I'd very much appreciate a direction.
> Thanks in advance,
> Erik Leunissen.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

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