<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><section><h1>blockquote 要素, q 要素 cite 属性 (HTML, XHTML 1)</h1><p>この属性の値の型は <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">URI参照</anchor> (<code class="SGML">%<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">URI</anchor>;</code>) です。
(<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">SGML</anchor> 的には <code class="SGML"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">CDATA</anchor></code> です。)</p><p>属性値の URI 参照は、当該要素の内容の出典を示します。
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="IW" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="HTML4:&quot;struct/text.html#adef-cite-Q&quot;">IW:HTML4:&quot;struct/text.html#adef-cite-Q&quot;</anchor-external> 参照。</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="21" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[21]</anchor-end>
<code class="HTMLa">cite</code> 属性に出典を <code class="SGML">%<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Text</anchor></code> で書いている人がいるのを見かけました。この属性が
<code class="SGML">%URI</code> であることを知らないのでしょうかねぇ。
(<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">名無しさん</anchor> <weak xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">2005-01-30 07:35:39 +00:00</weak>)</p><section><h1>歴史</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="41" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[41]</anchor-end>
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">XHTML2</anchor> の最初の<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">作業原案</anchor>では <code class="HTMLe" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">cite</anchor></code> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">要素</anchor>にも定義されており、
<code class="HTMLe" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">cite</anchor></code> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">要素</anchor>が示す出典をについての追加情報を提供する <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">URL</anchor>
を記述するものとされていました。</p><comment-p xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:"><cite xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">- XHTML Text Module</cite> (<time xmlns="http://www.w3.org/1999/xhtml">2002-08-06 00:20:43 +09:00</time> 版) <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.w3.org/TR/2002/WD-xhtml2-20020805/mod-text.html#edef_text_cite">http://www.w3.org/TR/2002/WD-xhtml2-20020805/mod-text.html#edef_text_cite</anchor-external></comment-p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="42" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[42]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">XHTML2</anchor> ですべての<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">要素</anchor>に追加されていた
<code class="HTMLa" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">href</anchor></code> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">属性</anchor>との使い分けが謎ですね。</p></section><section><h1>メモ</h1><ul><li><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> <em>こんなタグがあればいいんだけどな</em> <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://pc2.2ch.net/test/read.cgi/hp/1052508519/">http://pc2.2ch.net/test/read.cgi/hp/1052508519/</anchor-external>: なぜか途中で例の <code class="HTMLa">cite</code> 属性は法的に十分であるか論争に突入しています。
<form xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" ref="comment"></form></li></ul></section></section><section><h1>ins 要素, del 要素 cite 属性 (HTML, XHTML 1)</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="18" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[18]</anchor-end> <code class="HTMLe"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ins</anchor></code> 要素や <code class="HTMLa"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">del</anchor></code>
要素の <dfn><code class="HTMLa">cite</code> 属性</dfn>は、
原典文書・メッセージの <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">URI参照</anchor>です。
なぜ変更がなされたのかの理由を説明した文書を指すことが想定されています。</p><p>この属性は必須ではありません。</p><p>この属性の値は URI 参照 (<code class="SGML">%<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">URI</anchor>;</code>) です。
(<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">SGML</anchor> 的には <code class="SGML"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">CDATA</anchor></code> です。)</p><p>仕様書: <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="IW" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="HTML4:&quot;struct/text.html#adef-cite-INS&quot;">IW:HTML4:&quot;struct/text.html#adef-cite-INS&quot;</anchor-external></p><section><h1>歴史</h1><section><h1>XHTML2</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="43" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[43]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">XHTML2</anchor> の2つ目の<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">作業原案</anchor>で <code class="HTMLa" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">edit</anchor></code>
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">大域属性</anchor>が導入されたことに伴い、 <code class="HTMLa" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">cite</anchor></code>
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">属性</anchor>は<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">大域属性</anchor>となりました。</p><comment-p xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:"><cite xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">- XHTML Attribute Collections</cite> (<time xmlns="http://www.w3.org/1999/xhtml">2002-12-12 23:58:38 +09:00</time> 版) <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.w3.org/TR/2002/WD-xhtml2-20021211/mod-attribute-collections.html#adef_attribute-collections_edit">http://www.w3.org/TR/2002/WD-xhtml2-20021211/mod-attribute-collections.html#adef_attribute-collections_edit</anchor-external></comment-p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="44" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[44]</anchor-end> 第4次案では <code class="HTMLa" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">del</anchor></code> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">属性</anchor>に関するものから<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">引用元</anchor>を表す
<code class="HTMLe" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">blockquote</anchor></code> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">要素</anchor>同様のものに変わっています。</p><comment-p xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:"><cite xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">- XHTML Attribute Collections</cite> (<time xmlns="http://www.w3.org/1999/xhtml">2003-02-01 00:24:54 +09:00</time> 版) <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.w3.org/TR/2003/WD-xhtml2-20030131/mod-attribute-collections.html#adef_attribute-collections_cite">http://www.w3.org/TR/2003/WD-xhtml2-20030131/mod-attribute-collections.html#adef_attribute-collections_cite</anchor-external></comment-p></section></section><section><h1>例</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="19" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[19]</anchor-end><pre class="HTML">&lt;INS datetime=&quot;1994-11-05T08:15:30-05:00&quot;
        cite=&quot;http://www.foo.org/mydoc/comments.html&quot;&gt;
Furthermore, the latest figures from the marketing department
suggest that such practice is on the rise.
&lt;/INS&gt;</pre></p><p>(HTML 4 仕様書より)</p><form xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" ref="comment"></form></section><section><h1>メモ</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="20" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[20]</anchor-end> 別の文書や文書の別の部分にわざわざ書く程でもない変更理由の説明の場合は、
<code class="HTMLa"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">title</anchor></code> 属性を使うこともできます。</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="27" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[27]</anchor-end>
こんな使い方を思いついた。</p><pre class="HTML example code">&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head xmlns:edit=&quot;http://suika.fam.cx/gate/2005/sw/cite#anchor-27&quot;
    edit:current-revision=&quot;rev-2&quot;&gt;
&lt;title&gt;仕様書&lt;/title&gt;
<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="edit:item xml:id=&quot;rev-1&quot; title=&quot;改訂1&quot;/">edit:item xml:id=&quot;rev-1&quot; title=&quot;改訂1&quot;/</anchor-external>
<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="edit:item xml:id=&quot;rev-2&quot; title=&quot;改訂2&quot;/">edit:item xml:id=&quot;rev-2&quot; title=&quot;改訂2&quot;/</anchor-external>
&lt;/head&gt;
&lt;body&gt;
&lt;h1&gt;仕様書&lt;del cite=&quot;#rev-2&quot;&gt;1.0&lt;/del&gt;&lt;ins cite=&quot;#rev-2&quot;&gt;2.0&lt;/ins&gt;&lt;/h1&gt;
&lt;/body&gt;
&lt;/html&gt;</pre><p>(<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">名無しさん</anchor> [sage] <weak xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">2005-12-28 13:13:38 +00:00</weak>)</p><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> <cite xml:lang="en">Embedding Web Annotations in HTML</cite>
(<time>2017-02-24 02:14:26 +09:00</time>)
<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="https://w3c.github.io/web-annotation/serialization-html-note/#h-web-annotation-based-citation-urls">https://w3c.github.io/web-annotation/serialization-html-note/#h-web-annotation-based-citation-urls</anchor-external></p></section></section></body></html>