[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: preserving whitespace - answer

Subject: Re: preserving whitespace - answer
From: Eric Smith <Eric.Smith@xxxxxxxxxxxx>
Date: Mon, 24 Sep 2001 01:39:44 +0200
xslt preserve whitespace
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.