This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: encoding


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]