]> gitweb @ CieloNegro.org - Rakka.git/blob - schemas/rakka-page-1.0.rng
64660404f2279ec5ea0fb5b4409165fc97898396
[Rakka.git] / schemas / rakka-page-1.0.rng
1 <?xml version="1.0" encoding="utf-8"?>
2 <element name="page"
3          ns="http://cielonegro.org/schema/Rakka/Page/1.0"
4          datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
5          xmlns="http://relaxng.org/ns/structure/1.0">
6
7   <optional>
8     <element name="updateInfo">
9       <!-- 旧リビジョン -->
10       <attribute name="oldRevision">
11         <!-- HXT が對應してゐない。
12            <data type="nonNegativeInteger" />
13         -->
14         <text />
15       </attribute>
16
17       <!-- ページ移動 -->
18       <optional>
19         <element name="move">
20           <attribute name="from">
21             <text />
22           </attribute>
23         </element>
24       </optional>
25     </element>
26
27     <!-- 猶、更新時に type 屬性を空欄にすると自動判別される。但し
28          binaryData の場合のみ許される。 -->
29   </optional>
30
31   <choice>
32     <!-- リダイレクトの場合 -->
33     <attribute name="redirect">
34       <!-- ページ名 -->
35       <data type="anyURI" />
36     </attribute>
37     
38     <!-- リダイレクトでない場合 -->
39     <group>
40       <attribute name="type">
41         <!-- MIME Type -->
42         <text />
43       </attribute>
44
45       <optional>
46         <attribute name="lang">
47           <text />
48         </attribute>
49       </optional>
50
51       <optional>
52         <!-- text/css でなければ無視される -->
53         <attribute name="isTheme">
54           <choice>
55             <value>yes</value>
56             <value>no</value>
57           </choice>
58         </attribute>
59       </optional>
60
61       <optional>
62         <!-- text/x-rakka でなければ無視される -->
63         <attribute name="isFeed">
64           <choice>
65             <value>yes</value>
66             <value>no</value>
67           </choice>
68         </attribute>
69       </optional>
70
71       <optional>
72         <!-- ログインしてゐないユーザーの編集を禁止するフラグ -->
73         <attribute name="isLocked">
74           <choice>
75             <value>yes</value>
76             <value>no</value>
77           </choice>
78         </attribute>
79       </optional>
80
81       <optional>
82         <!-- 更新履歴や RSS から削除されるフラグ -->
83         <attribute name="isBoring">
84           <choice>
85             <value>yes</value>
86             <value>no</value>
87           </choice>
88         </attribute>
89       </optional>
90
91       <interleave>
92         <optional>
93           <element name="summary">
94             <text />
95           </element>
96         </optional>
97
98         <optional>
99           <element name="otherLang">
100             <zeroOrMore>
101               <element name="link">
102                 <attribute name="lang">
103                   <!-- RFC 4646 言語コード -->
104                   <text />
105                 </attribute>
106                 <attribute name="page">
107                   <!-- ページ名 -->
108                   <data type="anyURI" />
109                 </attribute>
110               </element>
111             </zeroOrMore>
112           </element>
113         </optional>
114       </interleave>
115
116       <choice>
117         <element name="textData">
118           <text />
119         </element>
120
121         <element name="binaryData">
122           <!-- これは HXT が對應してゐない。
123                <data type="base64Binary" />
124           -->
125           <text />
126         </element>
127       </choice>
128     </group>
129   </choice>
130 </element>