]> gitweb @ CieloNegro.org - Rakka.git/blobdiff - schemas/rakka-page-1.0.rng
wrote Loader.DefaultPage but not tested yet
[Rakka.git] / schemas / rakka-page-1.0.rng
index b85385b3fe7dcd6df3a8150310f599bdd303f04c..42b17336914528c3e5464a0a992fdbdce1261b18 100644 (file)
@@ -4,17 +4,93 @@
          datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
          xmlns="http://relaxng.org/ns/structure/1.0">
 
-  <attribute name="type">
-    <text />
-  </attribute>
-
   <choice>
-    <element name="textData">
-      <text />
-    </element>
+    <!-- リダイレクトの場合 -->
+    <attribute name="redirect">
+      <!-- ページ名 -->
+      <data type="anyURI" />
+    </attribute>
+    
+    <!-- リダイレクトでない場合 -->
+    <group>
+      <attribute name="type">
+        <!-- MIME Type -->
+        <text />
+      </attribute>
+
+      <optional>
+        <!-- text/css でなければ無視される -->
+        <attribute name="isTheme">
+          <!-- これは HXT が對應してゐない。
+               <data type="string">
+               <param name="pattern">yes|no</param>
+               </data>
+          -->
+          <text />
+        </attribute>
+      </optional>
+
+      <optional>
+        <!-- text/x-rakka でなければ無視される -->
+        <attribute name="isFeed">
+          <!-- yes/no -->
+          <text />
+        </attribute>
+      </optional>
+
+      <optional>
+        <!-- ログインしてゐないユーザーの編集を禁止するフラグ -->
+        <attribute name="isLocked">
+          <!-- yes/no -->
+          <text />
+        </attribute>
+      </optional>
+
+      <optional>
+        <!-- 更新履歴や RSS から削除されるフラグ -->
+        <attribute name="isBoring">
+          <!-- yes/no -->
+          <text />
+        </attribute>
+      </optional>
+
+      <interleave>
+        <optional>
+          <element name="summary">
+            <text />
+          </element>
+        </optional>
+
+        <optional>
+          <element name="otherLang">
+            <zeroOrMore>
+              <element name="link">
+                <attribute name="lang">
+                  <!-- RFC 4646 言語コード -->
+                  <text />
+                </attribute>
+                <attribute name="page">
+                  <!-- ページ名 -->
+                  <data type="anyURI" />
+                </attribute>
+              </element>
+            </zeroOrMore>
+          </element>
+        </optional>
+      </interleave>
+
+      <choice>
+        <element name="textData">
+          <text />
+        </element>
 
-    <element name="binaryData">
-      <text />
-    </element>
+        <element name="binaryData">
+          <!-- これは HXT が對應してゐない。
+               <data type="base64Binary" />
+          -->
+          <text />
+        </element>
+      </choice>
+    </group>
   </choice>
 </element>