Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: issue when transforming issue when transformingTo: 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> </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);
}
}
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
