像ATOM和RSS这样的提要中的分页?

28 rss2 atom-feed

这甚至可能吗?

也许?

<link rel=“next” type=“application/atom+xml” href=”[//path/page2]”></link> 
Run Code Online (Sandbox Code Playgroud)

cee*_*yoz 22

似乎ATOM 允许以下语法(第一个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"/>
Run Code Online (Sandbox Code Playgroud)

我在RSS上找不到任何东西,但因为它被称为" 非常简单的联合",我认为这样的功能超出了它的范围.


小智 15

这在RFC 5005,Feed Paging and Archiving,第3节中定义.

您可以使用first,previous,next和last作为链接关系:

<link rel="next" href="http://example.org/index.atom?page=2"/>
Run Code Online (Sandbox Code Playgroud)

不需要额外的"类型"属性.