37

Is this even possible?

Perhaps?

<link rel=“next” type=“application/atom+xml” href=”[//path/page2]”></link> 
Dan Lowe
  • 51,713
  • 20
  • 123
  • 112

2 Answers2

28

It appears that ATOM allows the following syntax (first Google result for '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"/>

I can't find anything on RSS, but as it's called "really simple syndication" I'd imagine such functionality is outside its scope.

ceejayoz
  • 176,543
  • 40
  • 303
  • 368
  • 1
    RSS also stands for RDF Site Summary. ;) There are lots of differences between RSS 1.0 and 2.0 (there actually different standards, not really different versions). – panzi Mar 19 '13 at 18:49
  • Actually, it is even recommended to use the s in RSS 2 feeds: https://validator.w3.org/feed/docs/warning/MissingAtomSelfLink.html – Knowleech Dec 26 '16 at 19:01
20

This is defined in RFC 5005, Feed Paging and Archiving, section 3.

You can use first, previous, next and last as a link relation:

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

An additional "type" attribute is not needed.

Community
  • 1
  • 1
user183924
  • 201
  • 1
  • 2
  • 1
    This is implemented in blogspot.com feed altogether with opensearch tag that shows total count. Unfortunately not all rss readers supports this yet but hope this is a matter of time – Sergey Ponomarev Jun 19 '20 at 22:37