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 / state.xsd < prev   
Extensible Markup Language  |  2009-12-13  |  5KB  |  110 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema' version="0.1" xml:lang="en">
  3.   <xs:annotation>
  4.     <xs:documentation>
  5.       XML schema definitions for Enigma state
  6.       Copyright ┬⌐ 2006 Ronald Lamprecht
  7.       GPL2
  8.     </xs:documentation>
  9.   </xs:annotation>
  10.   <xs:element name="state">
  11.     <xs:complexType>
  12.       <xs:sequence>
  13.         <xs:element name="properties" minOccurs="1" maxOccurs="1">
  14.           <xs:annotation>
  15.             <xs:documentation>
  16.               All simple key-value-properties:
  17.               UserName, CurrentGroup, NextLevelMode, Difficulty
  18.             </xs:documentation>
  19.           </xs:annotation>
  20.           <xs:complexType>
  21.             <xs:sequence>
  22.               <xs:element name="property" minOccurs="0" maxOccurs="unbounded">
  23.                 <xs:complexType>
  24.                   <xs:attribute name="key" type="xs:string" use="required"/>
  25.                   <xs:attribute name="value" type="xs:string" use="required"/>
  26.                 </xs:complexType>
  27.               </xs:element> <!-- property -->
  28.             </xs:sequence>
  29.           </xs:complexType>
  30.         </xs:element> <!-- properties -->
  31.         
  32.         <xs:element name="groups" minOccurs="1" maxOccurs="1">
  33.           <xs:annotation>
  34.             <xs:documentation>
  35.               Users levelpack group state:
  36.               title     - group title as displayed
  37.               curindex  - title of index that is currently selected in this group
  38.               curcolumn - display column of selected index
  39.               The sequence of the group elements is the display sequence in the
  40.               levelpack menu.
  41.             </xs:documentation>
  42.           </xs:annotation>
  43.           <xs:complexType>
  44.             <xs:sequence>
  45.               <xs:element name="group" minOccurs="0" maxOccurs="unbounded" >
  46.                 <xs:complexType>
  47.                   <xs:attribute name="title" type="xs:string" use="required"/>
  48.                   <xs:attribute name="curindex" type="xs:string" use="required"/>
  49.                   <xs:attribute name="curcolumn" type="xs:string" use="required"/>
  50.                   <xs:anyAttribute namespace="##targetNamespace" processContents="skip"/>
  51.                 </xs:complexType>
  52.               </xs:element> <!-- group -->
  53.             </xs:sequence>
  54.           </xs:complexType>
  55.         </xs:element> <!-- groups -->
  56.  
  57.         <xs:element name="indices" minOccurs="1" maxOccurs="1">
  58.           <xs:annotation>
  59.             <xs:documentation>
  60.               Users levelpack index state:
  61.               title       - index title as index id
  62.               group       - title of group to which the user assigned this levelpack
  63.               location    - sorting priority within a group
  64.               curposition - position of last selected level
  65.               curfirst    - position of first visible level in levelmenu
  66.             </xs:documentation>
  67.           </xs:annotation>
  68.           <xs:complexType>
  69.             <xs:sequence>
  70.               <xs:element name="index" minOccurs="0" maxOccurs="unbounded" >
  71.                 <xs:complexType>
  72.                   <xs:attribute name="title" type="xs:string" use="required"/>
  73.                   <xs:attribute name="group" type="xs:string" use="required"/>
  74.                   <xs:attribute name="location" type="xs:float" use="required"/>
  75.                   <xs:attribute name="curposition" type="xs:short" use="required"/>
  76.                   <xs:attribute name="curfirst" type="xs:short" use="required"/>
  77.                   <xs:anyAttribute namespace="##targetNamespace" processContents="skip"/>
  78.                 </xs:complexType>
  79.               </xs:element> <!-- index -->
  80.             </xs:sequence>
  81.           </xs:complexType>
  82.         </xs:element> <!-- indices -->
  83.         
  84.         <xs:element name="levels" minOccurs="1" maxOccurs="1">
  85.           <xs:annotation>
  86.             <xs:documentation>
  87.               Users level state:
  88.               id         - level id
  89.               annotation - users annotation to this level
  90.             </xs:documentation>
  91.           </xs:annotation>
  92.           <xs:complexType>
  93.             <xs:sequence>
  94.               <xs:element name="level" minOccurs="0" maxOccurs="unbounded" >
  95.                 <xs:complexType>
  96.                   <xs:attribute name="id" type="xs:string" use="required"/>
  97.                   <xs:attribute name="annotation" type="xs:string" use="required"/>
  98.                   <xs:anyAttribute namespace="##targetNamespace" processContents="skip"/>
  99.                 </xs:complexType>
  100.               </xs:element> <!-- level -->
  101.             </xs:sequence>
  102.           </xs:complexType>
  103.         </xs:element> <!-- levels -->
  104.         
  105.         <xs:any namespace="##targetNamespace" minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
  106.       </xs:sequence>
  107.     </xs:complexType>
  108.   </xs:element> <!-- state -->
  109. </xs:schema>
  110.