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: [Fwd: [docbook-apps] fop runs forever on the fo from a simplevariablelist]


Bob,

After some conversation on fop-user, the problem is now clear. It is 
both a desert topping and a floor wax: both a (known) FOP bug, and 
(apparently) a bug in the docbook fo XSLs. The offending FO is this:

    <fo:list-block id="id385546"
    *provisional-distance-between-starts="1em"*
    provisional-label-separation="0.25in" space-before.optimum="1em"
    space-before.minimum="0.8em" space-before.maximum="1.2em"
    space-after.optimum="1em" space-after.minimum="0.8em"
    space-after.maximum="1.2em">

1em is too small a value for the provisional-distance-between-starts. 
FOP loops forever, trying to fit the labels in that tiny column --- the 
FOP bug. But the value for provisional-distance-between-starts should be 
larger --- the bug in the docbook fo XSL?

When I specify the termlength for the variables (e.g. as "0.5in"), this 
appears to override the default 1em, and great-looking PDF is produced.

Dave

Bob Stayton wrote:

>I don't know why it is happening, but I tested your file
>with fop.0.20.5rc2 and I can confirm that it does
>as you say.  It processes successfully with fop-0.20.4, however,
>so I suspect it is a bug in that version. You could submit a
>bug report to the fop folks.
>
>
>Bob Stayton                                 400 Encinal Street
>Publications Architect                      Santa Cruz, CA  95060
>Technical Publications                      voice: (831) 427-7796
>The SCO Group                               fax:   (831) 429-1887
>                                            email: bobs@sco.com
>
>
>On Sat, Mar 29, 2003 at 04:09:49PM -0500, David Bridgeland wrote:
>  
>
>>I sent this the day everyone was auto-unsubscribed.
>>
>>Anyone have any ideas about why this is happening?
>>
>>Dave
>>
>>-------- Original Message --------
>>Subject: 	[docbook-apps] fop runs forever on the fo from a simple 
>>variablelist
>>Date: 	Tue, 25 Mar 2003 13:48:50 -0500
>>From: 	David Bridgeland <bridgeland@yahoo.com>
>>To: 	docbook-apps@lists.oasis-open.org
>>
>>
>>
>>From some simple docbook source I am creating FO that causes FOP to hang, 
>>generating an increasingly long log file. 
>>
>>The problematic docbook source contains a simple variablelist, and 
>>little else:
>>
>>   <!-- -*- DocBook -*- -->
>>   <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook V4.2//EN"
>>   "file:///c:/apps/docbook/dtd/docbookx.dtd" [
>>   ]>
>>   <chapter id="JavaScript" label="10" status="draft">
>>   <title>JavaScript</title>
>>   <para>
>>   foo
>>   </para>
>>   <variablelist>
>>   <title>Equation Variables</title>
>>   <varlistentry>
>>   <term>p</term>
>>   <listitem><para>monthly payment amount</para></listitem>
>>   </varlistentry>
>>   </variablelist>
>>   </chapter>
>>
>>Note that if I remove the variablelist, this little docbook file works fine.
>>
>>The docbook validates against the docbook dtd v4.2. I am a FO novice, 
>>but the relevant part of the FO file seems innocent:
>>
>>   <fo:block font-style="italic" font-weight="normal" font-size="12pt"
>>   hyphenate="true" space-after.minimum="0.4em"
>>   space-after.optimum="0.6em" space-after.maximum="0.8em"
>>   space-before.optimum="1em" space-before.minimum="0.8em"
>>   space-before.maximum="1.2em"
>>   keep-with-next.within-column="always">Equation Variables</fo:block>
>>   <fo:list-block id="id330095"
>>   provisional-distance-between-starts="1em"
>>   provisional-label-separation="0.25in" space-before.optimum="1em"
>>   space-before.minimum="0.8em" space-before.maximum="1.2em"
>>   space-after.optimum="1em" space-after.minimum="0.8em"
>>   space-after.maximum="1.2em">
>>   <fo:list-item id="id330102" space-before.optimum="1em"
>>   space-before.minimum="0.8em" space-before.maximum="1.2em">
>>   <fo:list-item-label end-indent="label-end()" text-align="start">
>>   <fo:block><fo:inline>p</fo:inline></fo:block>
>>   </fo:list-item-label>
>>   <fo:list-item-body start-indent="body-start()"><fo:block>monthly
>>   payment amount</fo:block></fo:list-item-body>
>>   </fo:list-item></fo:list-block></fo:block></fo:flow></fo:page-sequence></fo:root>
>>
>>The log file repeats the same error message forever:
>>
>>   [INFO] area contents overflows area
>>   [ERROR] Couldn't find hyphenation pattern en
>>   [ERROR] Error building hyphenation tree for language en
>>   [INFO] area contents overflows area
>>   [ERROR] Couldn't find hyphenation pattern en
>>   [ERROR] Error building hyphenation tree for language en
>>   [INFO] area contents overflows area
>>   [ERROR] Couldn't find hyphenation pattern en
>>   [ERROR] Error building hyphenation tree for language en
>>   ....
>>
>>I am using docbook-xsl-1.60.1 to create FO, and fop-0.20-5rc2 to create 
>>PDF.
>>
>>I see from past postings that others are successfully using variablelist 
>>with fop. Am I missing something easy?
>>
>>Dave Bridgeland
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
>>For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>>
>>
>>
>>
>>
>>---------------------------------------------------------------------
>>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]