xsl-list
[Top] [All Lists]

RE: Preserving whitespace between elements

2005-12-09 14:30:54
-----Original Message-----
From: matt [mailto:mfonda(_at_)enotes(_dot_)com]

<snip/>

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?

Matthew,

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

*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.


HTH,

Mike

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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--