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