Subject: Re: [xsl] outputting <?xml version="1.0" encoding="UTF-8" ?> From: David Carlisle <davidc@xxxxxxxxx> Date: Fri, 15 Sep 2006 13:37:17 +0100 |
> My problem is that the <?xml version="1.0" encoding="UTF-8" ?> which > should appear at the top as a header, doesn't. Is that really a problem? the xml declaration is optional. Also are you sure that you are outputting in utf8? I don't really read vb but I don't think you are serialising the output using xslt (so using the xsl:output parameters) as you are sending stuff to an XmlTextWriter, but doesnt System.Text.Encoding.Unicode specify utf16 rather than utf8 ? http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconinputsoutputstoxsltransform.asp Note *the encoding attribute is ignored when the XslTransform.Transform method is sending its output to a TextWriter. The encoding property on the TextWriter is used instead. David
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] outputting <?xml version="1.0, Ian Murphy | Thread | [xsl] Rounding a number, Sam Carleton |
[xsl] outputting <?xml version="1.0, Ian Murphy | Date | Re: [xsl] looking for an attribute, Aaron Johnson |
Month |