- From: Cindy Hunt <Cindy.Hunt@sas.com>
- Date: Mon, 25 Nov 2002 09:52:26 -0500
- To: <www-xsl-fo@w3.org>
Hi-
Just wanted to thank everyone for the help. The combination below that Ken suggests seems to do the trick. I do get an error that both "linefeed-treatment" and "white-space-treatment" are not implemented yet but I guess "white-space-collapse" must be enough to make it work using FOP.
I am really rolling now but am sure I will have more questions soon...
Thanks!
Cindy Hunt
-----Original Message-----
From: G. Ken Holman [mailto:gkholman@cranesoftwrights.com]
Sent: Friday, November 22, 2002 12:07 PM
To: www-xsl-fo@w3.org
Subject: Re: Preformatted text
At 2002-11-22 09:20 -0500, Cindy Hunt wrote:
>What I need to produce is a block of example code that maintains its
>original line breaks and indents, something like so:
> >
> > begin code;
> > if x>y
> > then z;
> > end code;
I use the combination:
linefeed-treatment="preserve"
white-space-collapse="false"
white-space-treatment="preserve"
This is illustrated on page 29 of our free download preview of our XSL-FO book.
> it looks like FOP doesn't support this feature when I run it.
You'll have to check their feature lists to determine what is and is not
supported ... I don't know if these are available to you.
I hope this helps.
..................... Ken
--
Upcoming hands-on in-depth XSLT/XPath and/or XSL-FO:
- North America: Feb 3 - Feb 7,2003
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 (F:-0995)
ISBN 0-13-065196-6 Definitive XSLT and XPath
ISBN 0-13-140374-5 Definitive XSL-FO
ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath
ISBN 1-894049-10-1 Practical Formatting Using XSL-FO
Next conference training: 2002-12-08,03-03,06
Received on Monday, 25 November 2002 09:52:54 UTC