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] Re: Problem with FO and HTML Output on address

This is a bug in FOP. It doesn't happen with other FO processors.
And it doesn't happen when the literallayout uses a monospaced font
(i.e., has class="monospaced" attribute).

For literallayout, this problem was fixed in version 1.62.4 of the
stylesheets by adding a text-align="start" property to the fo:block.
When you say it didn't work with literallayout, are you sure you
are using version 1.62.4?  It worked for me when I tested it
with FOP.

For address, Norm cautioned me against adding text-align="start"
to the fo:block because an address could be on a page where
text is centered (title page for example), and that property
on the fo:block for the address would override the alignment
for the page.  So I don't have a general solution for address.

If your address blocks are always left-aligned, you could customize
the address template.  Copy the template starting with
<xsl:template match="address"> in fo/verbatim.xsl to your
customization layer and add one line:

  <fo:block wrap-option='no-wrap'
 =>         text-align="start"
    <xsl:copy-of select="$content"/>

Bob Stayton
Sagehill Enterprises

----- Original Message ----- 
From: "Sylvain Perchaud" <sylvain@europe-shareware.org>
To: "Sean Wheller" <seanwhe@yahoo.com>; <docbook-apps@lists.oasis-open.org>
Sent: Thursday, December 18, 2003 3:23 AM
Subject: [docbook-apps] Re: Problem with FO and HTML Output on address

I replaced the address element with <literallayout> such as :

        <title>Informations utiles</title>
        Chez Bochet
        F-74500 Saint-Paul-en-Chablais

but the same problems occur :
1. the address is always aligned on the right of the page
2. if there's a space in a line (for example "Chez Bochet" in the second
line) this space is multiplied in the output (it gives something like
"Chez         Bouchet").

Le jeudi 18 décembre 2003, à 2:34, Sean Wheller a écrit:

>----- Original Message ----- 
>From: "Sylvain Perchaud"
>To: "Sean Wheller" <seanwhe@yahoo.com>
>Sent: Wednesday, December 17, 2003 7:12 PM
>Subject: a docbook question
>> Hello Sean,
>> I'm new to Docbook and I'm facing a page layout
>problem with the
>> <address>  element.
>> With the following structure :
>>     <sect2>
>>         <title>Informations utiles</title>
>>         <address>
>>             AFAS
>>             <street>Chez Bochet</street>
>>             <postcode>F-74500</postcode>,
>>             <country>FRANCE</country>
>>             <email>infos@afas-fr.org</email>
>>         </address>
>>     </sect2>
>> I face two problems in the output :
>> 1. the address is always aligned on the right of the
>> 2. if there's a space in an entry (for example "Chez
>Bochet" inside the
>> <street> element) this space is multiplied in the
>output (it gives
>> something like "Chez         Bouchet").
>> Do you know what I can do ?
>Do you Yahoo!?
>New Yahoo! Photos - easier uploading and sharing.

Sylvain Perchaud
Tel : +33 (0) 674 758 551

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

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