This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: preserve-space and strip-space?


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]