- From: G. Ken Holman <gkholman@CraneSoftwrights.com>
- Date: Tue, 23 Jul 2002 14:34:05 -0400
- To: "'www-xsl-fo@w3.org'" <www-xsl-fo@w3.org>
At 2002-07-23 19:18 +0100, Al-Dhahir, Haitham wrote: >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. What am I doing wrong here? Have I got the >right linefeed character (0A)? Both Antenna House and RenderX respect the linefeed when I use your example above. Looking at the list of supported properties in FOP at http://xml.apache.org/fop/implemented.html I do not see linefeed-treatment= listed. .............. Ken -- Upcoming hands-on in-depth 3-days XSLT/XPath and/or 2-days XSL-FO: North America: Sep 30-Oct 4,2002 Japan: Oct 7-Oct 11,2002 G. Ken Holman mailto:gkholman@CraneSoftwrights.com Crane Softwrights Ltd. http://www.CraneSoftwrights.com/f/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (Fax:-0995) ISBN 0-13-065196-6 Definitive XSLT and XPath ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath ISBN 1-894049-07-1 Practical Formatting Using XSLFO XSL/XML/DSSSL/SGML/OmniMark services, books (electronic, printed), articles, training (instructor-live,Internet-live,web/CD,licensed) Next public training: 2002-08-05,26,27,09-30,10-03,07,10
Received on Tuesday, 23 July 2002 14:34:12 UTC