XHTML Media Types覚え書き
最終更新: diveintounlimit 2009年10月14日(水) 15:56:37履歴
XHTML周りのメディアタイプと、スタイルシート、charsetの記述。
メディアタイプ | HTML 4.01 | XHTML 1.0 (HTML互換) | XHTML 1.0 (HTML非互換) | XHTML Basic / 1.1 |
---|---|---|---|---|
text/html | SHOULD | MAY | SHOULD NOT | SHOULD NOT |
application/xhtml+xml | MUST NOT | SHOULD | SHOULD | SHOULD |
application/xml | MUST NOT | MAY | MAY | MAY |
text/xml |
元となる文献/メディアタイプ | デフォルト | 必然性 |
---|---|---|
MIME | US-ASCII | |
HTTP | ISO-8859-1 | |
HTML40 | user agents must not assume any default value for the "charset" parameter. UAはデフォルト値を推測してはいけいない。 | STRONGLY RECOMMENDED meta要素を用いたhttpヘッダ生成を使用すべし |
text/html | 上記参照 | STRONGLY RECOMMENDED XML宣言内とmeta要素を用いたhttpヘッダ生成を共用すべし |
XML10 | UTF-8,UTF-16 | |
application/xml | if an application/xml entity is received where the charset parameter is omitted, no information is being provided about the charset by the MIME Content-Type header. つまりRFC3023では指定していない。 | STRONGLY RECOMMENDED XML宣言内で指定すべし。 (ただしXMLのデフォルトでUTF-8、UTF-16となる) meta要素を用いたhttpヘッダ生成は使用すべきではない |
application/xhtml+xml | application/xmlと同様 | STRONGLY RECOMMENDED XML宣言内で指定すべし。 meta要素を用いたhttpヘッダ生成は使用すべきではない |
text/xml | if a text/xml entity is received with the charset parameter omitted, MIME processors and XML processors MUST use the default charset value of "us-ascii". つまりRFC3023ではus-asciiをデフォルトとしている。 | STRONGLY RECOMMENDED XMLとRFC3023との間で混乱がおきる可能性あり。 XML宣言内で指定すべし。 meta要素を用いたhttpヘッダ生成は使用すべきではない |
タグ
このページへのコメント
7Y2F9u Muchos Gracias for your blog article. Really Cool.
MCCD9Z <a href="http://gfpsvsjecvvo.com/">gfpsvsjecvvo</a>, [url=http://sdsdvfvtpest.com/]sdsdvfvtpest[/url], [link=http://olgqgxzltjws.com/]olgqgxzltjws[/link], http://auevdmjrrbte.com/
xXBAuo <a href="http://wadsalzyecyn.com/">wadsalzyecyn</a>, [url=http://xaqwqlpmcweo.com/]xaqwqlpmcweo[/url], [link=http://rmiojiyceqwc.com/]rmiojiyceqwc[/link], http://hhfdypwltxbp.com/