Hi Roland.

Yes - I've tried height and width on the fo:external graphic - and they do control the size in FOP - but not in XEP (3.8).

In XEP these set the height and width of the region for the fo:external graphic area - but the image can spill outside this region - which is why content-height and content-width are needed.

I'm assuming that - as this is the case - the scaling attribute is supposed to apply to the content-h/w attributes?

I haven't tried this in FOP with scaling specified as well - but I'm trying to come up with something that behaves the same in both XEP and FOP at the moment.


Mike

Roland Neilands wrote:

Mike,

That's interesting, and possibly consistent with what I saw. I'll test that when I get a chance. Have you tried setting height &/or width (use scaling="uniform" if both) attributes on the external-graphic itself?

Cheers,
Roland



-----Original Message-----
From: Mike Trotman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 19 April 2005 10:24 AM
To: [email protected]
Subject: Re: FOP - external-graphic in absolutely positioned block
container - Solved


Thanks for checking the archives. I also did a quick scan but couldn't find anything.

I think I have pinned down when the image vanishes.
It is when both dimensions of the image display size are too large to fit in the box.


With a smaller width - the image is constrained in the box by width - and the height is smaller than the box.
When I increase the width - the image expands to fill the width - and the bottom of the image gets closer to the bottom of the box.
When I go beyond to the point where the image height exceeds the box - then the image vanishes!


At 2.3in width - the image displays and just fills the box, at 2.4in the image does not display as it's height would be larger than the box.
And I increased my sizes by 0.5in which allowed the image to expand and vanish!


SO - an image IS constrained by the WIDTH of a box - but NOT the HEIGHT!
(And an image display that is too large to fit the box gets suppressed.)

I was using content-height and content-width as these correctly constrain the image in XEP (height and width don't)
and obviously using the size of the block-container to constrain the size in FOP.
But it was too long ago when I set this up.
I have now added a large comment to the relevant XSLT code.


Anyway - thanks to all those who responded.


Mike

Roland Neilands wrote:






-- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.9.16 - Release Date: 18/04/2005


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



Reply via email to