Contact Us or call 1-877-932-8228


Floats are usually used to wrap content around images as shown in the image below.

This is accomplished with the float FO whose float attribute specifies where the content should float. In this case, we've specified that the content (i.e, the image) should float to the right. The content that follows will wrap around it. The code used to output the page shown above is shown below.

Code Sample:

<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
		<fo:simple-page-master master-name="Page" margin="1in" page-height="11in" page-width="8.5in">
	<fo:page-sequence master-reference="Page">
		<fo:static-content flow-name="xsl-footnote-separator">
				<fo:leader leader-pattern="rule" leader-length="100%"/>
		<fo:flow flow-name="xsl-region-body">
			<fo:float float="right">
				<fo:block margin-left="1cm">
					<fo:external-graphic src="url('Images/beatles.jpg')"/>
				So much has been said and written about the Beatles - and their story is so mythic in its sweep - that it's difficult to summarize their career without restating clichés that have already been digested by tens of millions of rock fans. To start with the obvious, they were the greatest and most influential act of the rock era, and introduced more innovations into popular music than any other rock band of the 20th century. Moreover, they were among the few artists of any discipline that were simultaneously the best at what they did and the most popular at what they did. Relentlessly imaginative and experimental, the Beatles grabbed a hold of the international mass consciousness in 1964 and never let go for the next six years, always staying ahead of the pack in terms of creativity but never losing their ability to communicate their increasingly sophisticated ideas to a mass audience. Their supremacy as rock icons remains unchallenged to this day, decades after their breakup in 1970.
					<fo:inline font-size="8pt" alignment-baseline="hanging">*</fo:inline>
						<fo:block font-size="8pt">
							*From <fo:basic-link external-destination="url('http://www.vh1.com/artists/az/beatles/bio.jhtml')"> http://www.vh1.com/artists/az/beatles/bio.jhtml</fo:basic-link>.