You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Andreas L Delmelle <a_...@pandora.be> on 2007/09/20 19:19:02 UTC

Q: from-nearest-specified-value()


Hi All

Just been playing around a bit with the XSL-FO core functions, and I  
noticed that currently, if you have:

<fo:block-container height="25mm">
   <fo:block-container height="50%" absolute-position="absolute"
		      top="from-nearest-specified-value(height) div 2">

The inner block-container's top is offset by only 6.25mm (where I  
would somehow expect 12.5mm)

So, my question is whether FOP or my expectation is in error here.  
Does the self-node count as a 'closest ancestor'?

WDYT?


Cheers

Andreas

Re: Q: from-nearest-specified-value()

Posted by Andreas L Delmelle <a_...@pandora.be>.
On Sep 20, 2007, at 19:19, Andreas L Delmelle wrote:

> So, my question is whether FOP or my expectation is in error here.
> Does the self-node count as a 'closest ancestor'?
>
> WDYT?

FWIW: the fix (if necessary) is very simple, see  
o.a.fop.fo.PropertyList.java line 191. I think the iteration needs to  
start with the parentPropertyList instead of 'this', but I'm not 100%  
sure...