W3C home > Mailing lists > Public > www-html-editor@w3.org > October to December 2000

XML declaration and PI

From: Jun Fujisawa <fujisawa.jun@canon.co.jp>
Date: Thu, 28 Dec 2000 14:27:01 +0900
Message-Id: <v04210a01b6707b0454cc@ralph.the.canon.co.jp>
To: www-html-editor@w3.org
Dear XHTML editors,

The following descriptions in Appendix C of XHTML 1.0 specification
sounds inappropriate since the XML declaration is NOT a processing
instruction (isn't it?). I think the descriptions should not imply that
an XML declaration is a kind of processing instruction.
 
<http://www.w3.org/TR/xhtml1/#guidelines>

C.1 Processing Instructions
Be aware that processing instructions are rendered on some user agents.
However, also note that when the XML declaration is not included in a
document, the document can only use the default character encodings
UTF-8 or UTF-16.

C.9 Character Encoding
To specify a character encoding in the document, use both the encoding
attribute specification on the xml declaration (e.g. <?xml version="1.0"
encoding="EUC-JP"?>) and a meta http-equiv statement (e.g. <meta
http-equiv="Content-type" content='text/html; charset="EUC-JP"'/>).
The value of the encoding attribute of the xml processing instruction takes
precedence.

Best regards,

--
Jun Fujisawa
<mailto:fujisawa.jun@canon.co.jp>
Received on Thursday, 28 December 2000 00:28:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:50 GMT