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