[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] preserving whitespace


Subject: Re: [xsl] preserving whitespace
From: Eric Smith <Eric.Smith@xxxxxxxxxxxx>
Date: Sun, 23 Sep 2001 18:02:48 +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.

-- 
Eric Smith

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
Keywords