Atom Publishing Protocol.docx

上传人:b****5 文档编号:6469991 上传时间:2023-01-06 格式:DOCX 页数:53 大小:38.76KB
下载 相关 举报
Atom Publishing Protocol.docx_第1页
第1页 / 共53页
Atom Publishing Protocol.docx_第2页
第2页 / 共53页
Atom Publishing Protocol.docx_第3页
第3页 / 共53页
Atom Publishing Protocol.docx_第4页
第4页 / 共53页
Atom Publishing Protocol.docx_第5页
第5页 / 共53页
点击查看更多>>
下载资源
资源描述

Atom Publishing Protocol.docx

《Atom Publishing Protocol.docx》由会员分享,可在线阅读,更多相关《Atom Publishing Protocol.docx(53页珍藏版)》请在冰豆网上搜索。

Atom Publishing Protocol.docx

AtomPublishingProtocol

NetworkWorkingGroupM.Nottingham,Ed.

RequestforComments:

4287R.Sayre,Ed.

Category:

StandardsTrackDecember2005

TheAtomSyndicationFormat

StatusofThisMemo

ThisdocumentspecifiesanInternetstandardstrackprotocolforthe

Internetcommunity,andrequestsdiscussionandsuggestionsfor

improvements.Pleaserefertothecurrenteditionofthe"Internet

OfficialProtocolStandards"(STD1)forthestandardizationstate

andstatusofthisprotocol.Distributionofthismemoisunlimited.

CopyrightNotice

Copyright(C)TheInternetSociety(2005).

Abstract

ThisdocumentspecifiesAtom,anXML-basedWebcontentandmetadata

syndicationformat.

TableofContents

1.Introduction....................................................3

1.1.Examples...................................................3

1.2.NamespaceandVersion......................................5

1.3.NotationalConventions.....................................5

2.AtomDocuments..................................................6

3.CommonAtomConstructs..........................................7

3.1.TextConstructs............................................7

3.1.1.The"type"Attribute................................8

3.2.PersonConstructs.........................................10

3.2.1.The"atom:

name"Element............................10

3.2.2.The"atom:

uri"Element.............................10

3.2.3.The"atom:

email"Element...........................10

3.3.DateConstructs...........................................10

4.AtomElementDefinitions.......................................11

4.1.ContainerElements........................................11

4.1.1.The"atom:

feed"Element............................11

4.1.2.The"atom:

entry"Element...........................13

4.1.3.The"atom:

content"Element.........................14

4.2.MetadataElements.........................................17

4.2.1.The"atom:

author"Element..........................17

4.2.2.The"atom:

category"Element........................18

4.2.3.The"atom:

contributor"Element.....................18

4.2.4.The"atom:

generator"Element.......................18

4.2.5.The"atom:

icon"Element............................19

4.2.6.The"atom:

id"Element..............................19

4.2.7.The"atom:

link"Element............................21

4.2.8.The"atom:

logo"Element............................23

4.2.9.The"atom:

published"Element.......................23

4.2.10.The"atom:

rights"Element.........................24

4.2.11.The"atom:

source"Element.........................24

4.2.12.The"atom:

subtitle"Element.......................25

4.2.13.The"atom:

summary"Element........................25

4.2.14.The"atom:

title"Element..........................25

4.2.15.The"atom:

updated"Element........................25

5.SecuringAtomDocuments........................................26

5.1.DigitalSignatures........................................26

5.2.Encryption................................................27

5.3.SigningandEncrypting....................................28

6.ExtendingAtom.................................................28

6.1.ExtensionsfromNon-AtomVocabularies.....................28

6.2.ExtensionstotheAtomVocabulary.........................28

6.3.ProcessingForeignMarkup.................................28

6.4.ExtensionElements........................................29

6.4.1.SimpleExtensionElements..........................29

6.4.2.StructuredExtensionElements......................29

7.IANAConsiderations............................................30

7.1.RegistryofLinkRelations................................31

8.SecurityConsiderations........................................31

8.1.HTMLandXHTMLContent....................................31

8.2.URIs......................................................31

8.3.IRIs......................................................31

8.4.Spoofing..................................................31

8.5.EncryptionandSigning....................................32

9.References.....................................................32

9.1.NormativeReferences......................................32

9.2.InformativeReferences....................................34

AppendixA.Contributors..........................................35

AppendixB.RELAXNGCompactSchema...............................35

1.Introduction

AtomisanXML-baseddocumentformatthatdescribeslistsofrelated

informationknownas"feeds".Feedsarecomposedofanumberof

items,knownas"entries",eachwithanextensiblesetofattached

metadata.Forexample,eachentryhasatitle.

TheprimaryusecasethatAtomaddressesisthesyndicationofWeb

contentsuchasweblogsandnewsheadlinestoWebsitesaswellas

