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.

If you view th einput to XSLT as being the original file, then this
means that MSXSL is non conformant in its treatment of white space.

If you view the input of XSLT as being the DOM then (arguably) MSXSL is
conformant as in that case there are no white space nodes in its input.

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 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]