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/24 10:28:48 UTC

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

Indeed, that did the trick! I'm setting the white-space-collapse to false 
and placing my xml datanode inside a CDATA-block
Thnx to you all!

Gunter




Louis.Masters@log-net.com 
23-12-2004 15:33
Please respond to
fop-user@xml.apache.org


To
fop-user@xml.apache.org
cc

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







Gunter:

In 20.3, I use 'white-space-collapse' to keep my linefeeds intact:

<fo:block white-space-collapse="false">
<xsl:value-of select="Quote/descr"/>
</fo:block>

Give it a try.

-Lou




  
                      Gunter D'Hondt   
                      <gunter.dhondt@s         To: fop-user@xml.apache.org 
 
                      ofico.be>                cc:     
                                               Subject: [fop] 
linefeed-treatment="preserve" doesn't preserve the linefeed  
                      11/23/2004 06:34    
                      Please respond   
                      to fop-user   
  
  



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







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




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