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]
Other format: [Raw text]

RE: Space Between 2 consecutive Nodes


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


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