comparison schemas/system.xsd @ 278:c1d55ea8a2a1

Re #297: Move Categories over to key/keyref from ID/IDREF * Make category use a string for an ID * Add key to system - key needs to be outside <complexType> so we can't put it in warfoundry-cats.xsd at the moment TODO: Add matching code to Race, or find a way to "alias" and create a categories element that uses the type and the key within warfoundry-cats.xsd
author IBBoard <dev@ibboard.co.uk>
date Wed, 07 Jul 2010 19:01:13 +0000
parents d576034ad1dd
children 08a9c960e17f 4e0031339bcb db6713d5b35f
comparison
equal deleted inserted replaced
277:c7a95912c1e8 278:c1d55ea8a2a1
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:core="http://ibboard.co.uk/warfoundry/core" xmlns:cats="http://ibboard.co.uk/warfoundry/cats" 2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:core="http://ibboard.co.uk/warfoundry/core" xmlns:cats="http://ibboard.co.uk/warfoundry/cats"
3 targetNamespace="http://ibboard.co.uk/warfoundry/system" xmlns="http://ibboard.co.uk/warfoundry/system" xmlns:sys="http://ibboard.co.uk/warfoundry/system" elementFormDefault="qualified"> 3 targetNamespace="http://ibboard.co.uk/warfoundry/system" xmlns="http://ibboard.co.uk/warfoundry/system" xmlns:sys="http://ibboard.co.uk/warfoundry/system" elementFormDefault="qualified">
4 <xs:element name="system"> 4 <xs:element name="system">
5 <xs:complexType> 5 <xs:complexType>
6 <xs:sequence> 6 <xs:sequence>
7 <xs:element name="categories" type="cats:categoriestype"/> 7 <xs:element name="categories" type="cats:categoriestype">
8 <xs:key name="catsKey">
9 <xs:selector xpath="cats:cat"/>
10 <xs:field xpath="@id"/>
11 </xs:key>
12 </xs:element>
8 <xs:element name="sysStatsList"> 13 <xs:element name="sysStatsList">
9 <xs:complexType> 14 <xs:complexType>
10 <xs:sequence> 15 <xs:sequence>
11 <xs:element name="sysStats" maxOccurs="unbounded"> 16 <xs:element name="sysStats" maxOccurs="unbounded">
12 <xs:complexType> 17 <xs:complexType>