- From: Oleg Tkachenko <oleg@tkachenko.com>
- Date: Sat, 11 Dec 2004 19:20:14 +0200
- To: Bjoern Hoehrmann <derhoermi@gmx.net>
- CC: www-xml-xinclude-comments@w3.org
Bjoern Hoehrmann wrote:
> encoding
>
> When parse="text", it is sometimes impossible to correctly detect
> the encoding of the text resource. The encoding attribute specifies
> how the resource is to be translated. The value of this attribute is
> an EncName as defined in XML specification, section 4.3.3, rule
> [81]. The encoding attribute has no effect when parse="xml".
> [...]
>
> It is not clear from the text above when the encoding attribute takes
> priority over other information. If using this attribute means that
> other encoding information such as the value of the charset parameter
> for text/* types is ignored, please state this explicitly in the text.
> If this is a fallback value when there is no other reliable information
> please state that explicitly.
It's defined in 4.3:
The encoding of such a resource is determined by:
* external encoding information, if available, otherwise
* if the media type of the resource is text/xml, application/xml,
or matches the conventions text/*+xml or application/*+xml as described
in XML Media Types [IETF RFC 3023], the encoding is recognized as
specified in XML, otherwise
* the value of the encoding attribute if one exists, otherwise
* UTF-8.
--
Oleg Tkachenko
http://blog.tkachenko.com
Multiconn Technologies, Israel
Received on Saturday, 11 December 2004 17:15:59 UTC