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] FOP bug? DocBook simplelist following informaltable inherits informaltable colwidths


I don't see the same behavior.  I see the simplelist being rendered
in a table that is the full page width between margins,
with each column being half the page.  But the second column doesn't
line up with the column in the table above it.

I think the stylesheets could do better with simplelist.
Rendering the simplelist in a table without some width spec
makes for a presentation that is too wide.

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net


----- Original Message ----- 
From: "jim kraai" <jim@kraai.org>
To: <docbook-apps@lists.oasis-open.org>; <fop-user@xml.apache.org>
Sent: Monday, January 05, 2004 9:21 PM
Subject: [docbook-apps] FOP bug? DocBook simplelist following informaltable
inherits informaltable colwidths


> Briefly stated:
> -DocBook book has a part with a chapter with a section with a sidebar
> -sidebar has two children:
>    1. informaltable with
>       a. a colwidth spec on the first of 2 cols
>       b. 2colsx3rows table
>    2. para with two children
>       a. cdata
>       b. simplelist (2x2 table) with no column width specs
> -in the rendered PDF, the simplelist is using the same column-width
> specified for the informaltable
>
>
> Everything passes a DTD check.  The HTML renders fine.  The problem
> could be a FOP issue as the translated .fo looks fine to me.
>
> thanks,
>
> --jim
>
>
> Source .docbook:
>
> <sidebar>
> <informaltable frame="all">
> <tgroup cols='2'>
> <colspec colwidth='2.0in'/>
> <thead>
> [snip]
> </tbody>
> </tgroup>
> </informaltable>
>
> <para>
>
> [snip]
>
> <simplelist type='horiz' columns='2'>
> <member>[snip]</member>
> <member>[snip]</member>
> <member>[snip]</member>
> <member>[snip]</member>
> </simplelist>
>
> </para>
> </sidebar>
>
>
> translated .fo:
>
> <fo:block span="none">
>    <fo:table id="id587944" border-collapse="collapse"
> space-before.minimum="0.5em" space-before.optimum="1em"
> space-before.maximum="2em" space-after.minimum="0.5em"
> space-after.optimum="1em" space-after.maximum="2em"
> border-left-style="solid" border-right-style="solid"
> border-top-style="solid" border-bottom-style="solid"
> border-left-width="0.5pt" border-right-width="0.5pt"
> border-top-width="0.5pt" border-bottom-width="0.5pt"
> border-left-color="black" border-right-color="black"
> border-top-color="black" border-bottom-color="black" width="100%">
>      <fo:table-column column-number="1" column-width="2.0in" />
>      <fo:table-column column-number="2" />
> [snip]
>    </fo:table>
> </fo:block>
>
> <fo:block space-before.optimum="1em" space-before.minimum="0.8em"
> space-before.maximum="1.2em">[snip]
> <fo:table space-before.optimum="1em" space-before.minimum="0.8em"
> space-before.maximum="1.2em">
>    <fo:table-column column-number="1"
> column-width="proportional-column-width(1)" />
>    <fo:table-column column-number="2"
> column-width="proportional-column-width(1)" />
> [snip]
> </fo:table>
>
>
> environment:
>
> WinNT
>
> xsltproc --version
> Using libxml 20602, libxslt 10100 and libexslt 800
> xsltproc was compiled against libxml 20602, libxslt 10100 and libexslt 800
> libxslt 10100 was compiled against libxml 20602
> libexslt 800 was compiled against libxml 20602
>
> docbook DTD:
> <!-- DocBook XML DTD V4.2 ...................................... -->
>
> docbook stylesheets:
> ********************************************************************
> $Id: docbook.xsl,v 1.29 2003/08/27 23:58:14 nwalsh Exp $
> ********************************************************************
>
> java -version
> java version "1.4.2_03"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
> Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)
>
> fop
> [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
> [INFO] FOP 0.20.5
>
>
>
>
> To unsubscribe from this list, send a post to
docbook-apps-unsubscribe@lists.oasis-open.org, or visit
http://www.oasis-open.org/mlmanage/.
>
>


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


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