Hi, thanks for the suggestion. I actually followed J Pietschmann's advice to use the property white-space-collapse="false" in the fo:block level and this worked! So I would recommend anyone facing the same problem with linefeed removal to try this first.
I am still facing the same problem with FOP's log output (described below). Basically I want the log output to go to my own Logger, which in itself is an implementation of java.util.Logging. I would be very grateful if anyone can help with this. >From my previous mail: ---------------------- "I am running Java 1.3 and so I am using my own implementation of the Java 1.4 Logger class. My implementation works in exactly the same way as the Java 1.4 version. How can I configure FOP to send all of its output to my logger rather than System.out?" Thanks, Haitham. -----Original Message----- From: Steiner, Priska [mailto:[EMAIL PROTECTED]] Sent: 24 July 2002 07:42 To: '[EMAIL PROTECTED]' Subject: AW: Preserving Linefeed character Hello I had the same problem. I' ve solved it, with doing the newline in the xml. In the xml I wrote a new tag instead of the newline, like this: <Data> Line1<n/>Line2</Data> In the xsl I ad a template for the new tag: <xsl:template match="n"> <fo:block> <xsl:text > 
</xsl:text> </fo:block> </xsl:template> With this it works by us fine. Regards Priska -----Ursprüngliche Nachricht----- Von: Al-Dhahir, Haitham [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 23. Juli 2002 21:29 An: '[EMAIL PROTECTED]' Betreff: Preserving Linefeed character Hi, I have an XML document which contains a linefeed character in one of the lines. However, when I process this into PDF using FOP, the outputted line has a space where the linefeed should be. My XML: <Data val="Line1
Line2"/> My XSL: <fo:block text-align="left" font-weight="normal" linefeed-treatment="preserve"><xsl:value-of select="Data/@val"/></fo:block> What I want to appear in the PDF: Line1 Line2 What is actually appearing: Line1Line2 The FO documentation indicates that linefeed-treatment="preserve" should keep the linefeed, but it is not. I suspect that the problem may be that FOP does not support the linefeed-treatment property. Is this the case? If so, can anyone suggest how I can get around this problem? Thanks, Haitham. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]