Re: Preformatted text

"G. Ken Holman" <[email protected]>
Newsgroups gmane.text.xml.xsl.general
Message-ID <[email protected]>
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:[email protected]
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.