This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[docbook-apps] Re: Indenting a paragraph


Jirka Kosek <jirka@kosek.cz> writes:
> Guy Worthington wrote:

>> [After modifying the paragraph layout (so that the first
>> paragraph after a heading isn't indented but all the
>> following paragraphs are) I had a problem with lists.
>> The problem was that the bullet point for a listitem
>> occurred on the line above the text, rather than just
>> to the left of the text.]

> Problem is that new para templates override (they have bigger import
> precedence) following template from fo/lists.xsl:
> 
> <xsl:template match="listitem/*[1][local-name()='para' or
>                                     local-name()='simpara' or
>                                     local-name()='formalpara']
>                       |step/*[1][local-name()='para' or
>                                     local-name()='simpara' or
>                                     local-name()='formalpara']
>                       |callout/*[1][local-name()='para' or
>                                     local-name()='simpara' or
>                                     local-name()='formalpara']"
>                priority="2">
>    <fo:block>
>      <xsl:call-template name="anchor"/>
>      <xsl:apply-templates/>
>    </fo:block>
> </xsl:template>
> 
> It should be sufficient to put this template into your customization
> layer. This template doesn't use normal.para.spacing attribute set on
> the first para in listitem.

I've just cut and pasted the magic words above into
the customization layer and compiled my document.
Your magic worked -- the lists problem has gone.


To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]