<html xmlns="http://www.w3.org/1999/xhtml" a0:Name="SuikaWiki" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:Version="0.9"><head></head><body><p><a0:anchor-end a0:anchor="1">[1]</a0:anchor-end> <a0:anchor>内向き</a0:anchor>や<a0:anchor>第三者</a0:anchor>の<a0:anchor>連結</a0:anchor>を集めた<a0:anchor>文書</a0:anchor>のことを、
<dfn><a0:rubyb>連結データベース<rt>link database</rt></a0:rubyb></dfn>あるいは<dfn><a0:rubyb>連結ベース<rt>linkbase</rt></a0:rubyb></dfn>といいます。
(<a0:anchor-external a0:resParameter="http://www.w3.org/TR/xlink/#dt-linkbase" a0:resScheme="URI">http://www.w3.org/TR/xlink/#dt-linkbase</a0:anchor-external> 参照。)</p><p><a0:anchor-end a0:anchor="2">[2]</a0:anchor-end> <q>5.1.5 Locating Linkbases (Special Arc Role)</q>
<a0:anchor-external a0:resParameter="http://www.w3.org/TR/xlink/#xlg" a0:resScheme="URI">http://www.w3.org/TR/xlink/#xlg</a0:anchor-external>
では、連結ベースを関連付ける方法が説明されています。</p><p>連結ベースを使うときには、連結の弧 (<code class="XML"><a0:anchor>arc</a0:anchor></code>
型要素) の <code class="XMLa"><var>xlink:</var><a0:anchor>arcrole</a0:anchor></code>
属性の値に
<code class="URI">http://www.w3.org/1999/xlink/properties/linkbase</code>
を使用します。</p><p>その弧の<a0:anchor>終点資源</a0:anchor>が連結ベースです。
連結ベースは、 <a0:anchor>XML</a0:anchor> 文書でなければ<strong>なりません</strong>。
連結ベースの XML 文書は XLink による連結の定義を含んでいます。</p><p>(XLink 処理器は他の方法で連結ベースを処理できても<strong>構いません</strong>。)</p><p><a0:anchor-end a0:anchor="3">[3]</a0:anchor-end> 連結ベース弧の取扱いは通常とほとんど同じですが、
<a0:anchor>探索</a0:anchor>の結果終点資源を利用者に表示したりするのではなく、
連結ベース内の連結の定義を読込んで使えるように準備します。
XLink 応用は<a0:anchor>利用者の任意選択</a0:anchor>によりこの探索を停止できなければ<strong>なりません</strong>。</p><p>連結ベースを読み込んだら応用は何が開始資源であるのかの追跡を続ける<strong>べきです</strong>。
開始資源を含む文書が読込まれて連結ベース弧の探索が行われたら、
応用は連結ベースに接続して、その中の拡張連結を展開する<strong>べきです</strong>。
展開された資源が完全な <a0:anchor>XML</a0:anchor> 文書の一部である場合には、
展開された部分が完全に含まれる拡張連結だけを利用可能とする<strong>べきです</strong>。</p><p>(連結ベースを読込む時機は連結ベース弧の
<code class="XMLa"><var>xlink:</var><a0:anchor>actuate</a0:anchor></code> 属性に拠ります。)</p><p><a0:anchor-end a0:anchor="4">[4]</a0:anchor-end> 連結ベースは他の連結ベース弧の開始資源とすることによって連鎖して<strong>構いません</strong>。
応用は鎖を追いかける深さを限定しても<strong>構いません</strong>。</p><p>応用は連結ベースの処理の結果として取出した拡張連結の一覧を管理する<strong>べきです</strong>。
応用は循環参照している連結ベースで重複して資源や連結を取出す<strong>べきではありません</strong>。</p><p><a0:anchor-end a0:anchor="5">[5]</a0:anchor-end> 例 (仕様書から):<pre class="XML">&lt;basesloaded xlink:type=&quot;extended&quot;
        xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
  &lt;startrsrc xlink:type=&quot;locator&quot;
        xlink:label=&quot;spec&quot;
        xlink:href=&quot;spec.xml&quot; /&gt;
  &lt;linkbase xlink:type=&quot;locator&quot;
        xlink:label=&quot;linkbase&quot;
        xlink:href=&quot;linkbase.xml&quot; /&gt;
  &lt;load xlink:type=&quot;arc&quot;
        xlink:from=&quot;spec&quot; xlink:to=&quot;linkbase&quot;
        xlink:actuate=&quot;onLoad&quot;
        xlink:arcrole=&quot;http://www.w3.org/1999/xlink/properties/linkbase&quot; /&gt;
&lt;/basesloaded&gt;</pre></p><p>この XML 文書片は、 <samp class="URI">spec.xml</samp>
が読込まれた時に連結ベースとして <samp class="URI">linkbase.xml</samp>
を読込んで適用するように指定しています。</p><p><a0:anchor-end a0:anchor="6">[6]</a0:anchor-end> 例 (同じく仕様書から):<pre class="XML">&lt;basesloaded xlink:type=&quot;extended&quot;
        xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;&gt;
  &lt;startrsrc xlink:type=&quot;locator&quot;
        xlink:label=&quot;spec&quot;
        xlink:href=&quot;spec.xml#string-range(//*,'Click here to reveal annotations.')&quot; /&gt;
  &lt;linkbase xlink:type=&quot;locator&quot;
        xlink:label=&quot;linkbase&quot;
        xlink:href=&quot;linkbase.xml&quot; /&gt;
  &lt;load xlink:type=&quot;arc&quot;
        xlink:from=&quot;spec&quot; xlink:to=&quot;linkbase&quot;
        xlink:actuate=&quot;onRequest&quot;
        xlink:arcrole=&quot;http://www.w3.org/1999/xlink/properties/linkbase&quot; /&gt;
&lt;/basesloaded&gt;</pre></p><p>こちらの例では、 <code class="URI">spec.xml</code> 中の
<samp>Click here to reveal annotations.</samp> という箇所について要求があったときに、
<samp class="URI">linkbase.xml</samp> が読込まれます。
(連結ベース探索の始点 (文書内の箇所) と連結ベースの適用対象は関係ないことに注意。)</p><p>(<code class="XML"><a0:anchor>onRequest</a0:anchor></code> の「要求」
を行う方法は <q>Click</q> とは限らないので、
この XML 文書片は汎用的ではありません。
例外なく特定の場面で特定の XLink 
応用にのみ処理されることが分かりきっているのならよいでしょうが、
そうでない場合にはこのような書き方はよくないでしょう。)</p><p><a0:anchor-end a0:anchor="7">[7]</a0:anchor-end>
連結ベース目録中の <code class="XML">arc</code> 型要素では、常に (明示された属性値にかかわらず) <code class="XMLa"><var>xlink:</var><a0:anchor>show</a0:anchor></code> は <code class="XML"><a0:anchor>none</a0:anchor></code>, <code class="XMLa"><var>xlink:</var><a0:anchor>actuate</a0:anchor></code> は <code class="XML"><a0:anchor>onLoad</a0:anchor></code> とみなされます。
<a0:anchor-external a0:resParameter="http://www.w3.org/TR/xlink/#link-behaviors" a0:resScheme="URI">http://www.w3.org/TR/xlink/#link-behaviors</a0:anchor-external></p><p><a0:anchor-end a0:anchor="8">[8]</a0:anchor-end> 
<a0:anchor-external a0:resParameter="http://www.w3.org/1999/xlink/properties/linkbase" a0:resScheme="URI">http://www.w3.org/1999/xlink/properties/linkbase</a0:anchor-external> は <code class="HTTP"><a0:anchor>403</a0:anchor></code> で、何かはあるようですが、
何も表示できません。 <time>2010-05-22T10:55:10.00Z</time></p></body></html>