[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

xsl-fo? center external-graphic and align start side o

Subject: xsl-fo? center external-graphic and align start side of caption with start side of external-graphic
From: Jack Bates <ms419@xxxxxxxxxxxxxx>
Date: Tue, 08 Dec 2009 11:13:09 -0800
 xsl-fo? center external-graphic and align start side o
I want some XSL-FO external-graphics to appear centered on the page,
with captions underneath

If the external-graphic is wider than the caption, then I want the left
or start side of the caption to be aligned with the left or start side
of the external-graphic

If the caption is wider than the external-graphic, then I want the
caption to appear centered on the page (I want the external-graphic also
centered on the page, as before)

To achieve this I wrapped both the external-graphic and the caption in
blocks, then wrapped both those blocks in one block, and set
text-align="center" on that block's container. Then I set
text-align="start" on the caption's block. I hoped this would have the
effect of centering the block containing both external-graphic and
caption, and aligning the caption against the start side of that block.
I guess it does, except the start side of the block containing both
isn't aligned with the start side of the external-graphic : (


I also tried wrapping both blocks in a block-container, with the same


Can I achieve the layout I want with XSL-FO?

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.