]> gitweb @ CieloNegro.org - Rakka.git/blob - schemas/rakka-page-1.0.rng
ecd61b78d4f84bf033601f324082083609279190
[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   <choice>
8     <!-- リダイレクトの場合 -->
9     <attribute name="redirect">
10       <!-- ページ名 -->
11       <data type="anyURI" />
12     </attribute>
13     
14     <!-- リダイレクトでない場合 -->
15     <group>
16       <attribute name="type">
17         <!-- MIME Type -->
18         <text />
19       </attribute>
20
21       <optional>
22         <attribute name="lang">
23           <text />
24         </attribute>
25       </optional>
26
27       <optional>
28         <attribute name="filename">
29           <text />
30         </attribute>
31       </optional>
32
33       <optional>
34         <!-- text/css でなければ無視される -->
35         <attribute name="isTheme">
36           <!-- これは HXT が對應してゐない。
37                <data type="string">
38                <param name="pattern">yes|no</param>
39                </data>
40           -->
41           <text />
42         </attribute>
43       </optional>
44
45       <optional>
46         <!-- text/x-rakka でなければ無視される -->
47         <attribute name="isFeed">
48           <!-- yes/no -->
49           <text />
50         </attribute>
51       </optional>
52
53       <optional>
54         <!-- ログインしてゐないユーザーの編集を禁止するフラグ -->
55         <attribute name="isLocked">
56           <!-- yes/no -->
57           <text />
58         </attribute>
59       </optional>
60
61       <optional>
62         <!-- 更新履歴や RSS から削除されるフラグ -->
63         <attribute name="isBoring">
64           <!-- yes/no -->
65           <text />
66         </attribute>
67       </optional>
68
69       <interleave>
70         <optional>
71           <element name="summary">
72             <text />
73           </element>
74         </optional>
75
76         <optional>
77           <element name="otherLang">
78             <zeroOrMore>
79               <element name="link">
80                 <attribute name="lang">
81                   <!-- RFC 4646 言語コード -->
82                   <text />
83                 </attribute>
84                 <attribute name="page">
85                   <!-- ページ名 -->
86                   <data type="anyURI" />
87                 </attribute>
88               </element>
89             </zeroOrMore>
90           </element>
91         </optional>
92       </interleave>
93
94       <choice>
95         <element name="textData">
96           <text />
97         </element>
98
99         <element name="binaryData">
100           <!-- これは HXT が對應してゐない。
101                <data type="base64Binary" />
102           -->
103           <text />
104         </element>
105       </choice>
106     </group>
107   </choice>
108 </element>