comparison schemas/race.xsd @ 280:937cb8d92aa8

Re #297: Move Categories over to key/keyref from ID/IDREF * Add key definition to Race schema
author IBBoard <dev@ibboard.co.uk>
date Wed, 21 Jul 2010 20:27:40 +0000
parents 10fb73206bd2
children cd657faa0c05 8981fc45fe17
comparison
equal deleted inserted replaced
279:51b3027a7dae 280:937cb8d92aa8
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/race" xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:race="http://ibboard.co.uk/warfoundry/race" elementFormDefault="qualified"> 3 targetNamespace="http://ibboard.co.uk/warfoundry/race" xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:race="http://ibboard.co.uk/warfoundry/race" elementFormDefault="qualified">
4 <xs:element name="race"> 4 <xs:element name="race">
5 <xs:complexType> 5 <xs:complexType>
6 <xs:sequence> 6 <xs:sequence>
7 <xs:element name="categories" type="cats:categoriestype" minOccurs="0" /> 7 <xs:element name="categories" type="cats:categoriestype" minOccurs="0">
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="units"> 13 <xs:element name="units">
9 <xs:complexType> 14 <xs:complexType>
10 <xs:sequence> 15 <xs:sequence>
11 <xs:element name="unit" maxOccurs="unbounded" type="unit"> 16 <xs:element name="unit" maxOccurs="unbounded" type="unit">
12 <xs:keyref name="equipSlotRef" refer="equipSlotKey"> 17 <xs:keyref name="equipSlotRef" refer="equipSlotKey">