changeset 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 51b3027a7dae
children c035afa4a42c
files schemas/race.xsd
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/schemas/race.xsd	Wed Jul 14 20:01:14 2010 +0000
+++ b/schemas/race.xsd	Wed Jul 21 20:27:40 2010 +0000
@@ -4,7 +4,12 @@
 <xs:element name="race">
 	<xs:complexType>
 		<xs:sequence>
-			<xs:element name="categories" type="cats:categoriestype" minOccurs="0" />
+			<xs:element name="categories" type="cats:categoriestype" minOccurs="0">
+				<xs:key name="catsKey">
+					<xs:selector xpath="cats:cat"/>
+					<xs:field xpath="@id"/>
+				</xs:key>
+			</xs:element>
 			<xs:element name="units">
 				<xs:complexType>
 					<xs:sequence>