This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: XML->XSL-> FO->PDF whitespace problems
- From: Mulberry Technologies List Owner<xsl-list-owner at lists dot mulberrytech dot com>
- To: xsl-list <xsl-list at lists dot mulberrytech dot com>
- Date: Sun, 10 Mar 2002 16:46:26 -0800
- Subject: Re: [xsl] XML->XSL-> FO->PDF whitespace problems
- Reply-to: xsl-list at lists dot mulberrytech dot com
>Date: Sun, 10 Mar 2002 21:35:31 +0000
>To: xsl-list@lists.mulberrytech.com
>From: "G. Ken Holman" <gkholman@cranesoftwrights.com>
>Subject: Re: [xsl] XML->XSL-> FO->PDF whitespace problems
>
>At 2002-03-08 17:50 -0500, Michael Engelhart wrote:
>>Thanks - but, that still didn't do it.
>
>It happened this question was asked recently on an XSLFO list:
>
>>Delivered-To: mailing list XSL-FO@yahoogroups.com
>>List-Unsubscribe: <mailto:XSL-FO-unsubscribe@yahoogroups.com>
>>Date: Wed, 06 Mar 2002 12:13:50 -0500
>>Subject: Re: [XSL-FO] <PRE> facility in FO
>>Reply-To: XSL-FO@yahoogroups.com
>>
>>At 2002-03-06 16:38 +0000, jelemair wrote:
>> >I'm looking for a way to include some preformated text in FO.
>> >
>> >I've got a an xml file in which I've include some text with some
>> >spaces an CR that I select in my XSL FO file.
>> >
>> >If I do:
>> >
>> ><fo:block>
>> ><xsl:value-of select="myFormatedText">
>> ></fo:block>
>> >It keeps spaces but not the carriage returns.
>> >
>> >Is there a way to do that ??
>>
>>Try the following:
>>
>> <fo:block font-family="Courier"
>> linefeed-treatment="preserve"
>> white-space-collapse="false"
>> white-space-treatment="preserve">
>> ... text ...
>> </fo:block>
>>
>>font-family - a monospaced font of some kind is typical
>>linefeed-treatment - so the linefeed is not treated as a space
>>white-space-collapse - so the white-space sequences are not collapsed
>>white-space-treatment - so those around linefeeds are not ignored
>>
>>I hope this helps.
>>
>>.......................... Ken
>
>
>
>--
>Upcoming: 3-days XSLT/XPath and/or 2-days XSLFO: June 17-21, 2002
>- : 3-days XML Information Modeling: July 31-August 2, 2002
>
>G. Ken Holman mailto:gkholman@CraneSoftwrights.com
>Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/
>Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (Fax:-0995)
>ISBN 0-13-065196-6 Definitive XSLT & 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-03-01,04,05,06,11,15,04-08,09,10,11,
>- 05-06,07,09,10,20,06-04,07,10,11,13,14,17,20,07-31
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list