2009-08-19 20 views
21

È possibile?Impaginazione in feed come ATOM e RSS?

Forse?

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

Non sono sicuro di cosa stai chiedendo qui. Potresti elaborare? –

+0

Credo che stia chiedendo se può recuperare solo da 21-30 feed, o qualcosa del genere –

+0

correlati: http://stackoverflow.com/questions/15428056/is-the-atomid-element-unique-per-physical-feed -or-logical-feed – DanMan

risposta

16

Sembra che ATOM allows the following syntax (prima di Google per '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"/> 

non riesco a trovare nulla su RSS, ma come si chiama "davvero semplice syndication" I Immaginiamo che tale funzionalità esca dal suo scopo.

+1

RSS è anche l'acronimo di RDF Site Summary. ;) Ci sono molte differenze tra RSS 1.0 e 2.0 (in realtà esistono standard diversi, non versioni realmente diverse). – panzi

+0

In realtà, si consiglia anche di usare lo s nei feed RSS 2: https://validator.w3.org/feed/docs/warning/MissingAtomSelfLink.html – Knowleech

15

Questo è definito in RFC 5005, Feed Paging and Archiving, section 3.

È possibile utilizzare prima, precedente, successivo e ultimo come una relazione di collegamento: non è necessario

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

Un "tipo" ulteriore attributo.