This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Wrap Text Around Image
- From: David Tolpin <dvd at davidashen dot net>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Fri, 16 Jan 2004 22:22:19 +0400 (AMT)
- Subject: Re: [docbook-apps] Wrap Text Around Image
> On Friday 16 January 2004 18:42, Dave Pawson wrote:
> > At 19:35 15/01/2004, Sean Wheller wrote:
> > >Hi,
> > >
> > >Is there a way to wrap text around a picture?
> >
> > No, unless you want to put the image
> > into a table cell?
> >
> > HTH DaveP
>
> Hello Dave,
>
> Ok, that's the obvious solution:-)
>
> Alexander Peshkov, mentioned the @float which I am aware of but unable to use.
> Alexander does however state that he has not tested the theory outlined in
> his message. Are you saying that the @float theory does not work?
>
> If so, then perhaps you could provide clearer insight to the function of
> @float. TDG is very unclear on this subject.
Sean,
Alexander is right; here is what the stylesheet (fo/formal.xsl) does:
<xsl:when test="@float and @float != 0">
<fo:float>
<xsl:attribute name="float">
<xsl:choose>
<xsl:when test="@float = 1">
<xsl:value-of select="$default.float.class"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@float"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:copy-of select="$figure"/>
</fo:float>
</xsl:when>
in English, this means that if you set float to any value except for 0, the
content will float. If float's value is 1, then it will be float="{$default.float.class}"
in XSL FO, otherwise, it will be exactly what you specified.
Set float="left" to get what you want.
David Tolpin
http://davidashen.net/
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.