[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

FO-question : images & text wrapping


Subject: FO-question : images & text wrapping
From: Teemu Ropponen <troppone@xxxxxxxxxx>
Date: Mon, 24 Jul 2000 14:02:18 +0300 (EET DST)

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?

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>

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>

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



Current Thread