CINXE.COM

RFC 3236 - The 'application/xhtml+xml' Media Type

<!DOCTYPE html> <html data-bs-theme="auto" lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title> RFC 3236 - The &#x27;application/xhtml+xml&#x27; Media Type </title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="https://static.ietf.org/fonts/inter/import.css" rel="stylesheet"> <link href="https://static.ietf.org/fonts/noto-sans-mono/import.css" rel="stylesheet"> <link rel="stylesheet" href="https://static.ietf.org/dt/12.28.2/ietf/css/document_html_referenced.css"> <script type="module" crossorigin="" src="https://static.ietf.org/dt/12.28.2/assets/embedded-e653257c.js"></script> <link href="https://static.ietf.org/dt/12.28.2/assets/create-pinia-singleton-091c62b7.js" type="text/javascript" crossorigin="anonymous" rel="modulepreload" as="script" /> <link href="https://static.ietf.org/dt/12.28.2/assets/Scrollbar-7de50899.js" type="text/javascript" crossorigin="anonymous" rel="modulepreload" as="script" /> <script src="https://static.ietf.org/dt/12.28.2/ietf/js/document_html.js"></script> <script src="https://static.ietf.org/dt/12.28.2/ietf/js/theme.js"></script> <link rel="alternate" type="application/atom+xml" title="Document changes" href="/feed/document-changes/rfc3236/"> <meta name="description" content="The &#x27;application/xhtml+xml&#x27; Media Type (RFC 3236, )" > <link rel="apple-touch-icon" sizes="180x180" href="https://static.ietf.org/dt/12.28.2/ietf/images/ietf-logo-nor-180.png"> <link rel="icon" sizes="32x32" href="https://static.ietf.org/dt/12.28.2/ietf/images/ietf-logo-nor-32.png"> <link rel="icon" sizes="16x16" href="https://static.ietf.org/dt/12.28.2/ietf/images/ietf-logo-nor-16.png"> <link rel="manifest" href="/site.webmanifest"> <link rel="mask-icon" href="https://static.ietf.org/dt/12.28.2/ietf/images/ietf-logo-nor-mask.svg" color="#ffffff"> <meta name="msapplication-TileColor" content="#ffffff"> <meta name="theme-color" content="#ffffff"> <meta property="og:title" content="RFC 3236: The &#x27;application/xhtml+xml&#x27; Media Type"> <meta property="og:url" content="https://datatracker.ietf.org/doc/html/rfc3236"> <link rel="canonical" href="https://datatracker.ietf.org/doc/html/rfc3236"> <meta property="og:site_name" content="IETF Datatracker"> <meta property="og:description" content="This document defines the &#x27;application/xhtml+xml&#x27; MIME media type for XHTML based markup languages; it is not intended to obsolete any previous IETF documents, in particular RFC 2854 which registers &#x27;text/html&#x27;. This memo provides information for the Internet community."> <meta property="og:type" content="article"> <meta property="article:section" content="Individual Internet-Draft"> <meta property="article:author" content="Peter Stark"> <meta property="article:author" content="Mark Baker"> <style> .diff-form .select2-selection__rendered { direction: rtl; text-align: left; } </style> </head> <body> <noscript><iframe class="status" title="Site status" src="/status/latest"></iframe></noscript> <div class="vue-embed" data-component="Status"></div> <div class="btn-toolbar sidebar-toolbar position-fixed top-0 end-0 m-2 m-lg-3 d-print-none"> <div class="dropdown"> <button class="btn btn-outline-secondary btn-sm me-1 dropdown-toggle d-flex align-items-center" id="bd-theme" type="button" aria-expanded="false" data-bs-toggle="dropdown" aria-label="Toggle theme"> <i class="theme-icon-active bi bi-circle-half"></i> </button> <ul class="dropdown-menu" aria-labelledby="bd-theme"> <li> <button type="button" class="dropdown-item d-flex align-items-center" data-bs-theme-value="light" aria-pressed="false"> <i class="me-2 opacity-50 theme-icon bi bi-sun-fill"></i> Light<i class="bi bi-check2 ms-auto d-none"></i> </button> </li> <li> <button type="button" class="dropdown-item d-flex align-items-center" data-bs-theme-value="dark" aria-pressed="false"> <i class="me-2 opacity-50 theme-icon bi bi-moon-stars-fill"></i> Dark<i class="bi bi-check2 ms-auto d-none"></i> </button> </li> <li> <button type="button" class="dropdown-item d-flex align-items-center active" data-bs-theme-value="auto" aria-pressed="true"> <i class="me-2 opacity-50 theme-icon bi bi-circle-half"></i> Auto<i class="bi bi-check2 ms-auto d-none"></i> </button> </li> </ul> </div> <button class="btn btn-outline-secondary btn-sm sidebar-toggle" type="button" data-bs-toggle="collapse" data-bs-target="#sidebar" aria-expanded="true" aria-controls="sidebar" aria-label="Toggle metadata sidebar" title="Toggle metadata sidebar"> <i class="bi bi-arrow-bar-left sidebar-shown"></i> <i class="bi bi-arrow-bar-right sidebar-collapsed"></i> </button> </div> <nav class="navbar bg-light-subtle px-1 fixed-top d-print-none d-md-none"> <a class="nav-link ps-1" href="/doc/rfc3236/"> RFC 3236 <br class="d-sm-none"> <span class="ms-sm-3 badge rounded-pill badge-inf"> Informational </span> </a> <button class="navbar-toggler p-1" type="button" data-bs-toggle="collapse" data-bs-target="#docinfo-collapse" aria-controls="docinfo-collapse" aria-expanded="false" aria-label="Show document information"> <span class="navbar-toggler-icon small"></span> </button> <div class="navbar-nav navbar-nav-scroll overscroll-none collapse pt-1" id="docinfo-collapse"> <div class="bg-light-subtle p-0"> <table class="table table-sm table-borderless small"> <tbody class="meta align-top"> <tr> <th scope="row"></th> <th scope="row">Title</th> <td class="edit"></td> <td>The &#x27;application/xhtml+xml&#x27; Media Type</td> </tr> </tbody> <tbody class="meta align-top "> <tr> <th scope="row">Document</th> <th scope="row">Document type</th> <td class="edit"></td> <td> <span class="text-success">RFC - Informational </span> <br>January 2002 <br> <a class="btn btn-sm btn-warning" title="Click to report an error in the document." href="https://www.rfc-editor.org/errata.php#reportnew" target="_blank"> Report errata </a> <div> Was <a href="/doc/draft-baker-xhtml-media-reg/02/">draft-baker-xhtml-media-reg</a> (individual) </div> <div class="alert alert-warning small p-2 mt-2" role="alert"> This RFC was published on the Legacy stream. This RFC is <strong>not endorsed by the IETF</strong> and has <strong>no formal standing</strong> in the <a href="/doc/rfc2026/">IETF standards process</a>. </div> </td> </tr> <tr> <td></td> <th scope="row">Select version</th> <td class="edit"></td> <td> <ul class="revision-list pagination pagination-sm text-center flex-wrap my-0"> <li class="page-item"> <a class="page-link" href="/doc/html/draft-baker-xhtml-media-reg-02" rel="nofollow"> 02 </a> </li> <li class="page-item rfc active"> <a class="page-link" href="/doc/html/rfc3236"> RFC 3236 </a> </li> </ul> </td> </tr> <tr> <td></td> <th scope="row">Compare versions</th> <td class="edit"></td> <td> <form class="form-horizontal diff-form" action="https://author-tools.ietf.org/iddiff" method="get" target="_blank"> <select class="form-select form-select-sm mb-1 select2-field" data-max-entries="1" data-width="resolve" data-allow-clear="false" data-minimum-input-length="0" aria-label="From revision" name="url1"> <option value="rfc3236"> RFC 3236 </option> <option value="draft-baker-xhtml-media-reg-02" selected> draft-baker-xhtml-media-reg-02 </option> <option value="draft-baker-xhtml-media-reg-01"> draft-baker-xhtml-media-reg-01 </option> <option value="draft-baker-xhtml-media-reg-00"> draft-baker-xhtml-media-reg-00 </option> </select> <select class="form-select form-select-sm mb-1 select2-field" data-max-entries="1" data-width="resolve" data-allow-clear="false" data-minimum-input-length="0" aria-label="To revision" name="url2"> <option value="rfc3236" selected> RFC 3236 </option> <option value="draft-baker-xhtml-media-reg-02"> draft-baker-xhtml-media-reg-02 </option> <option value="draft-baker-xhtml-media-reg-01"> draft-baker-xhtml-media-reg-01 </option> <option value="draft-baker-xhtml-media-reg-00"> draft-baker-xhtml-media-reg-00 </option> </select> <button type="submit" class="btn btn-primary btn-sm" value="--html" name="difftype"> Side-by-side </button> <button type="submit" class="btn btn-primary btn-sm" value="--hwdiff" name="difftype"> Inline </button> </form> </td> </tr> <tr> <td></td> <th scope="row">Authors</th> <td class="edit"> </td> <td> <span ><a title="Datatracker profile of Peter Stark" href="/person/Peter%20Stark" >Peter Stark</a></span>, <span ><a title="Datatracker profile of Mark Baker" href="/person/distobj@acm.org" >Mark Baker</a> <a href="mailto:distobj%40acm.org" aria-label="Compose email to distobj@acm.org" title="Compose email to distobj@acm.org"> <i class="bi bi-envelope"></i></a></span> <br> <a class="btn btn-primary btn-sm mt-1" href="mailto:rfc3236@ietf.org?subject=rfc3236" title="Send email to the document authors">Email authors</a> </td> </tr> <tr> <td></td> <th scope="row"> RFC stream </th> <td class="edit"> </td> <td > Legacy </td> </tr> <tr> <td></td> <th scope="row"> Other formats </th> <td class="edit"> </td> <td> <div class="buttonlist"> <a class="btn btn-primary btn-sm" target="_blank" href="https://www.rfc-editor.org/rfc/rfc3236.txt"> <i class="bi bi-file-text"></i> txt </a> <a class="btn btn-primary btn-sm" target="_blank" href="https://www.rfc-editor.org/rfc/rfc3236.html"> <i class="bi bi-file-code"></i> html </a> <a class="btn btn-primary btn-sm" download="rfc3236.pdf" target="_blank" href="https://www.rfc-editor.org/rfc/pdfrfc/rfc3236.txt.pdf"> <i class="bi bi-file-pdf"></i> pdf </a> <a class="btn btn-primary btn-sm" target="_blank" href="/doc/rfc3236/bibtex/"> <i class="bi bi-file-ruled"></i> bibtex </a> </div> </td> </tr> </tbody> <tr> <th scope="row"></th> <th scope="row"></th> <td class="edit"></td> <td> <a class="btn btn-sm btn-warning mb-3" target="_blank" href="https://github.com/ietf-tools/datatracker/issues/new/choose"> Report a bug <i class="bi bi-bug"></i> </a> </td> </tr> </table> </div> </div> </nav> <div class="row g-0"> <div class="col-md-9 d-flex justify-content-center lh-sm" data-bs-spy="scroll" data-bs-target="#toc-nav" data-bs-smooth-scroll="true" tabindex="0" id="content"> <div class="rfcmarkup"> <br class="noprint"> <!-- [html-validate-disable-block attr-quotes, void-style, element-permitted-content, heading-level -- FIXME: rfcmarkup/rfc2html generates HTML with issues] --> <div class="rfcmarkup"><pre>Network Working Group M. Baker Request for Comments: 3236 Planetfred, Inc. Category: Informational P. Stark Ericsson Mobile Communications January 2002 <span class="h1">The &#x27;application/xhtml+xml&#x27; Media Type</span> Status of this Memo This memo provides information for the Internet community. It does not specify an Internet standard of any kind. Distribution of this memo is unlimited. Copyright Notice Copyright (C) The Internet Society (2002). All Rights Reserved. Abstract This document defines the &#x27;application/xhtml+xml&#x27; MIME media type for XHTML based markup languages; it is not intended to obsolete any previous IETF documents, in particular <a href="/doc/html/rfc2854">RFC 2854</a> which registers &#x27;text/html&#x27;. <span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span> In 1998, the W3C HTML working group began work on reformulating HTML in terms of XML 1.0 [<a href="#ref-XML" title="&quot;Extensible Markup Language (XML) 1.0&quot;">XML</a>] and XML Namespaces [XMLNS]. The first part of that work concluded in January 2000 with the publication of the XHTML 1.0 Recommendation [<a href="#ref-XHTML1" title="&quot;XHTML 1.0: The Extensible HyperText Markup Language: A Reformulation of HTML 4 in XML 1.0&quot;">XHTML1</a>], the reformulation for HTML 4.01 [<a href="#ref-HTML401" title="&quot;HTML 4.01 Specification&quot;">HTML401</a>]. Work continues in the Modularization of XHTML Recommendation [<a href="#ref-XHTMLM12N" title="&quot;Modularization of XHTML&quot;">XHTMLM12N</a>], the decomposition of XHTML 1.0 into modules that can be used to compose new XHTML based languages, plus a framework for supporting this composition. This document only registers a new MIME media type, &#x27;application/xhtml+xml&#x27;. It does not define anything more than is required to perform this registration. <span class="grey">Baker &amp; Stark Informational [Page 1]</span></pre> <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span> <span class="grey"><a href="/doc/html/rfc3236">RFC 3236</a> The &#x27;application/xhtml+xml&#x27; Media Type January 2002</span> This document follows the convention set out in [<a href="#ref-XMLMIME" title="&quot;XML Media Types&quot;">XMLMIME</a>] for the MIME subtype name; attaching the suffix &quot;+xml&quot; to denote that the entity being described conforms to the XML syntax as defined in XML 1.0 [<a href="#ref-XML" title="&quot;Extensible Markup Language (XML) 1.0&quot;">XML</a>]. This document was prepared by members of the W3C HTML working group based on the structure, and some of the content, of <a href="/doc/html/rfc2854">RFC 2854</a>, the registration of &#x27;text/html&#x27;. Please send comments to www- html@w3.org, a public mailing list (requiring subscription) with archives at &lt;<a href="http://lists.w3.org/Archives/Public/www-html/">http://lists.w3.org/Archives/Public/www-html/</a>&gt;. <span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Registration of MIME media type application/xhtml+xml</span> MIME media type name: application MIME subtype name: xhtml+xml Required parameters: none Optional parameters: charset This parameter has identical semantics to the charset parameter of the &quot;application/xml&quot; media type as specified in [<a href="#ref-XMLMIME" title="&quot;XML Media Types&quot;">XMLMIME</a>]. profile See <a href="#section-8">Section 8</a> of this document. Encoding considerations: See <a href="#section-4">Section 4</a> of this document. Security considerations: See <a href="#section-7">Section 7</a> of this document. Interoperability considerations: XHTML 1.0 [XHTML10] specifies user agent conformance rules that dictate behaviour that must be followed when dealing with, among other things, unrecognized elements. With respect to XHTML Modularization [XHTMLMOD] and the existence of XHTML based languages (referred to as XHTML family members) that are not XHTML 1.0 conformant languages, it is possible that &#x27;application/xhtml+xml&#x27; may be used to describe some of these documents. However, it should suffice for now for the purposes of interoperability that user agents accepting &#x27;application/xhtml+xml&#x27; content use the user agent conformance rules in [<a href="#ref-XHTML1" title="&quot;XHTML 1.0: The Extensible HyperText Markup Language: A Reformulation of HTML 4 in XML 1.0&quot;">XHTML1</a>]. <span class="grey">Baker &amp; Stark Informational [Page 2]</span></pre> <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span> <span class="grey"><a href="/doc/html/rfc3236">RFC 3236</a> The &#x27;application/xhtml+xml&#x27; Media Type January 2002</span> Although conformant &#x27;application/xhtml+xml&#x27; interpreters can expect that content received is well-formed XML (as defined in [<a href="#ref-XML" title="&quot;Extensible Markup Language (XML) 1.0&quot;">XML</a>]), it cannot be guaranteed that the content is valid XHTML (as defined in [<a href="#ref-XHTML1" title="&quot;XHTML 1.0: The Extensible HyperText Markup Language: A Reformulation of HTML 4 in XML 1.0&quot;">XHTML1</a>]). This is in large part due to the reasons in the preceding paragraph. Published specification: XHTML 1.0 is now defined by W3C Recommendation; the latest published version is [<a href="#ref-XHTML1" title="&quot;XHTML 1.0: The Extensible HyperText Markup Language: A Reformulation of HTML 4 in XML 1.0&quot;">XHTML1</a>]. It provides for the description of some types of conformant content as &quot;text/html&quot;, but also doesn&#x27;t disallow the use with other content types (effectively allowing for the possibility of this new type). Applications which use this media type: Some content authors have already begun hand and tool authoring on the Web with XHTML 1.0. However that content is currently described as &quot;text/html&quot;, allowing existing Web browsers to process it without reconfiguration for a new media type. There is no experimental, vendor specific, or personal tree predecessor to &#x27;application/xhtml+xml&#x27;. This new type is being registered in order to allow for the expected deployment of XHTML on the World Wide Web, as a first class XML application where authors can expect that user agents are conformant XML 1.0 [<a href="#ref-XML" title="&quot;Extensible Markup Language (XML) 1.0&quot;">XML</a>] processors. Additional information: Magic number: There is no single initial byte sequence that is always present for XHTML files. However, <a href="#section-5">Section 5</a> below gives some guidelines for recognizing XHTML files. See also section 3.1 in [<a href="#ref-XMLMIME" title="&quot;XML Media Types&quot;">XMLMIME</a>]. File extension: There are three known file extensions that are currently in use for XHTML 1.0; &quot;.xht&quot;, &quot;.xhtml&quot;, and &quot;.html&quot;. It is not recommended that the &quot;.xml&quot; extension (defined in [<a href="#ref-XMLMIME" title="&quot;XML Media Types&quot;">XMLMIME</a>]) be used, as web servers may be configured to distribute such content as type &quot;text/xml&quot; or &quot;application/xml&quot;. [<a href="#ref-XMLMIME" title="&quot;XML Media Types&quot;">XMLMIME</a>] discusses the unreliability of this approach in <a href="#section-3">section 3</a>. Of course, should the author desire this behaviour, then the &quot;.xml&quot; extension can be used. <span class="grey">Baker &amp; Stark Informational [Page 3]</span></pre> <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span> <span class="grey"><a href="/doc/html/rfc3236">RFC 3236</a> The &#x27;application/xhtml+xml&#x27; Media Type January 2002</span> Macintosh File Type code: TEXT Person &amp; email address to contact for further information: Mark Baker &lt;mark.baker@canada.sun.com&gt; Intended usage: COMMON Author/Change controller: The XHTML specifications are a work product of the World Wide Web Consortium&#x27;s HTML Working Group. The W3C has change control over these specifications. <span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Fragment identifiers</span> URI references (Uniform Resource Identifiers, see [<a href="/doc/html/rfc2396">RFC2396</a>] as updated by [<a href="/doc/html/rfc2732">RFC2732</a>]) may contain additional reference information, identifying a certain portion of the resource. These URI references end with a number sign (&quot;#&quot;) followed by an identifier for this portion (called the &quot;fragment identifier&quot;). Interpretation of fragment identifiers is dependent on the media type of the retrieval result. For documents labeled as &#x27;text/html&#x27;, [<a href="/doc/html/rfc2854">RFC2854</a>] specified that the fragment identifier designates the correspondingly named element, these were identified by either a unique id attribute or a name attribute for some elements. For documents described with the application/xhtml+xml media type, fragment identifiers share the same syntax and semantics with other XML documents, see [<a href="#ref-XMLMIME" title="&quot;XML Media Types&quot;">XMLMIME</a>], <a href="#section-5">section</a> <a href="#section-5">5</a>. At the time of writing, [<a href="#ref-XMLMIME" title="&quot;XML Media Types&quot;">XMLMIME</a>] does not define syntax and semantics of fragment identifiers, but refers to &quot;XML Pointer Language (XPointer)&quot; for a future XML fragment identification mechanism. The current specification for XPointer is available at <a href="http://www.w3.org/TR/xptr">http://www.w3.org/TR/xptr</a>. Until [<a href="#ref-XMLMIME" title="&quot;XML Media Types&quot;">XMLMIME</a>] gets updated, fragment identifiers for XHTML documents designate the element with the corresponding ID attribute value (see [<a href="#ref-XML" title="&quot;Extensible Markup Language (XML) 1.0&quot;">XML</a>] <a href="#section-3.3.1">section 3.3.1</a>); any XHTML element with the &quot;id&quot; attribute. <span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Encoding considerations</span> By virtue of XHTML content being XML, it has the same considerations when sent as &#x27;application/xhtml+xml&#x27; as does XML. See [<a href="#ref-XMLMIME" title="&quot;XML Media Types&quot;">XMLMIME</a>], section 3.2. <span class="grey">Baker &amp; Stark Informational [Page 4]</span></pre> <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span> <span class="grey"><a href="/doc/html/rfc3236">RFC 3236</a> The &#x27;application/xhtml+xml&#x27; Media Type January 2002</span> <span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Recognizing XHTML files</span> All XHTML documents will have the string &quot;&lt;html&quot; near the beginning of the document. Some will also begin with an XML declaration which begins with &quot;&lt;?xml&quot;, though that alone does not indicate an XHTML document. All conforming XHTML 1.0 documents will include an XML document type declaration with the root element type &#x27;html&#x27;. XHTML Modularization provides a naming convention by which a public identifier for an external subset in the document type declaration of a conforming document will contain the string &quot;//DTD XHTML&quot;. And while some XHTML based languages require the doctype declaration to occur within documents of that type, such as XHTML 1.0, or XHTML Basic (<a href="http://www.w3.org/TR/xhtml-basic">http://www.w3.org/TR/xhtml-basic</a>), it is not the case that all XHTML based languages will include it. All XHTML files should also include a declaration of the XHTML namespace. This should appear shortly after the string &quot;&lt;html&quot;, and should read &#x27;xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&#x27;. <span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Charset default rules</span> By virtue of all XHTML content being XML, it has the same considerations when sent as &#x27;application/xhtml+xml&#x27; as does XML. See [<a href="#ref-XMLMIME" title="&quot;XML Media Types&quot;">XMLMIME</a>], section 3.2. <span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. Security Considerations</span> The considerations for &quot;text/html&quot; as specified in [<a href="#ref-TEXTHTML" title="&quot;The &#x27;text/html&#x27; Media Type&quot;">TEXTHTML</a>] and and for &#x27;application/xml&#x27; as specified in [<a href="#ref-XMLMIME" title="&quot;XML Media Types&quot;">XMLMIME</a>], also hold for &#x27;application/xhtml+xml&#x27;. In addition, because of the extensibility features for XHTML as provided by XHTML Modularization, it is possible that &#x27;application/xhtml+xml&#x27; may describe content that has security implications beyond those described here. However, if the user agent follows the user agent conformance rules in [<a href="#ref-XHTML1" title="&quot;XHTML 1.0: The Extensible HyperText Markup Language: A Reformulation of HTML 4 in XML 1.0&quot;">XHTML1</a>], this content will be ignored. Only in the case where the user agent recognizes and processes the additional content, or where further processing of that content is dispatched to other processors, would security issues potentially arise. And in that case, they would fall outside the domain of this registration document. <span class="grey">Baker &amp; Stark Informational [Page 5]</span></pre> <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span> <span class="grey"><a href="/doc/html/rfc3236">RFC 3236</a> The &#x27;application/xhtml+xml&#x27; Media Type January 2002</span> <span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. The &quot;profile&quot; optional parameter</span> This parameter is meant to solve the short-term problem of using MIME media type based content negotiation (such as that done with the HTTP &quot;Accept&quot; header) to negotiate for a variety of XHTML based languages. It is intended to be used only during content negotiation. It is not expected that it be used to deliver content, or that origin web servers have any knowledge of it (though they are welcome to). It is primarily targeted for use on the network by proxies in the HTTP chain that manipulate data formats (such as transcoders). The parameter is intended to closely match the semantics of the &quot;profile&quot; attribute of the HEAD element as defined in [<a href="#ref-HTML401" title="&quot;HTML 4.01 Specification&quot;">HTML401</a>] (<a href="#section-7.4.4.3">section 7.4.4.3</a>), except it is applied to the document as a whole rather than just the META elements. More specifically, the value of the profile attribute is a URI that can be used as a name to identify a language. Though the URI need not be resolved in order to be useful as a name, it could be a namespace, schema, or a language specification. As an example, user agents supporting only XHTML Basic (see <a href="http://www.w3.org/TR/xhtml-basic">http://www.w3.org/TR/xhtml-basic</a>) currently have no standard means to convey their inability to support the additional functionality in XHTML 1.0 [<a href="#ref-XHTML1" title="&quot;XHTML 1.0: The Extensible HyperText Markup Language: A Reformulation of HTML 4 in XML 1.0&quot;">XHTML1</a>] that is not found in XHTML Basic. While XHTML Basic user agent conformance rules (which are identical to XHTML 1.0) provide some guidance to its user agent implementators for handling some additional content, the additional content in XHTML 1.0 that is not part of XHTML Basic is substantial, making those conformance rules insufficient for practical processing and rendering to the end user. There is also the matter of the potentially substantial burden on the user agent in receiving and parsing this additional content. The functionality afforded by this parameter can also be achieved with at least two other more general content description frameworks; the &quot;Content-features&quot; MIME header described in <a href="/doc/html/rfc2912">RFC 2912</a>, and UAPROF from the WAPforum (see <a href="http://www.wapforum.org/what/technical.htm">http://www.wapforum.org/what/technical.htm</a>). At this time, choosing one of these solutions would require excluding the other, as interoperability between the two has not been defined. For this reason, it is suggested that this parameter be used until such time as that issue has been addressed. An example use of this parameter as part of a HTTP GET transaction would be; Accept: application/xhtml+xml; profile=&quot;http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd&quot; <span class="grey">Baker &amp; Stark Informational [Page 6]</span></pre> <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span> <span class="grey"><a href="/doc/html/rfc3236">RFC 3236</a> The &#x27;application/xhtml+xml&#x27; Media Type January 2002</span> <span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>. Author&#x27;s Address</span> Mark A. Baker Planetfred, Inc. 44 Byward Market, Suite 240 Ottawa, Ontario, CANADA. K1N 7A2 Phone: +1-613-789-1818 EMail: mbaker@planetfred.com EMail: distobj@acm.org Peter Stark Ericsson Mobile Communications Phone: +464-619-3000 EMail: Peter.Stark@ecs.ericsson.com <span class="h2"><a class="selflink" id="section-10" href="#section-10">10</a>. References</span> [<a id="ref-HTML401">HTML401</a>] Raggett, D., et al., &quot;HTML 4.01 Specification&quot;, W3C Recommendation. Available at &lt;<a href="http://www.w3.org/TR/html401">http://www.w3.org/TR/html401</a>&gt; (or &lt;<a href="http://www.w3.org/TR/1999/REC-html401-19991224">http://www.w3.org/TR/1999/REC-html401-19991224</a>&gt;). [<a id="ref-MIME">MIME</a>] Freed, N. and N. Borenstein, &quot;Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types&quot;, <a href="/doc/html/rfc2046">RFC 2046</a>, November 1996. [<a id="ref-URI">URI</a>] Berners-Lee, T., Fielding, R. and L. Masinter, &quot;Uniform Resource Identifiers (URI): Generic Syntax&quot;, <a href="/doc/html/rfc2396">RFC 2396</a>, August 1998. [<a id="ref-XHTML1">XHTML1</a>] &quot;XHTML 1.0: The Extensible HyperText Markup Language: A Reformulation of HTML 4 in XML 1.0&quot;, W3C Recommendation. Available at &lt;<a href="http://www.w3.org/TR/xhtml1">http://www.w3.org/TR/xhtml1</a>&gt;. [<a id="ref-XML">XML</a>] &quot;Extensible Markup Language (XML) 1.0&quot;, W3C Recommendation. Available at &lt;<a href="http://www.w3.org/TR/REC-xml">http://www.w3.org/TR/REC-</a> <a href="http://www.w3.org/TR/REC-xml">xml</a>&gt; (or &lt;<a href="http://www.w3.org/TR/2000/REC-xml-20001006">http://www.w3.org/TR/2000/REC-xml-20001006</a>&gt;). [<a id="ref-TEXTHTML">TEXTHTML</a>] Connolly, D. and L. Masinter, &quot;The &#x27;text/html&#x27; Media Type&quot;, <a href="/doc/html/rfc2854">RFC 2854</a>, June 2000. [<a id="ref-XMLMIME">XMLMIME</a>] Murata, M., St.Laurent, S. and D. Kohn, &quot;XML Media Types&quot;, <a href="/doc/html/rfc3023">RFC 3023</a>, January 2001. [<a id="ref-XHTMLM12N">XHTMLM12N</a>] &quot;Modularization of XHTML&quot;, W3C Recommendation. Available at: &lt;<a href="http://www.w3.org/TR/xhtml-modularization">http://www.w3.org/TR/xhtml-modularization</a>&gt; <span class="grey">Baker &amp; Stark Informational [Page 7]</span></pre> <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span> <span class="grey"><a href="/doc/html/rfc3236">RFC 3236</a> The &#x27;application/xhtml+xml&#x27; Media Type January 2002</span> <span class="h2"><a class="selflink" id="section-11" href="#section-11">11</a>. Full Copyright Statement</span> Copyright (C) The Internet Society (2002). All Rights Reserved. This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself may not be modified in any way, such as by removing the copyright notice or references to the Internet Society or other Internet organizations, except as needed for the purpose of developing Internet standards in which case the procedures for copyrights defined in the Internet Standards process must be followed, or as required to translate it into languages other than English. The limited permissions granted above are perpetual and will not be revoked by the Internet Society or its successors or assigns. This document and the information contained herein is provided on an &quot;AS IS&quot; basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Acknowledgement Funding for the RFC Editor function is currently provided by the Internet Society. Baker &amp; Stark Informational [Page 8] </pre></div> </div> </div> <div class="d-print-none col-md-3 bg-light-subtle collapse show" id="sidebar"> <div class="position-fixed border-start sidebar overflow-scroll overscroll-none no-scrollbar"> <div class="d-flex flex-column vh-100 pt-2 pt-lg-3 ps-3 pl-md-2 pl-lg-3"> <div> <a class="btn btn-primary btn-sm" href="/doc/rfc3236/">Datatracker</a> <p class="fw-bold pt-2"> RFC 3236 <br> <span class="text-success">RFC - Informational </span> </p> </div> <ul class="nav nav-tabs nav-fill small me-2" role="tablist"> <li class="nav-item" role="presentation" title="Document information"> <button class="nav-link px-2" id="docinfo-tab" data-bs-toggle="tab" data-bs-target="#docinfo-tab-pane" type="button" role="tab" aria-controls="docinfo-tab-pane" aria-selected="true"> <i class="bi bi-info-circle"></i><span class="d-none d-md-block d-xl-inline ms-xl-1">Info</span> </button> </li> <li class="nav-item" role="presentation" title="Table of contents"> <button class="nav-link px-2" id="toc-tab" data-bs-toggle="tab" data-bs-target="#toc-tab-pane" type="button" role="tab" aria-controls="toc-tab-pane" aria-selected="false"> <i class="bi bi-list-ol"></i><span class="d-none d-md-block d-xl-inline ms-xl-1">Contents</span> </button> </li> <li class="nav-item" role="presentation" title="Preferences"> <button class="nav-link px-2" id="pref-tab" data-bs-toggle="tab" data-bs-target="#pref-tab-pane" type="button" role="tab" aria-controls="pref-tab-pane" aria-selected="false"> <i class="bi bi-gear"></i><span class="d-none d-md-block d-xl-inline ms-xl-1">Prefs</span> </button> </li> </ul> <div class="overflow-auto tab-content pt-2 me-2"> <div class="tab-pane" id="docinfo-tab-pane" role="tabpanel" aria-labelledby="docinfo-tab" tabindex="0"> <table class="table table-sm table-borderless"> <tbody class="meta align-top "> <tr> <th scope="row">Document</th> <th scope="row">Document type</th> <td class="edit"></td> <td> <span class="text-success">RFC - Informational </span> <br>January 2002 <br> <a class="btn btn-sm btn-warning" title="Click to report an error in the document." href="https://www.rfc-editor.org/errata.php#reportnew" target="_blank"> Report errata </a> <div> Was <a href="/doc/draft-baker-xhtml-media-reg/02/">draft-baker-xhtml-media-reg</a> (individual) </div> <div class="alert alert-warning small p-2 mt-2" role="alert"> This RFC was published on the Legacy stream. This RFC is <strong>not endorsed by the IETF</strong> and has <strong>no formal standing</strong> in the <a href="/doc/rfc2026/">IETF standards process</a>. </div> </td> </tr> <tr> <td></td> <th scope="row">Select version</th> <td class="edit"></td> <td> <ul class="revision-list pagination pagination-sm text-center flex-wrap my-0"> <li class="page-item"> <a class="page-link" href="/doc/html/draft-baker-xhtml-media-reg-02" rel="nofollow"> 02 </a> </li> <li class="page-item rfc active"> <a class="page-link" href="/doc/html/rfc3236"> RFC 3236 </a> </li> </ul> </td> </tr> <tr> <td></td> <th scope="row">Compare versions</th> <td class="edit"></td> <td> <form class="form-horizontal diff-form" action="https://author-tools.ietf.org/iddiff" method="get" target="_blank"> <select class="form-select form-select-sm mb-1 select2-field" data-max-entries="1" data-width="resolve" data-allow-clear="false" data-minimum-input-length="0" aria-label="From revision" name="url1"> <option value="rfc3236"> RFC 3236 </option> <option value="draft-baker-xhtml-media-reg-02" selected> draft-baker-xhtml-media-reg-02 </option> <option value="draft-baker-xhtml-media-reg-01"> draft-baker-xhtml-media-reg-01 </option> <option value="draft-baker-xhtml-media-reg-00"> draft-baker-xhtml-media-reg-00 </option> </select> <select class="form-select form-select-sm mb-1 select2-field" data-max-entries="1" data-width="resolve" data-allow-clear="false" data-minimum-input-length="0" aria-label="To revision" name="url2"> <option value="rfc3236" selected> RFC 3236 </option> <option value="draft-baker-xhtml-media-reg-02"> draft-baker-xhtml-media-reg-02 </option> <option value="draft-baker-xhtml-media-reg-01"> draft-baker-xhtml-media-reg-01 </option> <option value="draft-baker-xhtml-media-reg-00"> draft-baker-xhtml-media-reg-00 </option> </select> <button type="submit" class="btn btn-primary btn-sm" value="--html" name="difftype"> Side-by-side </button> <button type="submit" class="btn btn-primary btn-sm" value="--hwdiff" name="difftype"> Inline </button> </form> </td> </tr> <tr> <td></td> <th scope="row">Authors</th> <td class="edit"> </td> <td> <span ><a title="Datatracker profile of Peter Stark" href="/person/Peter%20Stark" >Peter Stark</a></span>, <span ><a title="Datatracker profile of Mark Baker" href="/person/distobj@acm.org" >Mark Baker</a> <a href="mailto:distobj%40acm.org" aria-label="Compose email to distobj@acm.org" title="Compose email to distobj@acm.org"> <i class="bi bi-envelope"></i></a></span> <br> <a class="btn btn-primary btn-sm mt-1" href="mailto:rfc3236@ietf.org?subject=rfc3236" title="Send email to the document authors">Email authors</a> </td> </tr> <tr> <td></td> <th scope="row"> RFC stream </th> <td class="edit"> </td> <td > Legacy </td> </tr> <tr> <td></td> <th scope="row"> Other formats </th> <td class="edit"> </td> <td> <div class="buttonlist"> <a class="btn btn-primary btn-sm" target="_blank" href="https://www.rfc-editor.org/rfc/rfc3236.txt"> <i class="bi bi-file-text"></i> txt </a> <a class="btn btn-primary btn-sm" target="_blank" href="https://www.rfc-editor.org/rfc/rfc3236.html"> <i class="bi bi-file-code"></i> html </a> <a class="btn btn-primary btn-sm" download="rfc3236.pdf" target="_blank" href="https://www.rfc-editor.org/rfc/pdfrfc/rfc3236.txt.pdf"> <i class="bi bi-file-pdf"></i> pdf </a> <a class="btn btn-primary btn-sm" target="_blank" href="/doc/rfc3236/bibtex/"> <i class="bi bi-file-ruled"></i> bibtex </a> </div> </td> </tr> </tbody> </table> <a class="btn btn-sm btn-warning mb-3" target="_blank" href="https://github.com/ietf-tools/datatracker/issues/new/choose"> Report a datatracker bug <i class="bi bi-bug"></i> </a> </div> <div class="tab-pane mb-5" id="toc-tab-pane" role="tabpanel" aria-labelledby="toc-tab" tabindex="0"> <nav class="nav nav-pills flex-column small" id="toc-nav"> </nav> </div> <div class="tab-pane mb-5 small" id="pref-tab-pane" role="tabpanel" aria-labelledby="pref-tab" tabindex="0"> <label class="form-label fw-bold mb-2">Show sidebar by default</label> <div class="btn-group-vertical btn-group-sm d-flex" role="group"> <input type="radio" class="btn-check" name="sidebar" id="on-radio"> <label class="btn btn-outline-primary" for="on-radio">Yes</label> <input type="radio" class="btn-check" name="sidebar" id="off-radio"> <label class="btn btn-outline-primary" for="off-radio">No</label> </div> <label class="form-label fw-bold mt-4 mb-2">Tab to show by default</label> <div class="btn-group-vertical btn-group-sm d-flex" role="group"> <input type="radio" class="btn-check" name="deftab" id="docinfo-radio"> <label class="btn btn-outline-primary" for="docinfo-radio"> <i class="bi bi-info-circle me-1"></i>Info </label> <input type="radio" class="btn-check" name="deftab" id="toc-radio"> <label class="btn btn-outline-primary" for="toc-radio"> <i class="bi bi-list-ol me-1"></i>Contents </label> </div> <label class="form-label fw-bold mt-4 mb-2">HTMLization configuration</label> <div class="btn-group-vertical btn-group-sm d-flex" role="group"> <input type="radio" class="btn-check" name="htmlconf" id="txt-radio"> <label class="btn btn-outline-primary" for="txt-radio" title="This is the traditional HTMLization method."> <i class="bi bi-badge-sd me-1"></i>HTMLize the plaintext </label> <input type="radio" class="btn-check" name="htmlconf" id="html-radio"> <label class="btn btn-outline-primary" for="html-radio" title="This is the modern HTMLization method."> <i class="bi bi-badge-hd me-1"></i>Plaintextify the HTML </label> </div> <label class="form-label fw-bold mt-4 mb-2" for="ptsize">Maximum font size</label> <input type="range" class="form-range" min="7" max="16" id="ptsize" oninput="ptdemo.value = ptsize.value"> <label class="form-label fw-bold mt-4 mb-2">Page dependencies</label> <div class="btn-group-vertical btn-group-sm d-flex" role="group"> <input type="radio" class="btn-check" name="pagedeps" id="inline-radio"> <label class="btn btn-outline-primary" for="inline-radio" title="Generate larger, standalone web pages that do not require network access to render."> <i class="bi bi-box me-1"></i>Inline </label> <input type="radio" class="btn-check" name="pagedeps" id="reference-radio"> <label class="btn btn-outline-primary" for="reference-radio" title="Generate regular web pages that require network access to render."> <i class="bi bi-link-45deg me-1"></i>Reference </label> </div> <label class="form-label fw-bold mt-4 mb-2">Citation links</label> <div class="btn-group-vertical btn-group-sm d-flex" role="group"> <input type="radio" class="btn-check" name="reflinks" id="refsection-radio"> <label class="btn btn-outline-primary" for="refsection-radio" title="Citation links go to the reference section."> <i class="bi bi-arrow-clockwise"></i> Go to reference section </label> <input type="radio" class="btn-check" name="reflinks" id="citation-radio"> <label class="btn btn-outline-primary" for="citation-radio" title="Citation links go directly to the cited document."> <i class="bi bi-link-45deg me-1"></i>Go to linked document </label> </div> </div> </div> </div> </div> </div> </div> <script type="text/javascript"> var _paq = window._paq || []; _paq.push(['disableCookies']); _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u="//analytics.ietf.org/"; _paq.push(['setTrackerUrl', u+'matomo.php']); _paq.push(['setSiteId', 7]); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); })(); </script> <noscript><p><img src="//analytics.ietf.org/piwik.php?idsite=7" style="border:0;" alt="" /></p></noscript> <script>(function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'8e8f24564d2c9b90',t:'MTczMjY3OTMwMC4wMDAwMDA='};var a=document.createElement('script');a.nonce='';a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script></body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10