]> gitweb @ CieloNegro.org - Rakka.git/blob - schemas/rakka-page-1.0.rng
dropped the concept of boring flag
[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       <interleave>
82         <optional>
83           <element name="summary">
84             <text />
85           </element>
86         </optional>
87
88         <optional>
89           <element name="otherLang">
90             <zeroOrMore>
91               <element name="link">
92                 <attribute name="lang">
93                   <!-- RFC 4646 言語コード -->
94                   <text />
95                 </attribute>
96                 <attribute name="page">
97                   <!-- ページ名 -->
98                   <data type="anyURI" />
99                 </attribute>
100               </element>
101             </zeroOrMore>
102           </element>
103         </optional>
104       </interleave>
105
106       <choice>
107         <element name="textData">
108           <text />
109         </element>
110
111         <element name="binaryData">
112           <!-- これは HXT が對應してゐない。
113                <data type="base64Binary" />
114           -->
115           <text />
116         </element>
117       </choice>
118     </group>
119   </choice>
120 </element>