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

RE: Space Between 2 consecutive Nodes

Subject: RE: Space Between 2 consecutive Nodes
From: "Michael Leditschke" <mike@xxxxxxxxxxx>
Date: Wed, 31 Jul 2002 21:07:19 +1000
xml space between
Jeni Tennison wrote...

> There are two options. The best is to tell MSXML not to strip
> whitespace-only text nodes by controlling the transformation through a
> script and in that script setting the .preserveWhiteSpace property of
> the DOM that holds the source XML file to true.
> 
> Alternatively, you could change the XML source and include an
> xml:space attribute on the Para element, as follows:
> 
> <Para xml:space="preserve">This is Example <Italic>Italic
> Text</Italic> <Bold>Bold Text</Bold> Text</Para>

...or, if you are in a command line environment, take a look
at the MSXSL utility from MS which, by default does NOT strip
whitespace from the XML or the stylesheet, but can be made to 
do so via the -xw switch.

Regards
Michael



 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.