home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Inne / Gry / Enigma / Enigma-1.01-w7.exe / data / schemas / ratings.xsd < prev    next >
Extensible Markup Language  |  2009-12-13  |  5KB  |  101 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0" xml:lang="en">
  3.   <xs:annotation>
  4.     <xs:documentation>
  5.       XML Schema definitions for Enigma public ratings "ratings.xml".
  6.       Copyright ┬⌐ 2006 Ronald Lamprecht
  7.       GPL2
  8.     </xs:documentation>
  9.   </xs:annotation>
  10.   <xs:element name="ratings">
  11.     <xs:complexType>
  12.       <xs:sequence>
  13.         <xs:element name="update" minOccurs="1" maxOccurs="1">
  14.           <xs:annotation>
  15.             <xs:documentation>
  16.               Information for online update of public ratings
  17.               date            -- version date in UTC
  18.               urlFull         -- url for a complete update
  19.               urlIncremental  -- url for an incremental update
  20.               delay           -- delay for next update in days
  21.             </xs:documentation>
  22.           </xs:annotation>
  23.           <xs:complexType>
  24.             <xs:attribute name="date" type="xs:dateTime" use="required"/>
  25.             <xs:attribute name="urlFull" type="xs:anyURI" use="required"/>
  26.             <xs:attribute name="urlIncremental" type="xs:anyURI" use="required"/>
  27.             <xs:attribute name="delay" type="xs:unsignedShort" use="optional" default="1"/>
  28.           </xs:complexType>
  29.         </xs:element> <!-- update -->
  30.         <xs:element name="levels" minOccurs="1" maxOccurs="1">
  31.           <xs:complexType>
  32.             <xs:sequence>
  33.               <xs:element name="level" minOccurs="0" maxOccurs="unbounded">
  34.                 <xs:annotation>
  35.                   <xs:documentation>
  36.                     The attributes are cryptic acronyms for reasons of space and
  37.                     bandwidth: with 1000 levels we have a 200k rating file and
  38.                     with 50000 downloads it sums up to 10G!
  39.                     id     -  level id
  40.                     sv     -  score version
  41.                     int    -  rating intelligence
  42.                     dex    -  rating dexterity
  43.                     pat    -  rating patience
  44.                     kno    -  rating knowledge
  45.                     spe    -  rating speed
  46.                     bse    -  best score easy
  47.                     bseh   -  best score easy holder
  48.                     bsd    -  best score difficult
  49.                     bsdh   -  best score difficult holder
  50.                     pare   -  par score easy
  51.                     pard   -  par score difficult
  52.                     solvne -  number of users who solved easy
  53.                     solvpe -  percentage of users who solved easy * 100, 
  54.                     solvnd -  number of users who solved difficult
  55.                     solvpd -  percentage of users who solved difficult * 100
  56.                     avgur   -  average user rating * 10
  57.                   </xs:documentation>
  58.                 </xs:annotation>
  59.                 <xs:complexType>
  60.                   <xs:attribute name="id" type="xs:string" use="required"/>
  61.                   <xs:attribute name="sv" type="xs:unsignedShort" use="required"/>
  62.                   <xs:attribute name="int" type="xs:short" use="optional"/>
  63.                   <xs:attribute name="dex" type="xs:short" use="optional"/>
  64.                   <xs:attribute name="pat" type="xs:short" use="optional"/>
  65.                   <xs:attribute name="kno" type="xs:short" use="optional"/>
  66.                   <xs:attribute name="spe" type="xs:short" use="optional"/>
  67.                   <xs:attribute name="bse" type="scoreType" use="optional"/>
  68.                   <xs:attribute name="bseh" type="xs:string" use="optional"/>
  69.                   <xs:attribute name="bsd" type="scoreType" use="optional"/>
  70.                   <xs:attribute name="bsdh" type="xs:string" use="optional"/>
  71.                   <xs:attribute name="pare" type="scoreType" use="optional"/>
  72.                   <xs:attribute name="pard" type="scoreType" use="optional"/>
  73.                   <xs:attribute name="solvne" type="xs:unsignedInt" use="optional"/>
  74.                   <xs:attribute name="solvpe" type="xs:unsignedShort" use="optional"/>
  75.                   <xs:attribute name="solvnd" type="xs:unsignedInt" use="optional"/>
  76.                   <xs:attribute name="solvpd" type="xs:unsignedShort" use="optional"/>
  77.                   <xs:attribute name="avgur" type="xs:short" use="optional"/>
  78.                   <xs:anyAttribute namespace="##local" processContents="lax"/>
  79.                 </xs:complexType>
  80.               </xs:element> <!-- level -->
  81.             </xs:sequence>
  82.           </xs:complexType>
  83.         </xs:element> <!-- levels -->
  84.         <xs:any namespace="##any" minOccurs="0" maxOccurs="unbounded" processContents="skip">
  85.           <xs:annotation>
  86.             <xs:documentation>
  87.               Ignore any future incompatible extensions.
  88.             </xs:documentation>
  89.           </xs:annotation>
  90.         </xs:any>
  91.       </xs:sequence>
  92.     </xs:complexType>
  93.   </xs:element>
  94.   
  95.   <xs:simpleType name="scoreType">
  96.     <xs:restriction base="xs:short">
  97.       <xs:minInclusive value="-1"/>
  98.     </xs:restriction>
  99.   </xs:simpleType>
  100. </xs:schema>
  101.