directlytouseragents.

1.1.Examples

Abrief,single-entryAtomFeedDocument:

xmlversion="1.0"encoding="utf-8"?

>

//www.w3.org/2005/Atom">

ExampleFeed

//example.org/"/>

2003-12-13T18:

30:

02Z

JohnDoe

urn:

uuid:

60a76c80-d399-11d9-b93C-0003939e0af6

Atom-PoweredRobotsRunAmok

//example.org/2003/12/13/atom03"/>

urn:

uuid:

1225c695-cfb8-4ebb-aaaa-80da344efa6a

2003-12-13T18:

30:

02Z

Sometext.

Amoreextensive,single-entryAtomFeedDocument:

xmlversion="1.0"encoding="utf-8"?

>

//www.w3.org/2005/Atom">

diveintomark

A<em>lot</em>ofeffort

wentintomakingthiseffortless

2005-07-31T12:

29:

29Z

tag:

example.org,2003:

3

hreflang="en"href="http:

//example.org/"/>

href="http:

//example.org/feed.atom"/>

Copyright(c)2003,MarkPilgrim

ExampleToolkit

Atomdraft-07snapshot

href="http:

//example.org/2005/04/02/atom"/>

href="http:

//example.org/audio/ph34r_my_podcast.mp3"/>

tag:

example.org,2003:

3.2397

2005-07-31T12:

29:

29Z

2003-12-13T08:

29:

29-04:

00

MarkPilgrim

http:

//example.org/

f8dy@

SamRuby

JoeGregorio

lang="en"

xml:

base="http:

//diveintomark.org/">

//www.w3.org/1999/xhtml">

[Update:

TheAtomdraftisfinished.]

1.2.NamespaceandVersion

TheXMLNamespacesURI[W3C.REC-xml-names-19990114]fortheXMLdata

formatdescribedinthisspecificationis:

http:

//www.w3.org/2005/Atom

Forconvenience,thisdataformatmaybereferredtoas"Atom1.0".

Thisspecificationuses"Atom"internally.

1.3.NotationalConventions

Thisspecificationdescribesconformanceintermsoftwoartifacts:

AtomFeedDocumentsandAtomEntryDocuments.Additionally,it

placessomerequirementsonAtomProcessors.

Thisspecificationusesthenamespaceprefix"atom:

"forthe

NamespaceURIidentifiedinSection1.2,above.Notethatthechoice

ofnamespaceprefixisarbitraryandnotsemanticallysignificant.

AtomisspecifiedusingtermsfromtheXMLInfoset

[W3C.REC-xml-infoset-20040204].However,thisspecificationusesa

shorthandfortwocommonterms:

thephrase"InformationItem"is

omittedwhennamingElementInformationItemsandAttribute

InformationItems.Therefore,whenthisspecificationusestheterm

"element,"itisreferringtoanElementInformationIteminInfoset

terms.Likewise,whenitusestheterm"attribute,"itisreferring

toanAttributeInformationItem.

Somesectionsofthisspecificationareillustratedwithfragmentsof

anon-normativeRELAXNGCompactschema[RELAX-NG].However,the

textofthisspecificationprovidesthedefinitionofconformance.A

completeschemaappearsinAppendixB.

Thekeywords"MUST","MUSTNOT","REQUIRED","SHALL","SHALLNOT",

"SHOULD","SHOULDNOT","RECOMMENDED","MAY",and"OPTIONAL"inthis

documentaretobeinterpretedasdescribedinBCP14,[RFC2119],as

scopedtothoseconformancetargets.

2.AtomDocuments

ThisspecificationdescribestwokindsofAtomDocuments:

AtomFeed

DocumentsandAtomEntryDocuments.

AnAtomFeedDocumentisarepresentationofanAtomfeed,including

metadataaboutthefeed,andsomeoralloftheentriesassociated

withit.Itsrootistheatom:

feedelement.

AnAtomEntryDocumentrepresentsexactlyoneAtomentry,outsideof

thecontextofanAtomfeed.Itsrootistheatom:

entryelement.

namespaceatom="http:

//www.w3.org/2005/Atom"

start=atomFeed|atomEntry

BothkindsofAtomDocumentsarespecifiedintermsoftheXML

InformationSet,serializedasXML1.0[W3C.REC-xml-20040204]and

identifiedwiththe"application/atom+xml"mediatype.Atom

DocumentsMUSTbewell-formedXML.Thisspecificationdoesnot

defineaDTDforAtomDocuments,andhencedoesnotrequirethemto

bevalid(inthesenseusedbyXML).

AtomallowstheuseofIRIs[RFC3987].EveryURI[RFC3986]isalso

anIRI,soaURImaybeusedwhereverbelowanIRIisnamed.There

aretwospecialconsideration

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 表格模板 > 调查报告

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1