This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: encoding
- To: JoK at USWebCKS dot co dot uk
- Subject: [xsl] Re: encoding
- From: Dimitre Novatchev <dnovatchev at yahoo dot com>
- Date: Wed, 17 Jan 2001 11:38:02 -0800 (PST)
- Cc: xsl-list at lists dot mulberrytech dot com
- Reply-To: xsl-list at lists dot mulberrytech dot com
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