changeset 41:9980a76e6a5e

Re #152: Test and fix extensibility of current schemas * Simplify test data and test all possible tags
author IBBoard <dev@ibboard.co.uk>
date Sat, 13 Mar 2010 16:47:03 +0000
parents 7002a9cb0ed6
children d4f6e9ac981e
files testdata/extended-data.racex
diffstat 1 files changed, 34 insertions(+), 69 deletions(-) [+]
line wrap: on
line diff
--- a/testdata/extended-data.racex	Thu Mar 11 21:00:24 2010 +0000
+++ b/testdata/extended-data.racex	Sat Mar 13 16:47:03 2010 +0000
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:cats="http://ibboard.co.uk/warfoundry/cats" xmlns:ext="http://ibboard.co.uk/warfoundry/missing" id="EmpireAlt" name="Empire (Extended)" system="test" extraAttrib="value" ext:extraAttrib="en">
+<race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:core="http://ibboard.co.uk/warfoundry/core" xmlns:cats="http://ibboard.co.uk/warfoundry/cats" xmlns:ext="http://ibboard.co.uk/warfoundry/missing" id="EmpireAlt" name="Empire (Extended)" system="test" extraAttrib="value" ext:extraAttrib="en">
 	<categories extraAttrib="value" ext:extraAttrib="en">
 		<cats:cat id="cat1" name="Cat1"  extraAttrib="value" ext:extraAttrib="en">
 			<child></child>
@@ -9,88 +9,53 @@
 		<unit id="Empire1" typeName="Empire General" cat="cat1" points="100" maxNum="1" maxSize="1" extraAttrib="value" ext:extraAttrib="en">
 			<stats extraAttrib="value" ext:extraAttrib="en">
 				<stat name="m" extraAttrib="value" ext:extraAttrib="en">4</stat>
-				<stat name="WS">6</stat>
-				<stat name="BS">6</stat>
-				<stat name="S">4</stat>
-				<stat name="T">4</stat>
-				<stat name="W">3</stat>
-				<stat name="I">6</stat>
-				<stat name="A">4</stat>
-				<stat name="Ld">9</stat>
 			</stats>
+			<equipmentSlots>
+				<equipmentSlot name="bob" extraAttrib="value" ext:extraAttrib="en">
+					<maxLimit>
+						<core:unitSizeLimit extraAttrib="value" ext:extraAttrib="en">
+							<child></child>
+						</core:unitSizeLimit>
+					</maxLimit>
+					<child></child>
+				</equipmentSlot>
+			</equipmentSlots>
 			<unitEquipment extraAttrib="value" ext:extraAttrib="en">
-				<unitEquipmentItem id="equip1" required="true" extraAttrib="value" ext:extraAttrib="en" />
+				<unitEquipmentItem id="equip1" required="true" extraAttrib="value" ext:extraAttrib="en"><child></child></unitEquipmentItem>
 			</unitEquipment>
+			<unitAbilities>
+				<unitAbility abilityID="a" extraAttrib="value" ext:extraAttrib="en">
+					<child></child>
+				</unitAbility>
+			</unitAbilities>
+			<requirements>
+				<requirement requirementName="" extraAttrib="value" ext:extraAttrib="en">req data</requirement>
+			</requirements>
 			<extraData extraAttrib="value" ext:extraAttrib="en">
-				<data id="data" extraAttrib="value" ext:extraAttrib="en"></data>
+				<data id="data" extraAttrib="value" ext:extraAttrib="en">data value</data>
 			</extraData>
-		</unit>
-		<unit id="Empire2" typeName="Swordsmen" cat="cat2" points="10">
-			<stats>
-				<stat name="M">4</stat>
-				<stat name="WS">3</stat>
-				<stat name="BS">3</stat>
-				<stat name="S">4</stat>
-				<stat name="T">3</stat>
-				<stat name="W">1</stat>
-				<stat name="I">4</stat>
-				<stat name="A">1</stat>
-				<stat name="Ld">7</stat>
-			</stats>
-			<unitEquipment>
-				<unitEquipmentItem id="equip1" required="true" exclusivityGroup="group1" />
-				<unitEquipmentItem id="equip2"/>
-				<unitEquipmentItem id="equip3" required="true" exclusivityGroup="group1" />
-			</unitEquipment>
 			<contains>
-				<containedUnit containedID="Empire3" extraAttrib="value" ext:extraAttrib="en" />
+				<containedUnit containedID="Empire3" extraAttrib="value" ext:extraAttrib="en">
+					<child></child>
+				</containedUnit>
 			</contains>
 		</unit>
 		<unit id="Empire3" typeName="Swordsmen Champion" cat="cat2" points="35">
 			<stats>
 				<stat name="M">4</stat>
-				<stat name="WS">4</stat>
-				<stat name="BS">3</stat>
-				<stat name="S">4</stat>
-				<stat name="T">3</stat>
-				<stat name="W">1</stat>
-				<stat name="I">4</stat>
-				<stat name="A">2</stat>
-				<stat name="Ld">7</stat>
 			</stats>
-			<unitEquipment>
-				<unitEquipmentItem id="equip1" required="true" exclusivityGroup="group1" />
-				<unitEquipmentItem id="equip2"/>
-				<unitEquipmentItem id="equip3" required="true" exclusivityGroup="group1" />
-			</unitEquipment>
-		</unit>
-		<unit id="Empire4" typeName="Gunnery Specialists" cat="cat2" points="15">
-			<stats>
-				<stat name="M">4</stat>
-				<stat name="WS">3</stat>
-				<stat name="BS">4</stat>
-				<stat name="S">4</stat>
-				<stat name="T">3</stat>
-				<stat name="W">1</stat>
-				<stat name="I">4</stat>
-				<stat name="A">1</stat>
-				<stat name="Ld">7</stat>
-			</stats>
-			<unitEquipment>
-				<unitEquipmentItem id="equip4" required="true" exclusivityGroup="group1" minPercentage="50" maxPercentage="100" />
-				<unitEquipmentItem id="equip1" required="true" />
-				<unitEquipmentItem id="equip5" minNum="0" maxNum="5" />
-			</unitEquipment>
-			<contains extraAttrib="value" ext:extraAttrib="en">
-				<containedUnit containedID="Empire3" extraAttrib="value" ext:extraAttrib="en" />
-			</contains>
 		</unit>
 	</units>
 	<equipment extraAttrib="value" ext:extraAttrib="en">
-		<equipmentItem id="equip1" name="sword" cost="1" extraAttrib="value" ext:extraAttrib="en"/>
-		<equipmentItem id="equip2" name="shield" cost="1"/>
-		<equipmentItem id="equip3" name="broadsword" cost="2" />
-		<equipmentItem id="equip4" name="Standard Guns" cost="3" />
-		<equipmentItem id="equip5" name="Special Guns" cost="5" />
+		<equipmentItem id="equip1" name="sword" cost="1" extraAttrib="value" ext:extraAttrib="en">
+			<child></child>
+		</equipmentItem>
 	</equipment>
+	<abilities extraAttrib="value" ext:extraAttrib="en">
+		<ability id="a" name="Ability 1" extraAttrib="value" ext:extraAttrib="en">
+			<description></description>
+			<child></child>
+		</ability>
+	</abilities>
+	<child></child>
 </race>
\ No newline at end of file