xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Tkachenko <ol...@multiconn.com>
Subject Re: FOP: Linebreak Problem
Date Tue, 04 Jun 2002 16:30:02 GMT
Andre Marthaler wrote:

> I want integrate a Link into a Text.
> I formatting the "a" Tag, but he'S making a break before and after the "<a
> href" Link.
> I dont know how to disable this feature.
> 
> So the PDF is looking like this:
> 
> Lorem ipsum dolor sit amet, consetetur [
> myLink
> ] sadipscing elitr.
> 
> ------------
> He's making a break before and after "myLink".

...

 ><xsl:template match="a">
 > 
	<fo:block>
  		^^^^^^^^^
Well, if you want a link to be inline why do you place it in <fo:block> ? 


Use <fo:inline> or nothing at all:

<xsl:template match="a">
	<fo:basic-link external-destination="http://www.graffitiart.de"
color="blue">
		<fo:inline
text-decoration="underline"><xsl:apply-templates/></fo:inline>
	</fo:basic-link>
</xsl:template>

-- 
Oleg Tkachenko
Multiconn International, Israel


Mime
View raw message