APP draft-17

yohei-y:weblog - APP の標準化作業がほぼ終了経由でThe Atom Publishing Protocol draft-17を漫然と眺めていたら、Atomでは正方向・逆方向リンクなどを示せるということを今更ながら発見。

  <feed xmlns="http://www.w3.org/2005/Atom">
    <link rel="first"
          href="http://example.org/entries/go" />
    <link rel="previous"
          href="http://example.org/entries/go" />
    <link rel="next"
          href="http://example.org/entries/3" />
    <link rel="last"
          href="http://example.org/entries/10" />
    ...
  </feed>

これはいいなあ。

早速NICOBOOMのRSSに追加させていただきました。

<atom:link href="http://nicoboom.org/search.rdf?q=%E7%B5%84%E6%9B%B2&amp;page=1" rel="first"/>
<atom:link href="http://nicoboom.org/search.rdf?q=%E7%B5%84%E6%9B%B2&amp;page=1" rel="previous"/>
<atom:link href="http://nicoboom.org/search.rdf?q=%E7%B5%84%E6%9B%B2&amp;page=3" rel="next"/>
<atom:link href="http://nicoboom.org/search.rdf?q=%E7%B5%84%E6%9B%B2&amp;page=12" rel="last"/>

relとhrefの順番が入れ替わっているのに特に理由はありません。強いて言うなら無精だから。
これでhtmlで示している事柄をだいたい全部RSSに盛り込めたはず。