xsl-list
[Top] [All Lists]

Re: [xsl] Allowing whitespace to stop merge of adjacent nodes

2006-10-10 05:02:15
Set the DomDocument's preserveWhitespace property to false before loading the document. Not sure why you're using msxml in .NET, it has a number of problems on that platform. You'd be better switching to .NET's native XML classes.

Joe


From: Matt Sims <matt(_dot_)sims(_at_)aston(_dot_)tv>
Reply-To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Allowing whitespace to stop merge of adjacent nodes
Date: Tue, 10 Oct 2006 12:23:12 +0100


Michael Kay wrote:
Perhaps you're using the Microsoft MSXML parser, which notoriously removes
whitespace text nodes without first asking you for permission. You can
switch this behaviour off, unless you're running in the browser.

Michael Kay
http://www.saxonica.com/

Hi Michael,

Yes, I'm using the Microsoft parser within the .NET framework.

Any idea of how it's switched off in this case?

Regards,

Matt.


--~------------------------------------------------------------------
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>
--~--




--~------------------------------------------------------------------
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>
--~--