[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: preserve-space and strip-space?

Subject: Re: preserve-space and strip-space?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 17 Sep 2001 16:43:20 +0100
input strip spaces
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.