Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


  issue when transforming

From: "Lance Johnson" <Lance.Johnson@--------.--->
To: NULL
Date: 5/7/2008 10:15:00 AM

We are currently using the XslCompiledTransform class to transform an xml 
file, but we're getting this strange a character with a hat over it (Â). 
When I look at the xsl the part that is causing this has something like 
this:
<span>
             <xsl:text>&#160;</xsl:text>
</span>

So I guess I'm trying to figure out why it's happening and how we can get 
around this.  Here's the code I'm currently using.  If I try this with a 
memory stream and dig into it I see a character with ascii code 160 and 
that's causing the display issue.

XmlDocument doc = new XmlDocument();
doc.LoadXml(_XmlInfo);

XslCompiledTransform trans = new XslCompiledTransform();
trans.Load("ccr.xsl");

//create the output stream
using (XmlTextWriter myWriter = new XmlTextWriter("output.html", null))
{
    using (XmlWriter xmlWriter = XmlWriter.Create(myWriter, 
trans.OutputSettings))
    {
        //do the actual transform of Xml
        trans.Transform(doc, null, xmlWriter);
    }
}




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