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]

Re: [docbook-apps] lists not rendered correctly


I tried using the code from Mauritz, but it produced
all my document in single spacing (I don't know why)
but adding the code suggested by Bob solved my problem
like magic. :-)

Many thanks for your effort to solve this problem. :-)

Deepak K. Shrestha


--- Bob Stayton <bobs@sagehill.net> wrote:

> Hi Deepak,
> As Mauritz points out, it is not a bug in FOP.  The
> line-height property
> adds space above the text, so the value of 2.4 opens
> up a taller block area
> for the paragraph.  But the bullet or number label
> does not have that
> line-height.  I haven't tested this, but you could
> try adding this to your
> customization:
> 
> <xsl:attribute-set name="list.item.spacing">
>   <xsl:attribute
> name="line-height">2.4</xsl:attribute>
> </xsl:attribute-set>
> 
> That should set the line-height for the whole list
> item, including the
> label.
> 
> Bob Stayton
> Sagehill Enterprises
> DocBook Consulting
> bobs@sagehill.net
> 
> 
> ----- Original Message ----- 
> From: "Deepak Shrestha" <d88pak@yahoo.com>
> To: "Bob Stayton" <bobs@sagehill.net>; "Mauritz
> Jeanson"
> <mj@johanneberg.com>;
> <docbook-apps@lists.oasis-open.org>
> Sent: Friday, November 05, 2004 7:20 AM
> Subject: Re: [docbook-apps] lists not rendered
> correctly
> 
> 
> > --- Bob Stayton <bobs@sagehill.net> wrote:
> > > Are you using a customization file?  If so, can
> you
> > > post that?
> >
> >
> > By the way I checked it with fo/docbook.xsl and
> got
> > the output without problem. As you suspected, I
> tried
> > to check customization layer (adding line by line
> and
> > checking the output). I found that double spacing
> the
> > paragraph in my customization layer seems to cause
> the
> > problem. After I added the follwoing lines (as you
> > suggested me before), I found the problem in list
> > rendering.
> > #######################################
> > <xsl:template
> match="para[not(ancestor::footnote)]">
> > <fo:block line-height="2.4">
> > <xsl:apply-imports/>
> > </fo:block>
> > </xsl:template>
> > #######################################
> >
> > Is it a bug in FOP?
> >
> > Deepak K. Shrestha
> >
> >
> >
> >
> > >
> > > ----- Original Message ----- 
> > > From: "Deepak Shrestha" <d88pak@yahoo.com>
> > > To: "Mauritz Jeanson" <mj@johanneberg.com>;
> "'Bob
> > > Stayton'"
> > > <bobs@sagehill.net>;
> > > <docbook-apps@lists.oasis-open.org>
> > > Sent: Thursday, November 04, 2004 10:26 PM
> > > Subject: RE: [docbook-apps] lists not rendered
> > > correctly
> > >
> > >
> > > > > I had a look at it. In the "Document
> Properties"
> > > > > dialog in Adobe Reader, the
> > > > > entry for "PDF Producer" was "null", which
> is a
> > > bit
> > > > > odd. Whenever I create a
> > > > > PDF with FOP, this entry says "FOP 0.20.5".
> > > >
> > > > By the way I am using Morphon XML
> Editor(version
> > > > 3.1.4) and processed that PDF with plugin
> (called
> > > > Render PDF) for that Editor (which uses Saxon
> and
> > > FOP,
> > > > which is their own version I guess.). I had a
> look
> > > at
> > > > the document properties and found no generator
> as
> > > you
> > > > said. But I tried with Saxon and FOP sepertely
> to
> > > test
> > > > it which I placed it at
> > > >
> > >
> >
>
http://www.geocities.com/d88pak/dbapps_list/foptest.pdf
> > > >
> > > > This time it shows the generator but problem
> is
> > > still
> > > > the same.
> > > >
> > > > The full source produced by this editor for my
> > > test
> > > > file is here:
> > > >
> -----------------------------------------------
> > > > <?xml version="1.0" encoding="UTF-8"?>
> > > > <?xml-stylesheet
> > > >
> > >
> >
>
href="file://localhost/home/deepak/documents/docbooks/thesis/css/thesis_docb
> > > ook.css"
> > > > type="text/css"?>
> > > > <!DOCTYPE article PUBLIC "-//OASIS//DTD
> DocBook
> > > XML
> > > > V4.3//EN"
> > > >
> > >
> >
>
"file:/home/deepak/DocBook/DTD-XML/docbook-xml-4.3/docbookx.dtd">
> > > > <article>
> > > >   <title>Same Problem with FOP-0.20.5</title>
> > > >   <itemizedlist>
> > > >     <listitem>
> > > >       <para>itemized list 1</para>
> > > >     </listitem>
> > > >     <listitem>
> > > >       <para>itemized list 2</para>
> > > >     </listitem>
> > > >     <listitem>
> > > >       <para>itemized list 3</para>
> > > >     </listitem>
> > > >   </itemizedlist>
> > > >   <orderedlist>
> > > >     <listitem>
> > > >       <para>Ordered List Sample 1</para>
> > > >     </listitem>
> > > >     <listitem>
> > > >       <para>Ordered List Sample 2</para>
> > > >     </listitem>
> > > >     <listitem>
> > > >       <para>Ordered List Sample 3</para>
> > > >     </listitem>
> > > >   </orderedlist>
> > > > </article>
> > > >
> -------------------------------------------------
> > > > Hope this will help to test and duplicate the
> > > problem.
> > > >
> > > > Deepak K. Shrestha
> > > >
> > > > --- Mauritz Jeanson <mj@johanneberg.com>
> wrote:
> > > >
> > > > > > -----Original Message-----
> > > > > > From: Deepak Shrestha
> > > > > > I have placed the pdf file at
> > > > > >
> > > > >
> > >
> http://www.geocities.com/d88pak/dbapps_list/test.pdf
> > > > >
> > > > > I had a look at it. In the "Document
> Properties"
> > > > > dialog in Adobe Reader, the
> > > > > entry for "PDF Producer" was "null", which
> is a
> > > bit
> > > > > odd. Whenever I create a
> > > > > PDF with FOP, this entry says "FOP 0.20.5".
> > > > >
> > > > > I can't reproduce your problem. The
> whitespace
> > > is
> > > > > collapsed by FOP, and all
> > > > > three list items look the same in the PDF
> > > created
> > > > > from the following test
> 
=== message truncated ===



		
__________________________________ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 


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