Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: different results with internet explorer vs. msxsl.exe

From: "Oleg Tkachenko [MVP]" <oleg@--_!----!_------!---------.--->
To: NULL
Date: 8/6/2004 12:05:00 AM
Bill Davis wrote:

> <?xml version="1.0" encoding="iso-8859-1"?> 
> <?xml-stylesheet type="text/xsl" href="vsimp.xsl"?> 
> <document>
> <s3>
> data
> </s3>
> </document>

> Given that I have up to date versions of the msxml parser (AFAIK) and
> that msxsl.exe is advertised to be a shell around the same XML engine
> that IE uses I see these results as a real head-scratcher.

Well, not really. Just different XML loading parameters. You forgot 
about whitespace-only text nodes - one after <document> tag and another 
after </s3> tag. When document is loaded with preserveWhiteSpace 
property set true, whitespace-only text nodes are preserved, otherwise - 
not (except where there is xml:space="preserve").
IE always discards insignificant whitespace, while msxsl.exe preserves 
it (according to XSLT spec).

-- 
Oleg Tkachenko [XML MVP]
http://blog.tkachenko.com


transparent
Print
Mail
Like It
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