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

RE: FO-question : images & text wrapping

Subject: RE: FO-question : images & text wrapping
From: Stephen Deach <sdeach@xxxxxxxxx>
Date: Mon, 24 Jul 2000 11:15:00 -0700
question images
At 13:16 2000-07-24 +0200, Bovone Stefano wrote:
>You could use a fo:table or a list or a float object.
>Bye.
>
>-----Original Message-----
>From: Teemu Ropponen [mailto:troppone@xxxxxxxxxx]
>Sent: lunedì 24 luglio 2000 13.02
>To: xsl-list@xxxxxxxxxxxxxxxx
>Subject: FO-question : images & text wrapping
>
>
>Hi,
>
>I have a fairly simple one, almost a FAQ, I assume, and I almost feel a
>deja vu effect...but nonetheless I was not able to find an answer...
>
>I have 3 fairly common scenarios for rendering a simple image and some
>text. I'd like to know how the right way to do this with fo's .
>
>1. 
><example>
>
>This is shown in the image below :
>|----------|
>| an image |
>------------
>As we can see...
>
></example>
>
>I suppose this could be done with something along the lines of
>
><fo:block>This is shown in the image below :
>  <fo:block>
>    <fo:external-graphic src=... />
>  </fo:block>
>  As we can see
></fo:block>
>
>Corrections?

This is pretty close to the example in 6.6.1.1.2 of the current draft.

>
>2.
><example>
>
>|---------|   Here is the image. I don't want to use a list but
>|  image  |   I'd like several lines of text to be nicely placed
>|---------|   next to the image
>
></example>

Look at the use of
  <fo:float float="start"> <fo:external-graphic .../> </fo:float>

If you want only the 3 lines of text beside the graphic (and top-aligned
with the graphic), you can use the "clear" property on the paragraph after
the 3 lines.

The other choice would be to use a table, place the graphic in the first
cell and the text in the second.

>
>3.
>
><example>   
>Let's see what happens in this case when the image is part of the    
>      |---------|   
>text. |  image  |   Well well, in this case the text, when reaching 
>      |---------|   
>the end of the line, wraps below the image and life goes on from here...
></example> 
>
>I guess this would be just 
>
><fo:block>Let's see what happens in this case when the image is part of
>the text <fo:external graphic.. .. /> Well well...
></fo:block>

Yes, external graphic is intrinsically an inline object and the max of the
height of the graphinc and any line-height on the text is the default
line-spacing.

>
>Am I correct? Just seems that pretty ugly looking layout will result, if
>the images are big. And how would I go about getting the second example?
>
>Thanks,
>Teemu Ropponen
>
>---------------------------------------------------------------------
>Teemu Ropponen					troppone@xxxxxxxxxx
>student/research assistant
>Telecom. Software and Multimedia Lab.		http://www.tcm.hut.fi
>Helsinki University of Technology, Finland
>---------------------------------------------------------------------
>
>
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>

---Steve Deach
   sdeach@xxxxxxxxx


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.