2009-08-19 17 views
21

¿Esto es posible?¿Paginación en fuentes como ATOM y RSS?

¿Quizás?

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

No estoy muy seguro de lo que está preguntando aquí. ¿Podrías elaborar? –

+0

Creo que está preguntando si puede recuperar solo entre 21-30 feeds, o algo así –

+0

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

Respuesta

16

Parece que ATOM allows the following syntax (primer resultado de Google para '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"/> 

no puedo encontrar nada en RSS, pero como se le llama "muy simple la sindicación" Yo Imagino que tal funcionalidad está fuera de su alcance.

+1

RSS también significa RDF Site Summary. ;) Existen muchas diferencias entre RSS 1.0 y 2.0 (en realidad existen diferentes estándares, no versiones realmente diferentes). – panzi

+0

En realidad, incluso se recomienda utilizar el s en RSS 2 feeds: https://validator.w3.org/feed/docs/warning/MissingAtomSelfLink.html – Knowleech

15

Esto se define en RFC 5005, Feed Paging and Archiving, section 3.

Puede utilizar primero, anterior, siguiente y última como una relación de enlace: No se necesita

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

Un "tipo" atributo adicional.

Cuestiones relacionadas