On 30.10.2008 20:50:53 JWang wrote:
> 
> Thank you very much. It does display nicely when I turn off smooth line art
> in acrobat reader. Is there a way to turn that off programmatically in FOP?

Not that I know of.

> It displays nicely in version 0.20 even I did not turn it off, which makes
> me think that can be configured in the PDF itself.  Your suggestion solves
> the problem anyway...

No, the borders are painted differently in 0.90 and later. Inner borders
are painted in two parts (each grid unit paints its own half of the
border). We don't have any additional logic that can merge table borders
for painting to avoid such effects, yet. Doing that could mean quite a
bit of work and I suspect that this is not a priority for any of the
developers at the moment.

> Regarding nested tables, I attached the source code and the result for old
> and new version here. The new version displays a middle table that makes the
> inner tables unfit for the outer table. Logically the two inner tables
> (units of measurement and tank) belong together in a group, that is why we
> put them in one table cell. I guess the real question is under what
> circumstances FOP displays one table even though there are more than one in
> the fo file.  http://www.nabble.com/file/p20253041/version_020.pdf
> version_020.pdf  http://www.nabble.com/file/p20253041/version_095.pdf
> version_095.pdf  http://www.nabble.com/file/p20253041/source.xml source.xml  
> Again, thank you for your time.

Thanks for the test case. That helps. I must say, I can't identify
anything where FOP 0.95 misbehaves. Please note that 0.95 is much more
accurate in interpreting the XSL spec than FOP 0.20.5. That in itself
can cause unwanted changes if the XSL is not fully correct. For example,
you have the "margin" shorthand on some table-cell. The margin
properties are mapped to start/end-indent and space-before/after
(chapter 5.3.2 in XSL 1.1). None of those apply to table-cell, but since
start/end-indent are inherited they have an effect on child elements.
This could have unwanted side-effects in your case. I'd simply remove
the margin shorthand and try to improve from there.

Again, I would suggest that you also replace the outer tables with
block-containers. That makes your XSL-FO simpler and easier to manage.
FOP 0.20.5 didn't support normal block-containers but FOP 0.95 does
which offers new possibilities.

HTH



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to