OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] RE: Is it a well-formedness error to use a characternot in the encoding specified by the XML declaration?

The encoding for the source document is only used to load the source 

Similarly, the encoding for the stylesheet is only used to load the 

In order to set the encoding to be used to write the output document, 
you must use the <xsl:output> tag in your stylesheet.

<xsl:output encoding="US-ASCII" />


Costello, Roger L. wrote:
> 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
> _______________________________________________________________________
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> to support XML implementation and development. To minimize
> spam in the archives, you must subscribe before posting.
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
> subscribe: xml-dev-subscribe@lists.xml.org
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS