-
Notifications
You must be signed in to change notification settings - Fork 4
/
163.txt
61 lines (43 loc) · 1.83 KB
/
163.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
[1] [[RSS]] の [CODE(XMLe)@en[[[category]]]] [[要素]]の
[DFN[[CODE(XMLa)@en[[[domain]]]] [[属性]]]]は、
[[分類]]が属する [[taxonomy]] を識別する[[文字列]]を表します。
:[[要素]]:[CODE(XMLe)@en[[[category]]]]
:[[属性名]]:[CODE(XMLa)@en[[[domain]]]]
:[[データ型]]:[[テキスト]]
:[[既定値]]:なし
仕様書:
- [CITE@en[RSS 2.0 Specification (version 2.0.10)]]
-- <http://www.rssboard.org/rss-specification#ltcategorygtSubelementOfLtitemgt>
-- <http://www.rssboard.org/rss-specification#syndic8>
-[CITE@en[RSS Best Practices Profile]]
--<http://www.rssboard.org/rss-profile#element-channel-category>
--<http://www.rssboard.org/rss-profile#element-channel-item-category>
* 属性値
[2] [[RSS 2.0]] 仕様書中の例示では [[URL]] が値として用いられていますが、
特に [[URL]] にせよという記述はありません。実際別の例では [[URL]]
になっていません。
* 例
[6]
[PRE(XML example code)[
<category domain="http://www.fool.com/cusips">MSFT</category>
]PRE]
;; [[RSS 2.0]] 仕様書より
[4]
[PRE(XML example code)[
<category domain="Syndic8">1765</category>
]PRE]
>to link a channel to its Syndic8 identifier, include a category element as a sub-element of <channel>, with domain "Syndic8", and value the identifier for your channel in the Syndic8 database
;; [[RSS 2.0]] 仕様書より
[5]
[PRE(XML example code)[
<category domain="dmoz">News/Newspapers/Regional/United_States/Texas</category>
]PRE]
;; [[RSS Best Practices Profile]] より
[7]
[PRE(XML example code)[
<category domain="rec.arts.movies.reviews">1983/V</category>
]PRE]
;; [[RSS Best Practices Profile]] より
* 関連
[3] [[Atom]] の [CODE(XMLe)@en[[[category]]]] [[要素]]には
[CODE(XMLa)@en[[[scheme]]]] [[属性]]があります。