<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="1" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[1]</anchor-end> RFC 3023 <code>XML 媒体型</code>は、 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">MIME</anchor> や <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HTTP</anchor>
などの<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">媒体型</anchor>が使われる場面での <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">XML</anchor>
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">実体</anchor>の取扱いを規定しています。</p><p>RFC 3023 は <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC2376</anchor> を廃止しました。</p><figure class="important"><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="3024" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[3024]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC 3023</anchor> は <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC 7303</anchor> により<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">廃止</anchor>されました。</p></figure><figure class="quote"><blockquote><ul><li>Network Working Group                                     </li><li>Request for Comments: <del>2376</del> <ins>3023</ins><insert xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"><ul xmlns="http://www.w3.org/1999/xhtml"><li>Obsoletes: 2376</li><li>Updates: 2048</li></ul></insert></li><li>Category: <del>Informational</del> <ins>Standards Track</ins><delete xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"><ul xmlns="http://www.w3.org/1999/xhtml"><li>E. Whitehead</li><li>UC Irvine</li></ul></delete></li><li>M. Murata<delete xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"><ul xmlns="http://www.w3.org/1999/xhtml"><li>Fuji Xerox Info. Systems</li></ul></delete><insert xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"><ul xmlns="http://www.w3.org/1999/xhtml"><li>IBM Tokyo Research Laboratory</li><li>S. St.Laurent</li><li>simonstl.com</li><li>D. Kohn</li><li>Skymoon Ventures</li><li>January 2001</li></ul></insert><delete xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"><ul xmlns="http://www.w3.org/1999/xhtml"><li>July 1998</li></ul></delete><strong>XML Media Types <ins>XML <replace xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" by="media type"></replace></ins></strong></li></ul></blockquote><section><h1>Status of this Memo</h1><delete xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"><blockquote xmlns="http://www.w3.org/1999/xhtml"><p>This memo provides information for the Internet community.  It does
not specify an Internet standard of any kind.  Distribution of this
memo is unlimited.</p></blockquote></delete><insert xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"><blockquote xmlns="http://www.w3.org/1999/xhtml"><p>This document specifies an Internet standards track protocol for the
Internet community, and requests discussion and suggestions for
improvements.  Please refer to the current edition of the &quot;Internet
Official Protocol Standards&quot; (STD 1) for the standardization state
and status of this protocol.  Distribution of this memo is unlimited.</p></blockquote></insert><blockquote></blockquote></section><section><h1>Copyright Notice</h1><blockquote><p>Copyright (C) The Internet Society (<del>1998</del> <ins>2001</ins>).  All Rights Reserved.</p></blockquote></section><section><h1>Abstract</h1><blockquote><p>This document <del>proposes two</del> <ins>standardizes five</ins> new media types<del>,</del> <ins>--</ins> text/xml<ins>,</ins> <del>and</del>
application/xml, <ins>text/xml-external-parsed-entity, application/xml-external-parsed-entity, and application/xml-dtd --</ins> for use in
exchanging network entities <del>which</del> <ins>that</ins> are <del>conforming</del> <ins>related to the</ins> Extensible Markup
Language (XML).  <ins>This document also standardizes a convention (using the suffix '+xml') for naming media types outside of these five types when those media types represent XML MIME (Multipurpose Internet Mail Extensions) entities.</ins>  XML <ins>MIME</ins> entities are currently exchanged via
the HyperText Transfer Protocol on the World Wide Web, are an
integral part of the WebDAV protocol for remote web authoring, and
are expected to have utility in many domains.</p><insert xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"><blockquote xmlns="http://www.w3.org/1999/xhtml"><p>Major differences from RFC 2376 are (1) the addition of text/xml-
external-parsed-entity, application/xml-external-parsed-entity, and
application/xml-dtd, (2) the '+xml' suffix convention (which also
updates the RFC 2048 registration process), and (3) the discussion of
&quot;utf-16le&quot; and &quot;utf-16be&quot;.</p></blockquote></insert></blockquote></section><section><h1>Table of Contents</h1><delete xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"><ol xmlns="http://www.w3.org/1999/xhtml"><li>1 INTRODUCTION ....................................................2</li><li>2 NOTATIONAL CONVENTIONS ..........................................3</li><li>3 XML MEDIA TYPES .................................................3</li><li>3.1  Text/xml Registration ........................................3</li><li>3.2  Application/xml Registration .................................6</li><li>4 SECURITY CONSIDERATIONS .........................................8</li><li>5 THE BYTE ORDER MARK (BOM) AND CONVERSIONS TO/FROM UTF-16 ........9</li><li>6 EXAMPLES ........................................................9</li><li>6.1  text/xml with UTF-8 Charset .................................10</li><li>6.2  text/xml with UTF-16 Charset ................................10</li><li>6.3  text/xml with ISO-2022-KR Charset ...........................10</li><li>6.4  text/xml with Omitted Charset ...............................11</li><li>6.5  application/xml with UTF-16 Charset .........................11</li><li>6.6  application/xml with ISO-2022-KR Charset ....................11</li><li>6.7  application/xml with Omitted Charset and UTF-16 XML Entity ..12</li><li>6.8  application/xml with Omitted Charset and UTF-8 Entity .......12</li><li>6.9  application/xml with Omitted Charset and Internal Encoding
Declaration.......................................................12</li><li>7 REFERENCES .....................................................13</li><li>8 ACKNOWLEDGEMENTS ...............................................14</li><li>9 ADDRESSES OF AUTHORS ...........................................14</li><li>10 FULL COPYRIGHT STATEMENT ......................................15</li></ol></delete><blockquote><insert xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"><ol xmlns="http://www.w3.org/1999/xhtml"><li>1.   Introduction . . . . . . . . . . . . . . . . . . . . . . . .   3</li><li>2.   Notational Conventions . . . . . . . . . . . . . . . . . . .   4</li><li>3.   XML Media Types  . . . . . . . . . . . . . . . . . . . . . .   5</li><li>3.1  Text/xml Registration  . . . . . . . . . . . . . . . . . . .   7</li><li>3.2  Application/xml Registration . . . . . . . . . . . . . . . .   9</li><li>3.3  Text/xml-external-parsed-entity Registration . . . . . . . .  11</li><li>3.4  Application/xml-external-parsed-entity Registration  . . . .  12</li><li>3.5  Application/xml-dtd Registration . . . . . . . . . . . . . .  13</li><li>3.6  Summary  . . . . . . . . . . . . . . . . . . . . . . . . . .  14</li><li>4.   The Byte Order Mark (BOM) and Conversions to/from the UTF-16
Charset  . . . . . . . . . . . . . . . . . . . . . . . . . .  15</li><li>5.   Fragment Identifiers . . . . . . . . . . . . . . . . . . . .  15</li><li>6.   The Base URI . . . . . . . . . . . . . . . . . . . . . . . .  15</li><li>7.   A Naming Convention for XML-Based Media Types  . . . . . . .  16</li><li>7.1  Referencing  . . . . . . . . . . . . . . . . . . . . . . . .  18</li><li>8.   Examples . . . . . . . . . . . . . . . . . . . . . . . . . .  18</li><li>8.1  Text/xml with UTF-8 Charset  . . . . . . . . . . . . . . . .  19</li><li>8.2  Text/xml with UTF-16 Charset . . . . . . . . . . . . . . . .  19</li><li>8.3  Text/xml with UTF-16BE Charset . . . . . . . . . . . . . . .  19</li><li>8.4  Text/xml with ISO-2022-KR Charset  . . . . . . . . . . . . .  20</li><li>8.5  Text/xml with Omitted Charset  . . . . . . . . . . . . . . .  20</li><li>8.6  Application/xml with UTF-16 Charset  . . . . . . . . . . . .  20</li><li>8.7  Application/xml with UTF-16BE Charset  . . . . . . . . . . .  21</li><li>8.8  Application/xml with ISO-2022-KR Charset . . . . . . . . . .  21</li><li>8.9  Application/xml with Omitted Charset and UTF-16 XML MIME
Entity . . . . . . . . . . . . . . . . . . . . . . . . . . .  21</li><li>8.10 Application/xml with Omitted Charset and UTF-8 Entity  . . .  22</li><li>8.11 Application/xml with Omitted Charset and Internal Encoding
Declaration  . . . . . . . . . . . . . . . . . . . . . . . .  22</li><li>8.12 Text/xml-external-parsed-entity with UTF-8 Charset . . . . .  22</li><li>8.13 Application/xml-external-parsed-entity with UTF-16 Charset .  23</li><li>8.14 Application/xml-external-parsed-entity with UTF-16BE Charset  23</li><li>8.15 Application/xml-dtd  . . . . . . . . . . . . . . . . . . . .  23</li><li>8.16 Application/mathml+xml . . . . . . . . . . . . . . . . . . .  24</li><li>8.17 Application/xslt+xml . . . . . . . . . . . . . . . . . . . .  24</li><li>8.18 Application/rdf+xml  . . . . . . . . . . . . . . . . . . . .  24</li><li>8.19 Image/svg+xml  . . . . . . . . . . . . . . . . . . . . . . .  24</li><li>8.20 INCONSISTENT EXAMPLE: Text/xml with UTF-8 Charset  . . . . .  25</li><li>9.   IANA Considerations  . . . . . . . . . . . . . . . . . . . .  25</li><li>10.  Security Considerations  . . . . . . . . . . . . . . . . . .  25</li><li>References . . . . . . . . . . . . . . . . . . . . . . . . .  27</li><li>Authors' Addresses . . . . . . . . . . . . . . . . . . . . .  31</li><li>A.   Why Use the '+xml' Suffix for XML-Based MIME Types?  . . . .  32</li><li>A.1  Why not just use text/xml or application/xml and let the XML
processor dispatch to the correct application based on the
referenced DTD?  . . . . . . . . . . . . . . . . . . . . . .  32</li><li>A.2  Why not create a new subtree (e.g., image/xml.svg) to
represent XML MIME types?  . . . . . . . . . . . . . . . . .  32</li><li>A.3  Why not create a new top-level MIME type for XML-based media
types? . . . . . . . . . . . . . . . . . . . . . . . . . . .  32</li><li>A.4  Why not just have the MIME processor 'sniff' the content to
determine whether it is XML? . . . . . . . . . . . . . . . .  33</li><li>A.5  Why not use a MIME parameter to specify that a media type
uses XML syntax? . . . . . . . . . . . . . . . . . . . . . .  33</li><li>A.6  How about labeling with parameters in the other direction
(e.g., application/xml; Content-Feature=iotp)? . . . . . . .  34</li><li>A.7  How about a new superclass MIME parameter that is defined to
apply to all MIME types (e.g., Content-Type:
application/iotp; $superclass=xml)?  . . . . . . . . . . . .  34</li><li>A.8  What about adding a new parameter to the Content-Disposition
header or creating a new Content-Structure header to
indicate XML syntax? . . . . . . . . . . . . . . . . . . . .  35</li><li>A.9  How about a new Alternative-Content-Type header? . . . . . .  35</li><li>A.10 How about using a conneg tag instead (e.g., accept-features:
(syntax=xml))? . . . . . . . . . . . . . . . . . . . . . . .  35</li><li>A.11 How about a third-level content-type, such as text/xml/rdf?   35</li><li>A.12 Why use the plus ('+') character for the suffix '+xml'?  . .  36</li><li>A.13 What is the semantic difference between application/foo and
application/foo+xml? . . . . . . . . . . . . . . . . . . . .  36</li><li>A.14 What happens when an even better markup language (e.g.,
EBML) is defined, or a new category of data? . . . . . . . .  36</li><li>A.15 Why must I use the '+xml' suffix for my new XML-based media
type?  . . . . . . . . . . . . . . . . . . . . . . . . . . .  37</li><li>B.   Changes from RFC 2376  . . . . . . . . . . . . . . . . . . .  37</li><li>C.   Acknowledgements . . . . . . . . . . . . . . . . . . . . . .  38</li><li>Full Copyright Statement . . . . . . . . . . . . . . . . . .  39</li></ol></insert></blockquote></section></figure><section><h1>目次</h1><figure><ul><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC 3023//1-</anchor><ul><li>1. はじめに</li><li>2. 表記法</li><li>3. XML 媒体型</li></ul></li><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC 3023//4-</anchor><ul><li><ins>4.</ins> <del>5.</del> BOM 及び UTF-16 charset から又は UTF-16 charset への変換</li><li><ins>5. 素片識別子</ins></li><li><ins>6. 基底 URI</ins></li><li><ins>7. XML を基にした媒体型の命名法</ins></li><li><ins>8.</ins> <ins>6.</ins> 例</li><li>9. IANA に関して</li><li><ins>10.</ins> <del>4.</del> 安全性に関して</li></ul></li><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC 3023//附属書</anchor><ul><li><del>7.</del> 参考文献</li><li><del>8. 謝辞</del></li><li><del>9.</del> 著者の連絡先</li><li><ins>附属書 A. なぜ XML を基にした MIME 型に <code>+xml</code> 接尾辞を使うのか</ins></li><li><ins>附属書 B. RFC 2376 からの変更</ins></li><li><ins>附属書 C. 謝辞</ins></li><li><del>10.</del> 完全な著作権声明</li><li><ins>謝辞</ins></li></ul></li></ul></figure><comment-p xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:"><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="3025" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[3025]</anchor-end> 注: 両 RFC 間で幾つかの節の順序が入れ替わっています。
ここでは新しい順に並べています。</comment-p></section><section><h1>規定</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="3026" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[3026]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC 3023</anchor> の規定については、次の各項を参照してください。</p><figure class="short list"><ul><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">XML MIME型</anchor></li><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">外部解析対象実体</anchor></li><li><code class="MIME" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">application/xml-dtd</anchor></code></li><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">素片識別子</anchor></li></ul></figure></section><section><h1>メモ</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="3" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[3]</anchor-end> RFC Errata <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://www.rfc-editor.org/errata.html">http://www.rfc-editor.org/errata.html</anchor-external> に修正があります。</p></section></body></html>