You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by jim kraai <ji...@kraai.org> on 2004/01/06 06:21:13 UTC

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, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


RE: FOP bug? DocBook simplelist following informaltable inherits informaltable colwidths

Posted by "Andreas L. Delmelle" <a_...@pandora.be>.
> -----Original Message-----
> From: jim kraai [mailto:jim@kraai.org]
> 
> 
<snip />
> FOP/DocBook newbie foolishness.  Sorry for wasting your time.
> 

No probz! That's what we're here for ;-)

Cheers,

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: FOP bug? DocBook simplelist following informaltable inherits informaltable colwidths

Posted by jim kraai <ji...@kraai.org>.
Thanks for the ref!

After looking through the FOP source, it's obvious that
the problem I reported isn't a FOP problem.  It is with
my stuff.  I was just being too quick on the bug-reporting
trigger without checking thoroughly enough.

FOP/DocBook newbie foolishness.  Sorry for wasting your time.

--jim


Andreas L. Delmelle wrote:

>>-----Original Message-----
>>From: jim kraai [mailto:jim@kraai.org]
> 
> 
>>      b. simplelist (2x2 table) with no column width specs
> 
> 
> AFAIK this is not allowed with FOP. (that is: the results might deviate from
> what you'd expect)
> For columns (in tables) you have basically two options: fixed-width or
> proportional-column-width.
> 
> For more info, check: http://xml.apache.org/fop/fo.html#xsl-fo
> 
> You'll find a few examples there.
> 
> Cheers,
> 
> Andreas
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


RE: FOP bug? DocBook simplelist following informaltable inherits informaltable colwidths

Posted by "Andreas L. Delmelle" <a_...@pandora.be>.
> -----Original Message-----
> From: jim kraai [mailto:jim@kraai.org]

>       b. simplelist (2x2 table) with no column width specs

AFAIK this is not allowed with FOP. (that is: the results might deviate from
what you'd expect)
For columns (in tables) you have basically two options: fixed-width or
proportional-column-width.

For more info, check: http://xml.apache.org/fop/fo.html#xsl-fo

You'll find a few examples there.

Cheers,

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org