Formalize scenario ratings

This commit is contained in:
2014-11-28 14:31:01 -05:00
parent b64cc7b8c6
commit d3c640b782
2 changed files with 25 additions and 14 deletions

View File

@@ -47,15 +47,7 @@
<author id="5482"> <author>
<!-- global author ID for sort stuff.
For a current standard, we could use SW member number.
just to make any server-browser stuff easier
-->
<name>Sylae Jiendra Corell</name><!-- Human-readable --> <name>Sylae Jiendra Corell</name><!-- Human-readable -->
@@ -75,8 +67,6 @@
<ratings> <ratings>
<user>
<content>g</content> <content>g</content>
<!-- g,pg,r,nc17 --> <!-- g,pg,r,nc17 -->
@@ -89,8 +79,6 @@
--> -->
</user>
</ratings> </ratings>

View File

@@ -31,7 +31,6 @@
<xs:element name="name" type="xs:string"/> <xs:element name="name" type="xs:string"/>
<xs:element name="email" type="xs:string"/> <xs:element name="email" type="xs:string"/>
</xs:sequence> </xs:sequence>
<xs:attribute name="id" type="xs:string"/>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
<xs:element name="text"> <xs:element name="text">
@@ -44,6 +43,30 @@
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
<xs:element name="ratings"> <xs:element name="ratings">
<xs:complexType>
<xs:all>
<xs:element name="content">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="g"/>
<xs:enumeration value="pg"/>
<xs:enumeration value="r"/>
<xs:enumeration value="nc17"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="difficulty">
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:enumeration value="1"/>
<xs:enumeration value="2"/>
<xs:enumeration value="3"/>
<xs:enumeration value="4"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:all>
</xs:complexType>
</xs:element> </xs:element>
<xs:element name="flags"> <xs:element name="flags">
<xs:complexType> <xs:complexType>