Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: CDATA amd xsl

From: jen_designs@-------.---
To: NULL
Date: 9/12/2007 10:37:00 AM

On Sep 11, 11:30 am, Martin Honnen <mahotr...@yahoo.de> wrote:
> jen_desi...@hotmail.com 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/

The <cc xml:space="preserve"> worked perfectly.  Thanks!!!!



transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent