atomcat

atomcat

[1]

分類文書 (Category Document)
集成中で認められる分類を説明した文書

[2] 仕様書:

媒体型

[3] 分類文書媒体型 application/atomcat+xml で識別されます。 AtomPub

application/atomcat+xml 媒体型

[7] 媒体型 application/atomcat+xml は、 XML 1.0直列化された AtomPub 分類文書を表します。 AtomPub

[8] 仕様書: RFC 5023 - The Atom Publishing Protocol ( 版) <http://tools.ietf.org/html/rfc5023#section-16.1>

引数

[9] charset: application/xml と同じ (省略可能)。 AtomPub

拡張子

[10] .atomcatAtomPub

素片識別子

[11] application/xml と同じ。 AtomPub

Macintosh ファイル型符号

[12] TEXTAtomPub

要素

[6] 分類文書根要素app:categories 要素です。 AtomPub

[4]

       <?xml version="1.0" ?>
       <app:categories>
           xmlns:app="http://www.w3.org/2007/app"
           xmlns:atom="http://www.w3.org/2005/Atom"
           fixed="yes" scheme="http://example.com/cats/big3">
         <atom:category term="animal" />
         <atom:category term="vegetable" />
         <atom:category term="mineral" />
       </app:categories>

AtomPub より

[5] >>4 の「mineral」分類Atomエントリー文書Atomフィード文書で使われるとすると、 こうなります AtomPub

<atom:category scheme="http://example.com/cats/big3" term="mineral"/>