xsl-list
[Top] [All Lists]

Re: [xsl] Linebreak problem

2006-12-27 15:02:35
Asbjørn 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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>