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

Re: xsl-fo: fo:floats stay with prev element and next

Subject: Re: xsl-fo: fo:floats stay with prev element and next element starts after float
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 26 Sep 2013 17:11:24 -0400
Re:  xsl-fo: fo:floats stay with prev element and next
At 2013-09-26 16:53 -0400, Bryon Thomas wrote:
Right now, when I have multiple floats, the floats will all (mostly
starting from parent titles), group on the right under each other
starting at the top of the page. The xml elements on the left will all
bunch together on the top left (Meaning the text on the left is at the
top, and the images on right are from top to bottom.
Snippet of current code:Any help would be greatly appreciated, I can't
figure out the floats quickly enough.

You need two things:


- the float has to be specified inside the block with the text

- the block needs clear="end" in order to flow after the previous last float

This end result is what I mocked up and works in Antenna House:

<flow flow-name="frame-body" font-size="40pt" clear="end">

      <block clear="end">
        <float float="end" intrusion-displace="block">
          <block background-color="silver">F111</block>
          <block background-color="silver">F111</block>
          <block background-color="silver">F111</block>
        </float> B222 B222 </block>

      <block clear="end">
        <float float="end" intrusion-displace="block" clear="end">
          <block background-color="silver">F111</block>
          <block background-color="silver">F111</block>
          <block background-color="silver">F111</block>
        </float> B222 B222 B222 </block>

</flow>

I hope this helps.

. . . . . . . . . . . Ken


-- Public XSLT, XSL-FO, UBL & code list classes: Melbourne, AU May 2014 | Contact us for world-wide XML consulting and instructor-led training | Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm | Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ | G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx | Google+ profile: https://plus.google.com/116832879756988317389/about | Legal business disclaimers: http://www.CraneSoftwrights.com/legal |

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.