xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Barry Whiting" <barry_whit...@londonmarketing.com>
Subject RE: Drop Caps
Date Tue, 22 Dec 2009 15:10:46 GMT
Hi Pascal

Thanks for getting back to me.

If we can't use float could we use an external-graphic and the text will automatically wrap
around the image correctly the same as html?

Thanks

Barry

-----Original Message-----
From: Pascal Sancho [mailto:pascal.sancho@takoma.fr] 
Sent: 22 December 2009 14:47
To: fop-users@xmlgraphics.apache.org
Subject: Re: Drop Caps

Hi Barry,

Unfortunately fo:float is not implemented in FOP (see [1]).
I see no workaround if you require exactly that kind of layout.
Anyway, you still can choose either a fo:list or a fo:table to mimic 
what you want, if a 2 column contruction give you acceptable result.

[1] http://xmlgraphics.apache.org/fop/compliance.html#fo-object-float

Pascal

Barry Whiting a écrit :
>
> Hi
>
>  
>
> I wondered if anybody could help I am trying to do a drop cap at the 
> begining of each text and have tried using float but for some reason 
> this seems to be floating something just not what Im expecting.
>
>  
>
>  
>
>                 <xsl:for-each 
> select="exsl:node-set($editorschoice)/Events/Event">
>
>                 <xsl:if test="position() = 1 or 
> current()/FurtherSubCat = preceding-sibling::Event[1]/FurtherSubCat">
>
>                     <fo:block>
>
>                                 <fo:float float="start">
>
>                             <fo:block font-family="ZapfDingbats" 
> font-size="20pt" line-height="28pt" color="rgb(0,0,0)" margin="5pt" 
> text-depth="0" border="1px solid red">
>
>                                 &#x272A;
>
>                             </fo:block>
>
>                         </fo:float><fo:inline 
> font-family="CaeciliaRomanOsF" font-size="8pt" line-height="9.6pt" 
> font-weight="bold" color="rgb(0,0,0)">&#160;<xsl:apply-templates 
> select="current()/Editorial" /></fo:inline>                       
>
>                     </fo:block>
>
>                 </xsl:if>
>
>             </xsl:for-each>
>
>  
>
> There seems to be a floating area to the left of the text when 
> processed by fop but its empty.
>
>  
>
> Thanks
>
>  
>
> Barry
>


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 9.0.717 / Virus Database: 270.14.111/2569 - Release Date: 12/21/09 19:13:00
Mime
View raw message