[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] Linebreak problem
Subject: Re: [xsl] Linebreak problem
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Wed, 27 Dec 2006 23:02:13 +0100
|
Asbjxrn Thorsen wrote:
How do I make a linebreak in xsl-fo ?
[snip]
<fo:flow flow-name="frame-body" font-family="Times">
<fo:block>
<xsl:value-of select="letter/text"/>
You should use
<xsl:apply-templates select="letter/text"/>
here. Your code selects just the first text node.
> <xsl:template match="br">
<fo:block/>
<xsl:apply-templates/>
This statement is probably redundant.
This doesn't work.....why ?
See above.
Note that using a <fo:block/> inline with text may cause unexpected
space, because getting it always right is a wicked problem.
J.Pietschmann
|