Subject: 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 |
- Re: encoding
- Dimitre Novatchev - Wed, 17 Jan 2001 14:38:18 -0500 (EST) <=
- <Possible follow-ups>
- Morris, Chris - Wed, 17 Jan 2001 15:12:43 -0500 (EST)
|
|