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] First line indent for specific elements ?

There is no parameter, but there are attribute-sets that could help.  The
blockquote.properties attribute-set would work for blockquote.  See this
reference for how to use attribute-sets:


For para, you may have to customize the template with match="para" in
fo/block.xsl.  It uses an attribute-set named 'normal.para.spacing', but
that attribute set is used by several other elements that you probably would
not want to affect.  It is a short template so it is easy to customize.

Or you could do it in the attribute-set with a choose statement to limit its
effect, like this:

<xsl:attribute-set name="normal.para.spacing">
  <xsl:attribute name="text-indent">
      <xsl:when test="self::para">2em</xsl:when>

The para element is used in a lot of contexts, including lists, qandaset,
and even tables.  There may be contexts where the above attribute-set is not
used and you want the indent, or where it is used and you don't want the

Bob Stayton
Sagehill Enterprises
DocBook Consulting

----- Original Message ----- 
From: "Sven Crouse" <svenc@snet.net>
To: <docbook-apps@lists.oasis-open.org>
Sent: Wednesday, October 12, 2005 8:42 AM
Subject: [docbook-apps] First line indent for specific elements ?

> Hi list.  I've been searching for a way to enable first line indent for
> certain elements ( e.g. para, blockquote ).  Is there a parameter or
> must I create a customization layer and, if so, what must it contain ?
> Sven
> ---------------------------------------------------------------------
> 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]