<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>XML型録</a0:anchor>を使った <a0:anchor>URI</a0:anchor> の<a0:anchor>解決</a0:anchor>について。
<a0:anchor-external a0:resScheme="URI" a0:resParameter="http://www.oasis-open.org/committees/entity/spec.html#s.uri.res">http://www.oasis-open.org/committees/entity/spec.html#s.uri.res</a0:anchor-external>
参照。</p><p><a0:weak>なお、 <a0:anchor>相対URI</a0:anchor> の解決については <a0:anchor>相対URI//解決</a0:anchor>, 一般の <a0:anchor>URN</a0:anchor> の解決については <a0:anchor>URN//解決</a0:anchor>参照。</a0:weak></p><p><a0:anchor-end a0:anchor="2">[2]</a0:anchor-end><ol><li>URI が<dfn>入力</dfn>として与えられているとします。</li><li>URI が <a0:anchor>RFC3151</a0:anchor> の <code class="URI">urn:publicid:</code>
な <a0:anchor>URN</a0:anchor> である場合は、<a0:rubyb>皮を剥いで<rt>unwrap して</rt></a0:rubyb>公開識別子を取り出し、<a0:anchor>外部識別子//解決</a0:anchor>の手順で解決します。
そうでない場合はこのまま続行します。</li></ol></p><ol><li>現在の<a0:anchor>型録項目ファイル</a0:anchor>並びの最初の型録項目ファイルを処理します。</li><li>一致する <code class="XML"><a0:anchor>uri</a0:anchor></code> 項目がある場合は、
そこに指定された<a0:anchor>絶対URI</a0:anchor> を結果とします。
(複数一致するものがある場合、最初のものを結果とします。以降同じ。)<ol><li>一致する <code class="XML"><a0:anchor>rewriteURI</a0:anchor></code> 項目がある場合は、
その書換え結果を結果とします。</li><li>一致する <code class="XML"><a0:anchor>delegateURI</a0:anchor></code> 項目がある場合は、
委譲します。<ol><li>一致する<em>全て</em>の <code class="XML">delegateURI</code>
項目に指定された型録項目ファイルから、
新しい型録項目ファイル並びを用意します。<ul><li>この時、並べる順番は、一致部分が長い順とします。</li></ul></li><li>与えられた URI を入力として、
最初の手順に戻ります。その結果が得られれば、
これを返します。</li><li>委譲検索終了後、「現在の型録項目ファイル並び」
は元のもの (委譲前のもの) に戻ります。</li></ol></li></ol></li><li><code class="XML"><a0:anchor>nextCatalog</a0:anchor></code> 項目があれば、
全て、その出現順に、型録項目ファイル並びの現在の型録項目ファイルのすぐ後ろに追加します。</li><li>現在の型録項目ファイル並びに型録項目ファイルが残っていれば、
次の型録項目ファイルに移ります。 (最初の手順へ)</li><li>結果が得られなかったと報告します。</li></ol><section><h1>関連</h1><p><a0:anchor-end a0:anchor="3">[3]</a0:anchor-end> 
<a0:anchor>外部識別子の解決</a0:anchor>も参照。</p></section></body></html>