You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Gunter D'Hondt <gu...@sofico.be> on 2004/11/23 12:34:31 UTC

[fop] linefeed-treatment="preserve" doesn't preserve the linefeed

Hello,

FOP 0.20.4

I've got the following xml (also tried to put it into a cdata block):

<Quote>
        <descr>Line1
Line2</descr>
</Quote>
and the following xsl-fo:
...
<fo:block linefeed-treatment="preserve"><xsl:value-of 
select="Quote/descr"/></fo:block>
...

which still outputs "Line1Line2" so it replaces the newline character 
instead of "preserving" it

Anybody who gots an idea what I'm doing wrong here? Any help is welcome...

Regards,
Gunter D'Hondt

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


Re: [fop] linefeed-treatment="preserve" doesn't preserve the linefeed

Posted by Chris Bowditch <bo...@hotmail.com>.
Gunter D'Hondt wrote:

<snip/>

> which still outputs "Line1Line2" so it replaces the newline character 
> instead of "preserving" it
> 
> Anybody who gots an idea what I'm doing wrong here? Any help is welcome...

This is a FAQ. See:

http://xml.apache.org/fop/faq.html#fo-preformat

Chris


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