This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: preserving whitespace - answer
According to Eric Smith on Sun, Sep 23, 2001 at 06:02:48PM +0200:
| According to Mike Brown on Sun, Sep 23, 2001 at 12:31:41AM -0600:
| | > I have looked at the archives and failed to implement the
| | > xml:space="preserve"
| | > to preserve white space in selected nodes - failing that preserving
| | > whitespace globally.
| |
| | 1. Which XSLT processor are you using? (Don't say MSXML w/DOM input)
| saxon and xalan
| |
| | 2. Where do you want the whitespace preserved? Provide an example.
| Looks like this is more a XSL-FO question cause the actual text in
| the format object file is correctly representing whitespace but the
| pdf out put looks like below:
|
|
| Text as per .xml and .fo:
|
| Imagine this is a poem
| and we want lines idented
| in this strange fasion
|
| This is a nonsensical indentation
| but serves to make the point
| about what I mean by preserving whitespace
|
| Output as per .pdf:
|
| Imagine this is a poem and we want lines idented in this strange fasion This is
| a nonsensical indentation but serves to make the point about what I mean by
| preserving whitespace
|
| The .fo -> .pdf processors I am playing with are fop and xep.
|
linefeed-treatment="preserve"
white-space-collapse="false"
wrap-option="no-wrap"
--
Eric Smith
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list