RE: Is it a well-formedness error to use a character not in the encoding specified by the XML declaration?

From
Costello, Roger L. <>
To
"" <>
Date
2010-03-18T19:19:25Z
ID
<>
Thread
RE: Is it a well-formedness error to use a character not in the encoding specified by the XML declaration?
Hi Folks,

Suppose I have an XML document with encoding="US-ASCII" and an XSLT transform also with encoding="US-ASCII"

The XSLT transform inputs the XML document and then outputs an XML document (I'll call it results.xml)

Shouldn't the encoding in results.xml also be US-ASCII? I ran a couple tests and I get encoding="UTF-8". Is that a bug?

/Roger