Advertisement
Motenten

baseSpellcastVars.xsd

Sep 22nd, 2012
766
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.23 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  3.    xmlns:xi="http://www.w3.org/2001/XInclude"
  4.    targetNamespace="http://www.windower.net/spellcast/"
  5.    xmlns="http://www.windower.net/spellcast/"
  6.    elementFormDefault="qualified">
  7.  
  8.   <xs:import namespace="http://www.w3.org/2001/XInclude"
  9.             schemaLocation="xinclude.xsd"/>
  10.  
  11.   <xs:include schemaLocation="baseSpellcastCommon.xsd" />
  12.  
  13.   <!-- This .xsd can handle includes with vars, groups and sets, but not rules. -->
  14.  
  15.   <!-- Variables element design -->
  16.   <xs:group name="varEntity">
  17.     <xs:choice>
  18.       <xs:choice>
  19.         <xs:element name="var" type="varType" />
  20.         <xs:element name="Var" type="varType" />
  21.       </xs:choice>
  22.       <xs:element ref="xi:include" />
  23.     </xs:choice>
  24.   </xs:group>
  25.  
  26.   <!-- Var element design -->
  27.   <xs:complexType name="varType">
  28.     <xs:simpleContent>
  29.       <xs:extension base="xs:string">
  30.         <xs:attribute name="name" type="xs:string" use="required"/>
  31.         <xs:attribute name="nooverwrite" type="xs:boolean" default="false"/>
  32.       </xs:extension>
  33.     </xs:simpleContent>
  34.   </xs:complexType>
  35.  
  36.   <!-- Sets element design -->
  37.   <xs:complexType name="setsType">
  38.     <xs:sequence>
  39.       <xs:choice minOccurs="1" maxOccurs="unbounded">
  40.         <xs:element name="group" type="groupType" />
  41.         <xs:element name="Group" type="groupType" />
  42.       </xs:choice>
  43.     </xs:sequence>
  44.   </xs:complexType>
  45.  
  46.   <!-- Group element design -->
  47.   <xs:complexType name="groupType">
  48.     <xs:sequence minOccurs="0" maxOccurs="unbounded">
  49.       <xs:choice>
  50.         <xs:element name="set" type="setType" />
  51.         <xs:element name="Set" type="setType" />
  52.       </xs:choice>
  53.     </xs:sequence>
  54.     <xs:attribute name="name" type="xs:string" use="required"/>
  55.     <xs:attribute name="default" type="xs:boolean" default="false"/>
  56.     <xs:attribute name="inherit" type="xs:string"/>
  57.   </xs:complexType>
  58.  
  59.   <!-- Set element design -->
  60.   <xs:complexType name="setType">
  61.     <xs:group ref="slotList" />
  62.     <xs:attribute name="name" type="xs:string" use="required"/>
  63.     <xs:attribute name="BaseSet" type="xs:string"/>
  64.     <xs:attribute name="BaseGroup" type="xs:string"/>
  65.   </xs:complexType>
  66. </xs:schema>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement