![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: CDATA amd xsl >Thread Next - Re: CDATA amd xsl Re: CDATA amd xslTo: NULL Date: 9/11/2007 5:30:00 PM jen_designs@h... wrote: > I am using Word 2003 and converting the word doc into xml. You can > apply a xsl to when saving to xml from word. I want to be able to add > cdata to the cc node. I need to preserve the spacing between the nodes > as they are part of sentences. Word uses MSXML 5 for XSLT transformations, unfortunately MSXML strips white space from source documents in a way not compliant with the XML/XSLT specifications. Using <cc xml:space="preserve"> in your source documents should fix that. Fixing the stylesheet is not possible, it does the proper things with white space text nodes between elements but unfortunately with MSXML does not get to process them. If you use MSXML's API to load XML then it is also possible to set preserveWhitespace to true before loading an XML document but I don't know how you would do that within Word, unless you used VBA. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||
|
