2009-08-19 6 views
21

これも可能ですか?ATOMやRSSのようなフィードのページネーションですか?

おそらく?

<link rel=“next” type=“application/atom+xml” href=”[//path/page2]”></link> 
+0

私はあなたがここで何を求めているのかよく分かりません。あなたは詳しく説明できますか? –

+0

私は彼が21-30のフィードからしか取得できないか、それとも –

+0

のようなものを取得できるかどうかを質問していると思います。http://stackoverflow.com/questions/15428056/is-theomid-element-unique-per-physical-feed -or-logical-feed – DanMan

答えて

16

ATOM allows the following syntax(最初のGoogleは 'ATOM feed next/previous' の結果)ことが表示されます:私を

<link rel="self" type="application/atom+xml" href="http://www.syfyportal.com/atomFeed.php?page=3"/> 
<link rel="first" href="http://www.syfyportal.com/atomFeed.php"/> 
<link rel="next" href="http://www.syfyportal.com/atomFeed.php?page=4"/> 
<link rel="previous" href="http://www.syfyportal.com/atomFeed.php?page=2"/> 
<link rel="last" href="http://www.syfyportal.com/atomFeed.php?page=147"/> 

は私がRSSに何かを見つけることができませんが、それは "本当に簡単シンジケーション" と呼ばれていますようそのような機能がその範囲外であると想像してください。

+1

RSSはRDF Site Summaryの略です。 ;) RSS 1.0と2.0の間には多くの違いがあります(実際には異なる標準がありますが、実際は異なるバージョンではありません)。 – panzi

+0

実際には、RSS2フィードにを使用することもお勧めします。https://validator.w3.org/feed/docs/warning/MissingAtomSelfLink.html – Knowleech

15

これはRFC 5005、フィードページングとアーカイブ、section 3で定義されています。

あなたは次のと最後のリンク関係など、以前、最初に使用することができます

<link rel="next" href="http://example.org/index.atom?page=2"/> 

を追加「type」属性は必要ありません。

関連する問題