[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] lists not rendered correctly
By the way here is the full info about what I am using: OS : Fedora Core 2 DTD : docbook-xml-4.3 STYLESHEET: docbook-xsl-1.66.1 XSLT: Saxon 6.5.3 FO Processor: FOP 0.20.5 Customization Layer: Yes Here is my Customization Layer (thesis.xsl) contents: ##################################################### <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" version='1.0'> <xsl:import href="/home/deepak/DocBook/DTD-XML/docbook-xsl-1.66.1/fo/docbook.xsl"/> <!-- Page specific customizaiton //--> <xsl:param name="paper.type">USletter</xsl:param> <xsl:param name="page.margin.inner">1.5in</xsl:param> <xsl:param name="page.margin.outer">1in</xsl:param> <xsl:param name="page.margin.top">0.5in</xsl:param> <xsl:param name="page.margin.bottom">0.5in</xsl:param> <xsl:param name="region.before.extent">0.4in</xsl:param> <xsl:param name="region.after.extent">0.4in</xsl:param> <xsl:param name="body.margin.top">0.5in</xsl:param> <xsl:param name="body.margin.bottom">0.5in</xsl:param> <xsl:param name="fop.extensions">1</xsl:param> <xsl:param name="chapter.autolabel">1</xsl:param> <xsl:param name="section.autolabel">1</xsl:param> <xsl:param name="section.label.includes.component.label">1</xsl:param> <xsl:param name="title.margin.left">0pt</xsl:param> <xsl:param name="body.font.master">12</xsl:param> <xsl:param name="footnote.font.size">9pt</xsl:param> <!-- Don't put hyphen marks in any of the titles or parapraph //--> <xsl:param name="hyphenate">false</xsl:param> <xsl:param name="marker.section.level">3</xsl:param> <fo:retrieve-marker retrieve-class-name="section.head.marker" retrieve-position="first-including-carryover" retrieve-boundary="page-sequence"/> <xsl:param name="header.rule">0</xsl:param> <xsl:param name="footer.rule">0</xsl:param> <!-- Headers and Footers are divided into three columns so make the middle column big for running headers to accomodate//--> <xsl:param name="header.column.widths" select="'1 2 1'"></xsl:param> <!-- //--> <xsl:attribute-set name="component.title.properties"> <xsl:attribute name="font-size">18pt</xsl:attribute> <xsl:attribute name="text-align">center</xsl:attribute> </xsl:attribute-set> <!-- Common Section.title properties. Setting all Title as Left Justified//--> <xsl:attribute-set name="section.title.properties"> <xsl:attribute name="text-align">left</xsl:attribute> </xsl:attribute-set> <!-- Font size settings for each section level titles//--> <xsl:attribute-set name="section.title.level1.properties"> <xsl:attribute name="font-size">18pt</xsl:attribute> </xsl:attribute-set> <xsl:attribute-set name="section.title.level2.properties"> <xsl:attribute name="font-size">16pt</xsl:attribute> <xsl:attribute name="font-style">italic</xsl:attribute> </xsl:attribute-set> <xsl:attribute-set name="section.title.level3.properties"> <xsl:attribute name="font-size">14pt</xsl:attribute> </xsl:attribute-set> <xsl:attribute-set name="section.title.level4.properties"> <xsl:attribute name="font-size">14pt</xsl:attribute> <xsl:attribute name="font-style">italic</xsl:attribute> </xsl:attribute-set> <!-- Common Attribute for formal objects Title like Table, Figure etc. //--> <xsl:attribute-set name="formal.title.properties" use-attribute-sets="normal.para.spacing"> <xsl:attribute name="font-family">Helvetica</xsl:attribute> <xsl:attribute name="font-size">9pt</xsl:attribute> </xsl:attribute-set> <!-- Turn the para to double spacing other than footnotes //--> <!-- Adviced by: Bob Stayton//--> <xsl:template match="para[not(ancestor::footnote)]"> <fo:block line-height="2.4"> <xsl:apply-imports/> </fo:block> </xsl:template> <!-- If you are using FOP to produce output it lets footnote inherit the line-height properties from para. So footnotes should be reset to single spacing //--> <!-- Adviced by: Bob Stayton//--> <xsl:template match="para[ancestor::footnote]"> <fo:block line-height="1.2"> <xsl:apply-imports/> </fo:block> </xsl:template> <!-- Placement of the tiles in figures, tables etc. //--> <xsl:param name="formal.title.placement"> figure after example before equation before table before procedure before task before </xsl:param> <!-- BIBLIOGRAPHY REALTED CUTOMIZATION FOR PRINTED OUTPUT//--> <!-- Order the Authors/Editors Name in Surname, Firstname order//--> <xsl:template match="author|editor" mode="bibliography.mode"> <fo:inline> <xsl:call-template name="person.name.last-first"/> <xsl:value-of select="$biblioentry.item.separator"/> </fo:inline> </xsl:template> <!-- Turn off the bibliography label eg. [deepak et. al. 2002] from displaying in front of bibliogaphy entries by customizing the template to do nothing//--> <xsl:template name="biblioentry.label"> </xsl:template> </xsl:stylesheet> ##################################################### Deepak K. Shrestha --- Bob Stayton <bobs@sagehill.net> wrote: > Well, I'm still not able to duplicate your problem. > I processed your sample > file with Saxon 6.5.3 and > docbook-xsl-1.66.1/fo/docbook.xsl, and then FOP > 0.20.5 on my Windows XP box. There are no line > breaks after the bullets or > numbers in my PDF output. > > Are you using a customization file? If so, can you > post that? Have you > tried it with the stock stylesheet? > > Bob Stayton > Sagehill Enterprises > DocBook Consulting > bobs@sagehill.net > > > ----- 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]