]> gitweb @ CieloNegro.org - Rakka.git/blob - schemas/rakka-page-1.0.rng
Wrote more...
[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           <!-- これは HXT が對應してゐない。
55                <data type="string">
56                <param name="pattern">yes|no</param>
57                </data>
58           -->
59           <text />
60         </attribute>
61       </optional>
62
63       <optional>
64         <!-- text/x-rakka でなければ無視される -->
65         <attribute name="isFeed">
66           <!-- yes/no -->
67           <text />
68         </attribute>
69       </optional>
70
71       <optional>
72         <!-- ログインしてゐないユーザーの編集を禁止するフラグ -->
73         <attribute name="isLocked">
74           <!-- yes/no -->
75           <text />
76         </attribute>
77       </optional>
78
79       <optional>
80         <!-- 更新履歴や RSS から削除されるフラグ -->
81         <attribute name="isBoring">
82           <!-- yes/no -->
83           <text />
84         </attribute>
85       </optional>
86
87       <interleave>
88         <optional>
89           <element name="summary">
90             <text />
91           </element>
92         </optional>
93
94         <optional>
95           <element name="otherLang">
96             <zeroOrMore>
97               <element name="link">
98                 <attribute name="lang">
99                   <!-- RFC 4646 言語コード -->
100                   <text />
101                 </attribute>
102                 <attribute name="page">
103                   <!-- ページ名 -->
104                   <data type="anyURI" />
105                 </attribute>
106               </element>
107             </zeroOrMore>
108           </element>
109         </optional>
110       </interleave>
111
112       <choice>
113         <element name="textData">
114           <text />
115         </element>
116
117         <element name="binaryData">
118           <!-- これは HXT が對應してゐない。
119                <data type="base64Binary" />
120           -->
121           <text />
122         </element>
123       </choice>
124     </group>
125   </choice>
126 </element>