/
343.txt
142 lines (106 loc) · 6.09 KB
/
343.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
* [CODE(XMLe)@en[atom:author]] 要素 (Atom 1.0)
[10] [DFN[[CODE(XMLe)@en[atom:author]]]] [[要素]]は[[フィード]]や[[エントリー]]の[RUBYB[[[著者]]]@en[author]]を表します
[SRC[[[RFC 4287]] 4.2.1]]。
[11]
:状態:[[IETF]] [[提案標準]]
:[[要素名]]:[CODE(XMLe)@en[[[author]]]]
(「[RUBYB[[[著者]]]@en[author]]」より)
:[[内容モデル]]:[[Person construct]]
:[[属性]]:
** 仕様書
-[9] [CITE@en[RFC 4287 - The Atom Syndication Format]]
-- <http://tools.ietf.org/html/rfc4287#section-4.1.2>
-- '''<http://tools.ietf.org/html/rfc4287#section-4.2.1>'''
** 意味
[13] 仕様書 [SRC[[[RFC 4287]] 4.2.1]] によると、
- [CODE(XMLe)@en[atom:author]] は[[フィード]]または[[エントリー]]の著者を表します。
- [CODE(XMLe)@en[[[atom:entry]]]] が [CODE(XMLe)@en[[[atom:author]]]] を含まない場合、
[CODE(XMLe)@en[[[atom:source]]]] が含まれればその [CODE(XMLe)@en[[[atom:author]]]]
[[要素]]が適用されます。
- [[Atomフィード文書]]であって上記の位置に [CODE(XMLe)@en[[[atom:author]]]]
が含まれない場合、外側の [CODE(XMLe)@en[[[atom:feed]]]] の [CODE(XMLe)@en[[[atom:author]]]]
[[要素]]が適用されます。
[14] 厳密に解釈すると [CODE(XMLe)@en[[[atom:entry]]]] の[[子要素]]である
[CODE(XMLe)@en[[[atom:author]]]] [[要素]]がどこに適用されるのか [[RFC]]
は明記できていません。
** 文脈
*** Atom フィードの著者
[6] [CODE(XMLe)@en[[[atom:feed]]]] [[要素]]は、
すべての [CODE(XMLe)@en[[[atom:entry]]]] [[子要素]]が
[CODE(XMLe)@en[[[atom:author]]]] [[子要素]]を持つ場合を''除き''、
最低1つの [CODE(XMLe)@en[[[atom:author]]]] [[子要素]]を持たなければ'''なりません'''
[SRC@en[[[Atom 1.0]] 4.1.1.]]。
**** [CODE(XMLe)@en[atom:entry]] 子要素がない場合
[7] [CODE(XMLe)@en[[[atom:entry]]]] [[要素]]が0個のときはどうなんでしょう?
「すべての [CODE(XMLe)@en[[[atom:entry]]]] [[子要素]] = 0個の
[CODE(XMLe)@en[[[atom:entry]]]] [[子要素]]が [CODE(XMLe)@en[[[atom:author]]]] [[子要素]]を持っている」
は[[真]]であって [CODE(XMLe)@en[[[atom:feed]]]] [[要素]]の [CODE(XMLe)@en[[[atom:author]]]]
[[子要素]]は無くてもよいとも解釈できますし、 [CODE(XMLe)@en[[[atom:author]]]]
[[孫要素]]が実在していない以上 [CODE(XMLe)@en[[[atom:feed]]]] [[要素]]の [CODE(XMLe)@en[[[atom:author]]]]
[[子要素]]が必要であるとも解釈できなくはありません。
[15] 複数の[[著者]]の記事の集合体を表す [[Atomフィード]]があって、 [CODE(XMLe)@en[[[atom:feed]]]]
[[要素]]には [CODE(XMLe)@en[[[atom:author]]]] [[子要素]]を入れていないとします。
そのような[[フィード]]でたまたま[[エントリー]]が0個の時だけ [CODE(XMLe)@en[[[atom:author]]]]
[[子要素]]を入れる必要があるとしたら [WEAK[(例外的な場合だけのためにわざわざ)]]
実装が面倒になってしまいます。
*** Atom エントリーの著者
[8] [CODE(XMLe)@en[[[atom:entry]]]] [[要素]]は、
- [CODE(XMLe)@en[[[atom:source]]]] [[子要素]]が
[CODE(XMLe)@en[[[atom:author]]]] [[要素]]を含む場合
- [[Atomフィード文書]]中であって、
[CODE(XMLe)@en[[[atom:feed]]]] [[要素]]が
[CODE(XMLe)@en[[[atom:author]]]] [[要素]]を含む場合
のいずれかに該当する場合を''除き''、 [CODE(XMLe)@en[[[atom:author]]]]
[[要素]]を1つ以上含まなければ[['''なりません''']]
[SRC@en[[[Atom 1.0]] 4.1.2.]]。
*** KML の著者
[1] [[OGC KML 2.2]] では [CODE(XMLe)@en[atom:[[author]]]]
[[要素]]を使うことができます。
** 内容モデル
[12] [CODE(XMLe)@en[[[atom:author]]]] [[要素]]は [[Person construct]] です
[SRC[[[RFC 4287]] 4.2.1]]。
* [CODE(XMLe)@en[atom:author]] 要素 (Atom 0.3)
[2] [[Atom 0.3]] の [DFN[[CODE(XMLe)@en[atom:[[author]]]] [[要素]]]]は、
[[フィード]]や[[エントリー]]の既定の[[著者]]を表します [SRC@en[[[Atom 0.3]]]]。
:状態:[[廃止]] → [[Atom 1.0]] [CODE(XMLe)@en[atom:[[author]]]]
:[[局所名]]:[CODE(XMLe)@en[[[author]]]]
:文脈:[CODE(XMLe)@en[atom:[[feed]]]] や
[CODE(XMLe)@en[atom:[[entry]]]] の[[子要素]]として
:[[内容モデル]]:[[Person construct]]
:[[属性]]:
仕様書:
-[CITE[The Atom Syndication Format 0.3 (PRE-DRAFT)]] ([TIME[2006-12-22 17:03:44 +09:00]] 版)
--<http://www.mnot.net/drafts/draft-nottingham-atom-format-02.html#rfc.section.4.5>
--<http://www.mnot.net/drafts/draft-nottingham-atom-format-02.html#rfc.section.4.13.3>
** 文脈
[3]
[CODE(XMLe)@en[atom:[[feed]]]] [[要素]]は
[CODE(XMLe)@en[atom:[[author]]]] [[要素]]を丁度1つ含まなければ[['''なりません''']]。
ただし、すべての [CODE(XMLe)@en[atom:[[entry]]]] [[子要素]]が
[CODE(XMLe)@en[atom:[[author]]]] [[子要素]]を含む場合には、
省略できます。 [SRC@en[[[Atom 0.3]]]]
[5]
[CODE(XMLe)@en[atom:[[entry]]]] [[要素]]は
[CODE(XMLe)@en[atom:[[author]]]] [[要素]]を丁度1つ含まなければ[['''なりません''']]。
ただし、[[親]] [CODE(XMLe)@en[atom:[[feed]]]] [[子要素]]が
[CODE(XMLe)@en[atom:[[author]]]] [[子要素]]を含む場合には、
省略できます。 [SRC@en[[[Atom 0.3]]]]
** メモ
[4] 「[[エントリー]]の既定の[[著者]]」[SRC@en[[[Atom 0.3]]]] というのはよくわかりませんが、
[[コピー・アンド・ペースト]]のミスでしょうか。
[16] [CITE@ja[GoogleプロフィールとWebサイトの関連付け - Weblog - hail2u.net]]
( ([TIME[2011-11-27 11:32:36 +09:00]] 版))
<http://hail2u.net/blog/webdesign/verify-authorship-of-web-page-with-google-profile.html>
[17] [CITE@en[Citation Style Language 1.0.1]]
( ([TIME[2014-10-01 11:57:04 +09:00]] 版))
<http://citationstyles.org/downloads/specification.html#info>
[FIG(quote)[
[FIGCAPTION[
[18] ([TIME[2016-03-18 02:10:13 +09:00]] 版)
<https://lists.w3.org/Archives/Public/www-archive/feed.rss>
]FIGCAPTION]
>
> <author>
> <name>W3C Mailing List Archiver</name>
> </author>
]FIG]