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

Re: Setting graphic alignments in two column page layo

Subject: Re: Setting graphic alignments in two column page layout xsl fo
From: "Tony Graham" <tgraham@xxxxxxxxxx>
Date: Mon, 30 May 2011 09:18:16 +0100 (IST)
Re:  Setting graphic alignments in two column page layo
On Sat, May 28, 2011 10:05 pm, Claudia Smith wrote:
> I have a two column layout and I want to set my (small) graphics in a
> way so that whenever my page includes a graphic, the text flows on the
> left column and the graphic always go on right column.

It's not clear whether you always have two columns of text except when
there's a small graphic or whether there's one column of text and the
small graphics are in the margin.

Try <fo:float float="right"> [1][2] to put the graphic in the margin.

> For my larger graphics, I have to span both the columns but always set
> it to the bottom of the page.

As defined, fo:float only floats to the top ("before") or to the side.

It is a requirement for XSL FO 2.0 to be able to float to the top or
bottom [3], but that's not going to help you this week, I know.

If you aren't already also producing footnotes, you may be able to fake
the appearance of a bottom float using an fo:footnote with an empty
fo:inline for its footnote marker.

Regards


Tony Graham                                   tgraham@xxxxxxxxxx
Consultant                                 http://www.mentea.net
Mentea       13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
 --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
    XML, XSL FO and XSLT consulting, training and programming

[1] http://www.w3.org/TR/xsl11/#fo_float
[2] http://www.w3.org/TR/xsl11/#float
[3] http://www.w3.org/TR/xslfo20-req/#N66046
[4] http://www.w3.org/TR/xsl11/#fo_footnote

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.