W3C home > Mailing lists > Public > www-xsl-fo@w3.org > November 2002

Re: Preformatted text

From: G. Ken Holman <gkholman@CraneSoftwrights.com>
Date: Fri, 22 Nov 2002 12:07:04 -0500
Message-Id: <5.1.0.14.0.20021122120129.02b88008@pop.storm.ca>
To: <www-xsl-fo@w3.org>

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 Friday, 22 November 2002 12:07:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:10 GMT