+ </start>
+
+ <define name="boolean">
+ <choice>
+ <value>yes</value>
+ <value>no</value>
+ </choice>
+ </define>
+
+ <define name="pageName">
+ <data type="string">
+ <param name="pattern">[^ a-z.|#\[\]][^ .|#\[\]]*</param>
+ </data>
+ </define>
+
+ <define name="redirection">
+ <attribute name="redirect">
+ <ref name="pageName" />
+ </attribute>
+ </define>
+
+ <define name="entity">
+ <group>
+ <attribute name="type">
+ <!-- MIME Type -->
+ <text />
+ </attribute>
+
+ <optional>
+ <attribute name="lang">
+ <data type="language" />
+ </attribute>
+ </optional>
+
+ <optional>
+ <!-- text/css でなければ無視される -->
+ <attribute name="isTheme">
+ <ref name="boolean" />
+ </attribute>
+ </optional>
+
+ <optional>
+ <!-- text/x-rakka でなければ無視される -->
+ <attribute name="isFeed">
+ <ref name="boolean" />
+ </attribute>
+ </optional>
+
+ <interleave>
+ <optional>
+ <element name="summary">
+ <text />
+ </element>
+ </optional>
+
+ <optional>
+ <element name="otherLang">
+ <zeroOrMore>
+ <element name="link">
+ <attribute name="lang">
+ <data type="language" />
+ </attribute>
+ <attribute name="page">
+ <ref name="pageName" />
+ </attribute>
+ </element>
+ </zeroOrMore>
+ </element>
+ </optional>
+ </interleave>
+
+ <choice>
+ <element name="textData">
+ <text />
+ </element>
+
+ <element name="binaryData">
+ <data type="base64Binary" />
+ </element>
+ </choice>
+ </group>
+ </define>
+</grammar>