[xep-support] Image captions

Alexander Peshkov peshkov at renderx.com
Fri Aug 8 05:52:58 PDT 2003


Hello Jooyong,

No, this effect is not achievable with XSL FO. fo:float will
always stretch to accommodate its content, so floats width will
be defined by image width. And there is no way to dynamically obtain
information about image width at runtime.
Note also that if you want to restrict float width you should place
inside fo:block-container with explicit width (inline-progression-dimension) specified.
While 'width' on fo:block mustn't make any effect it erroneously does
in current XEP version (this behavior is likely to change in future
XEP version).

Best regards,
Alexander Peshkov                             mailto:peshkov at renderx.com
RenderX

Joeg> Hello,

Joeg> I think I am doing this wrong but I am trying to find a better way to attach and
Joeg> align captions to floating images.  Is there a better way to do this when only
Joeg> the height information is available?  So in another words, is there a way to
Joeg> limit the width of the caption to the width of the image even when the images
Joeg> width is not specified but only the height is?

Joeg> Any suggestions are greatly appreciated.  Thank you.

Joeg> -Jooyong Lee

Joeg> This code is similar to what I have:

Joeg> <fo:float float="left">
Joeg>      <fo:block>
Joeg>           <fo:external-graphic src="url('c:\somepicture.jpg')"
Joeg> content-width="3.5in"/>
Joeg>      </fo:block>
Joeg>      <fo:block font="8pt Helvetica" width="3.5in">
Joeg>           Here is the caption for the picture above.
Joeg>      </fo:block>
Joeg> </fo:float>


Joeg> -------------------
Joeg> (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
Joeg> in the body of the message to majordomo at renderx.com from the address
Joeg> you are subscribed from.
Joeg> (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html


-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



More information about the Xep-support mailing list