<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><section><h1>4. The Content-Location and Content-Base MIME Content Headers</h1><section><h1>4.1 MIME content headers <ins>MIME 内容頭</ins></h1><blockquote><p>In order to resolve URI references to other body parts, two MIME
content headers are defined, Content-Location and Content-Base. Both
these headers can occur in any message or content heading, and will
then be valid within this heading and for its content.</p></blockquote><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> 他の本体部分への URI 参照を解決するために、 <code>Content-Location</code>,
<code>Content-Base</code> の二つの MIME 内容頭を定義します。
この両者はどんなメッセージ頭や内容頭にも出現することが出来、その頭及び内容に対して有効になります。</p><blockquote><p>In practice, at present only those URIs which are URLs are used, but
it is anticipated that other forms of URIs will in the future be used.</p></blockquote><p>実際には、現時点で URL が使われている URI だけを使いますが、他の形式の URI
が将来使用されると予想されます。</p><blockquote><p>The syntax for these headers is, using the syntax definition tools from [RFC822]:</p></blockquote><p>この頭の構文は、 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC822</anchor> の構文定義具を使って次のように表せます。</p><ul><li><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>       content-location ::= &quot;Content-Location:&quot; ( absoluteURI | relativeURI )</li><li><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="4" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[4]</anchor-end>       content-base ::= &quot;Content-Base:&quot; absoluteURI</li></ul><blockquote><p>where URI is at present (June 1996) restricted to the syntax for URLs
as defined in RFC 1738 [URL].</p></blockquote><p>ここで、 URI は現在 (1996年6月) <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC1738</anchor> で定義されている URL
の構文に制限されます。</p><blockquote><p>These two headers are valid only for exactly the content heading or
message heading where they occurs and its text. They are thus not
valid for the parts inside multipart headings, and are thus
meaningless in multipart headings.</p></blockquote><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> この二つの頭は、その実際に出現する内容頭又はメッセージ頭及びその文章に対してのみ有効です。
従って複数部分頭の内側の部分には有効ではありませんから、よって複数部分頭では意味を持ちません。</p><blockquote><p>These two headers may occur both inside and outside of a multipart/related part.</p></blockquote><p>この二つの頭は <code>multipart/related</code> 部分の内側及び外側の両方で出現可能です。</p></section><section><h1>4.2 The Content-Base header</h1><blockquote><p>The Content-Base gives a base for relative URIs occurring in other
heading fields and in HTML documents which do not have any BASE
element in its HTML code. Its value MUST be an absolute URI.</p></blockquote><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="2" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[2]</anchor-end> <code>Content-Base</code> は、その他の頭欄内及び <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">base</anchor> 要素を持たない <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HTML</anchor>
文書においてその HTML code 内に出現する相対 URI の基底となります。
この値は絶対 URI でなければ<strong>なりません</strong>。</p><blockquote><p>Example showing which Content-Base is valid where:</p></blockquote><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="4" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[4]</anchor-end> どの <code>Content-Base</code> がどこで有効かの例を示します。</p><pre>    Content-Type: Multipart/related; boundary=&quot;boundary-example-1&quot;;
                  type=Text/HTML; start=foo2*foo3@bar2.net
     ; A Content-Base header cannot be placed here, since this is a
     ; multipart MIME object.
     <ins>; Content-Base 頭はここには置けません。</ins>
     <ins>; ここは複数部分 MIME 物体ですから。</ins>
     <ins>;; 訳注: <anchor-internal xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="3" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">&gt;&gt;3</anchor-internal> によれば、厳密に言えば、意味を持たないだけでここにも置けます。</ins></pre><pre>    --boundary-example-1</pre><pre>    Part 1:
    Content-Type: Text/HTML; charset=US-ASCII
    Content-ID: &lt;foo2*foo3@bar2.net&gt;
    Content-Location: http://www.ietf.cnir.reston.va.us/images/foo1.bar1
    ;  This Content-Location must contain an absolute URI, since no base
    ;  is valid here.
    <ins>; この Content-Location は絶対 URI でなければなりません。</ins>
    <ins>; ここには妥当な基底がありませんから。</ins></pre><pre>    --boundary-example-1</pre><pre>    Part 2:
    Content-Type: Text/HTML; charset=US-ASCII
    Content-ID: &lt;foo4*foo5@bar2.net&gt;
    Content-Location: foo1.bar1   ; The Content-Base below applies to
                                  ; this relative URI
                  <ins>;; 下の Content-Base がこの相対 URI に適用されます。</ins>
    Content-Base: http://www.ietf.cnri.reston.va.us/images/</pre><pre>    --boundary-example-1--</pre><insert xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"><p xmlns="http://www.w3.org/1999/xhtml">訳注: この例は例示のため <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">MIME</anchor> の複数部分メッセージとしてはそのままでは不正になっています。
