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

Re: Preserving whitespace between elements

Subject: Re: Preserving whitespace between elements
From: Matthew Fonda <mfonda@xxxxxxxxxx>
Date: Fri, 09 Dec 2005 13:34:52 -0800
matthew fonda
Haarman, Michael wrote:

-----Original Message-----
From: matt [mailto:mfonda@xxxxxxxxxx]


However, the space is getting stripped, so the actual output is:
<div><p>here is some <b>bold</b>and<i>italic</i>text</p></div>

Any suggestions on how to prevent this?


What processor are you using?  The default behavior should be to preserve

*xsl:strip-space* is used to override this default behavior and
*xsl:preserve-space* is used to override the overridden element names.

I ran your example with Saxon v8.6, Saxon v6.5.4 and Xalan v2.4.1.  These
processors are correctly maintaining the white-space nodes.



Mike Haarman,
XSL Developer,
Internet Broadcasting Systems, Inc.

Hello Mike,

I am using the XSL extension in PHP, which uses libxslt (http://xmlsoft.org/XSLT/). I have tried using xslt:preserve-space but to no avail. I cannot seem to figure out what is causing this.

-- Matthew

Current Thread


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.
First Name
Last Name
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.