xsl-list
[Top] [All Lists]

Re: [xsl] outputting <?xml version="1.0" encoding="UTF-8" ?>

2006-09-15 05:37:37

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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>