複数部分メッセージの構文については <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">multipart/*媒体型</anchor>を参照。</p></insert></section><section><h1>4.3 The Content-Location Header</h1><blockquote><p>The Content-Location header specifies the URI that corresponds to the
content of the body part in whose heading the header is placed. Its
value CAN be an absolute or relative URI. Any URI or URL scheme may
be used, but use of non-standardized URI or URL schemes might entail
some risk that recipients cannot handle them correctly.</p></blockquote><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="5" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[5]</anchor-end> <code>Content-Location</code> 頭は、その頭にこの頭が置かれている本体部分の内容に対応する
URI を指定します。
その値は絶対 URI にすることも相対 URI にすることも<strong>出来ます</strong>。
どんな URI scheme も URL scheme も使用出来ますが、標準化されていない
URI 又は URL の scheme を使うことは、受信者が正しくこれを取り扱えない危険性を必然的に伴うでしょう。</p><blockquote><p>The Content-Location header can be used to indicate that the data
sent under this heading is also retrievable, in identical format,
through normal use of this URI. If used for this purpose, it must
contain an absolute URI or be resolvable, through a Content-Base
header, into an absolute URI. In this case, the information sent in
the message can be seen as a cached version of the original data.</p></blockquote><p><code>Content-Location</code> 頭は、この頭の下に送られたデータが、同一の形式において、この
URI の通常の使用により取り出すことが出来ることを示すのに使うことが出来ます。
この目的で使う場合、絶対 URI 又は <code>Content-Base</code> 頭を使って絶対 URI
に解決可能な相対 URI を含めなければなりません。
この場合、メッセージ中で贈られた情報は元のデータのキャッシュ版と見ることができます。</p><blockquote><p>The header can also be used for data which is not available to some
or all recipients of the message, for example if the header refers to
an object which is only retrievable using this URI in a restricted
domain, such as within a company-internal web space. The header can
even contain a fictious URI and need in that case not be globally unique.</p></blockquote><p>この頭は、メッセージの受信者の一部又は全員に利用可能でないデータ,
例えば, 会社内 Web 空間内のような制限された<ruby>範囲<rt>ドメイン</rt></ruby>内でのみその
URI を使って取り出すことが可能な物体を頭が参照している場合でも使用することが出来ます。</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="6" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[6]</anchor-end></p><blockquote><p>Example:</p></blockquote><pre>   Content-Type: Multipart/related; boundary=&quot;boundary-example-1&quot;;
                    type=Text/HTML</pre><pre>      --boundary-example-1</pre><pre>      Part 1:
      Content-Type: Text/HTML; charset=US-ASCII</pre><pre>      ... ... &lt;IMG SRC=&quot;fiction1/fiction2&quot;&gt; ... ...</pre><pre>      --boundary-example-1</pre><pre>      Part 2:
      Content-Type: Text/HTML; charset=US-ASCII
      Content-Location: fiction1/fiction2</pre><pre>      --boundary-example-1--</pre><insert xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"><p xmlns="http://www.w3.org/1999/xhtml">訳注: この例は例示のため <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">MIME</anchor> の複数部分メッセージとしてはそのままでは不正になっています。
複数部分メッセージの構文については <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">multipart/*媒体型</anchor>を参照。</p></insert></section><section><h1>4.4 Encoding of URIs in e-mail headers <ins>電子メイル頭内での URI の符号化</ins></h1><blockquote><p>Since MIME header fields have a limited length and URIs can get quite
long, these lines may have to be folded. If such folding is done, the
algorithm defined in [URLBODY] section 3.1 should be employed.</p></blockquote><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="7" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[7]</anchor-end> MIME 頭欄は長さ制限があり、 URI 
はかなり長くなり得ることから、これらの行は折り畳みしなければならないかもしれません。
そのような折り畳みがなされる場合、 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[URLBODY</anchor>] 3.1節で定義された算法を使用するのが良いです。</p></section></section><section><h1>License</h1><p><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFCのライセンス</anchor></p></section><section><h1>メモ</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="8" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[8]</anchor-end>
<cite xml:lang="en">RFC 2110 MIME E-mail Encapsulation of Aggregate Documents, such as HTML (MHTML)</cite> (<code>2007-01-21 02:04:51 +09:00</code> 版) <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://tools.ietf.org/html/rfc2110">http://tools.ietf.org/html/rfc2110</anchor-external>
(<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">名無しさん</anchor>)</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="9" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[9]</anchor-end>
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC 2616</anchor> には</p><blockquote><p>Content-Base was deleted from the specification: it was not implemented widely, and there is no simple, safe way to introduce it without a robust extension mechanism. In addition, it is used in a similar, but not identical fashion in MHTML [45].</p></blockquote><p>と書いてあるのですが、 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">MHTML</anchor> と同じでないというのは何のことですかね? 構文 (<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">URLBODY</anchor>)?</p></section></body></html>