Is the atom:id element unique per physical feed, or logical feed?

谁说我不能喝 提交于 2019-12-21 06:07:51

问题


We're breaking a logical feed up over several physical feeds using the "next-archive" and "prev-archive" link relations to tie everything together.

Should each individual feed have its own id, or should the id be constant across the whole series of physical feeds?

The Atom specification says:

4.2.6. The "atom:id" Element

The "atom:id" element conveys a permanent, universally unique
identifier for an entry or feed.


回答1:


The ID for an entry should be the same across the different feeds it appears in. From the Atom discussion wiki:

Restricting the uniqueness scope of atom:id entirely to a single feed would make it much less valuable, since entries are often copied form feed to feed, and sometimes simultaneously published in multiple feeds.

The examples in RFC 5005 strongly suggest that the separate physical feeds ("archived feeds") should also share an ID to indicate that they belong to the same logical feed.



来源:https://stackoverflow.com/questions/15428056/is-the-atomid-element-unique-per-physical-feed-or-logical-feed

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!