xsl-list
[Top] [All Lists]

[xsl] [FO] fo:block margin attribute affects inner table cells (XFE)

2006-05-22 09:00:43
 Hi!

 When rendering following fo:block:

<fo:block margin-left="10mm">
    <fo:table>
       <fo:table-column column-width="20.0mm"/>
       <fo:table-column column-width="proportional-column-width(1)"/>
       <fo:table-column column-width="40.0mm"/>
       <fo:table-body>
          <fo:table-row background-color="pink">
             <fo:table-cell line-height="3em">
                <fo:block background-color="cyan">4601</fo:block>
             </fo:table-cell>
             <fo:table-cell line-height="3em">
                <fo:block background-color="cyan">-</fo:block>
             </fo:table-cell>
             <fo:table-cell line-height="3em">
                <fo:block background-color="cyan">-</fo:block>
             </fo:table-cell>
          </fo:table-row>
       </fo:table-body>
    </fo:table>
 </fo:block>

by AntennaHouse XSL Formatter (Evaluation, Version : 3,4,2006,0228 MR2), 
fo:blocks inside the table cells seems to use same margin-left value as 
ancestor fo:block. Is it correct behaviour? RenderX XEP renders inner fo:blocks 
as if there was zero margin set for each of them (that's what I have expected).

 See examples (source FO XML and results of both render engines) uploaded at 
http://www.sendspace.com/file/k8lu4s (all packed in one zip package, name: 
margin-left.zip, size: 8kB) - inner fo:blocks are cyan and underlying row is 
pink, so the margin gaps are easily visible.

 Thanks, Tomas 


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>
  • [xsl] [FO] fo:block margin attribute affects inner table cells (XFE), Kolací Tomáš <=