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] Customizing procedure steps

Hi Robert,
No, you are not missing something obvious, it is harder than it should be.  Although 
there is a gentext entry for step in context="title", it is not used by the 
stylesheets.  Instead, the step number is generated using its own template in 
common/common.xsl that starts with:

<xsl:template match="step" mode="number">

You could add your own call to the gentext templates there.

However, it also turns out that the indent for procedure steps is hard coded in the 
template with match="procedure" in fo/lists.xsl:

    <fo:list-block xsl:use-attribute-sets="list.block.spacing"

So you will have to customize that template as well in order to change the 
provisional-distance-between-starts property to make space for "Step".  That indent 
should be a parameter, as it is for other list elements.

Bob Stayton
Sagehill Enterprises

----- Original Message ----- 
From: "Robert Fekete" <frobert@balabit.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Thursday, April 15, 2010 12:57 AM
Subject: [docbook-apps] Customizing procedure steps

> Hi,
> I would like my procedure steps to start with "Step %n." instead of "%n."
> I thought this would be a simple gentext customization, but either it's more
> complicated, or I am missing something totally obvious.
> Any help is greatly appreciated.
> Regards,
> Robert Fekete
> ---------------------------------------------------------------------
> 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]