Subject: [xsl] Re: encoding From: Dimitre Novatchev <dnovatchev@xxxxxxxxx> Date: Wed, 17 Jan 2001 11:38:02 -0800 (PST) |
Jo Kong HO wrote: > The result XML has "encoding="UTF-16" attribute > How can it make that go away? Jo, In case you're using MSXML3 and do not have to use some special encoding (different from UTF-8), then the easiest way to "make that go away" is to use: <xsl:output omit-xml-declaration="yes"/> Otherwise, if you have specified an encoding in your xml declaration and need that preserved in the generated output, then with MSXML3 this is rather complicated: 1. Use transformNodeToObject() instead of transformNode() 2. On the resulting XMLDOMDocument object issue the save() method. This is really a bug, or to put it more politely -- must not be so much more difficult than using any other XSLT processor. Cheers, Dimitre. __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] copy all attributes but o, Michael Kay | Thread | RE: [xsl] Re: encoding, Morris, Chris |
[xsl] copy all attributes but one, Morris, Chris | Date | [xsl] including a javascript less-t, "Rubén" |
Month |