附录 B. 在 Atom 格式中使用 Link 头的说明
Atom conveys links in the atom:link element, with the "href"
attribute indicating the target IRI and the "rel" attribute
containing the relation type. The context of the link is either a
feed IRI or an entry ID, depending on where it appears; generally,
feed-level links are obvious candidates for transmission as a Link
header.
When serialising an atom:link into a Link header, it is necessary to
convert target IRIs (if used) to URIs.
Atom 用 IRI 来定义扩展关系类型. 本规范把它们重新定义为 URI, 以简化对其的比较并减少比较中的错误.
Atom 允许把已注册的链接关系类型序列化为绝对 URI. 此类关系类型 SHOULD 被转换为相应的已注册形式 (例如把 "http://www.iana.org/assignments/relation/self" 转换为 "self"), 以免它们被误认为扩展关系类型.
此外, Atom 中的链接关系类型总是以大小写敏感的方式比较; 因此, 当在 Atom 文档中序列化时, 已注册的链接关系类型 SHOULD 被转换为它们的已注册形式 (通常是全小写).
另请注意, Link 头允许在单条链接中序列化多个关系, 而 atom:link 不允许. 在这种情况下, 单个 link-value 可以映射到多个 atom:link 元素.
与 HTML 一样, atom:link 定义了一些未在 Link 头语法中被明确镜像的属性, 但这些属性也可以作为 link-extension 使用, 以保持保真度.