[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
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/
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]