[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] lists not rendered correctly
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 > > > > file (using docbook-xsl-1.66.1): > > > > > > > > <section> > > > > <title>Test</title> > > > > <itemizedlist> > > > > <listitem> > > > > <para>Some text</para> > > > > </listitem> > > > > <listitem> > > > > <para> > > > > Some text > > > > </para> > > > > </listitem> > > > > <listitem> > > > > <para> > > > > > > > > Some text > > > > > > > > </para> > > > > </listitem> > > > > </itemizedlist> > > > > </section> > > > > > > > > > Please have a look at it. I am using > > > > > "docbook-xsl-1.66.1","fop-0.20.5" and > > > > "saxon6_5_3". I > > > > > just noticed this lately. > > > > > Currently my list is tagged as follows: > > > > > <itemizedlist> > > > > > <listitem> > > > > > <para> > > > > > something ....blah...blah > > > > > </para> > > > > > </listitem> > > > > > </itemizedlist> > > > > > (similar for orderedlist) > > > > > > > > > > Is is correct? or there is something wrong > > with > > > > stylesheet/processors? > > > > > > > > It looks fine to me. > > > > > > > > /MJ > > > > > > > > > > > > > > > > > > > > > > > __________________________________ > > > Do you Yahoo!? > > > Check out the new Yahoo! Front Page. > > > www.yahoo.com > > > > > > > > > > > > > > > > > > > > > > > __________________________________ > Do you Yahoo!? > Check out the new Yahoo! Front Page. > www.yahoo.com > > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]