OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Wrap Text Around Image


Except it doesn't actually work.
The expression @float != 0 should be @float != '0'.
When I change that, it works, sort of.
When I process it with XEP, the text wraps but
has no space between it and the float.  Do you
know the best way to provide a little breathing
space?  The fo:float element doesn't take many
properties.

Also, the float doesn't work at all in FOP; the figure disappears
entirely.

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net


----- Original Message ----- 
From: "David Tolpin" <dvd@davidashen.net>
To: <docbook-apps@lists.oasis-open.org>
Sent: Friday, January 16, 2004 10:22 AM
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/.
>
>
>




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]