[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?
- From: Oliver Hallam <oliver@xqsharp.com>
- To: "Costello, Roger L." <costello@mitre.org>
- Date: Thu, 18 Mar 2010 19:25:41 +0000
The encoding for the source document is only used to load the source
document.
Similarly, the encoding for the stylesheet is only used to load the
stylesheet.
In order to set the encoding to be used to write the output document,
you must use the <xsl:output> tag in your stylesheet.
eg.
<xsl:output encoding="US-ASCII" />
Oliver
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]