This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: preserve-space and strip-space?
- To: xsl-list at lists dot mulberrytech dot com
- Subject: [xsl] Re: preserve-space and strip-space?
- From: Dimitre Novatchev <dnovatchev at yahoo dot com>
- Date: Mon, 17 Sep 2001 10:04:17 -0700 (PDT)
- Reply-To: xsl-list at lists dot mulberrytech dot com
> This is a "feature" of MSXSL which is documented in the MSXML SDK (and
> the archives of this list).
>
> MSXSL reads its input from an MSXML DOM and the XML parser, by default,
> throws away white space nodes while building the DOM. If you are calling
> the parser from script you can stop this by setting the
> preserveWhiteSpace property.
>
> If you don't set this property the spaces are gone before XSLT starts up
> so there's nothing that strip-space can do to have any effect.
This is not exactly so -- in case xml:space="preserve" is specified on an element,
MSXML does not throw away white space nodes that are descendants of this element,
even if the preserveWhiteSpace property is not set.
Cheers,
Dimitre Novatchev.
__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list