comparison testdata/extended-data.racex @ 38:feb77f3287ca

Re #152: Test and fix extensibility of current schemas * Add unit test for parsing extended document without XSD for namespace
author IBBoard <dev@ibboard.co.uk>
date Sat, 27 Feb 2010 15:03:51 +0000
parents
children 5669f2ef6444
comparison
equal deleted inserted replaced
37:bf46c113d85c 38:feb77f3287ca
1 <?xml version="1.0" encoding="UTF-8"?>
2 <race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:ext="http://ibboard.co.uk/warfoundry/attrib" id="EmpireAlt" name="Empire (Extended)" system="test" ext:extraAttrib="en">
3 <units>
4 <unit id="Empire1" typeName="Empire General" cat="cat1" points="100" maxNum="1" maxSize="1">
5 <stats>
6 <stat name="m">4</stat>
7 <stat name="WS">6</stat>
8 <stat name="BS">6</stat>
9 <stat name="S">4</stat>
10 <stat name="T">4</stat>
11 <stat name="W">3</stat>
12 <stat name="I">6</stat>
13 <stat name="A">4</stat>
14 <stat name="Ld">9</stat>
15 </stats>
16 <unitEquipment>
17 <unitEquipmentItem id="equip1" required="true" />
18 </unitEquipment>
19 </unit>
20 <unit id="Empire2" typeName="Swordsmen" cat="cat2" points="10">
21 <stats>
22 <stat name="M">4</stat>
23 <stat name="WS">3</stat>
24 <stat name="BS">3</stat>
25 <stat name="S">4</stat>
26 <stat name="T">3</stat>
27 <stat name="W">1</stat>
28 <stat name="I">4</stat>
29 <stat name="A">1</stat>
30 <stat name="Ld">7</stat>
31 </stats>
32 <unitEquipment>
33 <unitEquipmentItem id="equip1" required="true" exclusivityGroup="group1" />
34 <unitEquipmentItem id="equip2"/>
35 <unitEquipmentItem id="equip3" required="true" exclusivityGroup="group1" />
36 </unitEquipment>
37 <contains>
38 <containedUnit containedID="Empire3" />
39 </contains>
40 </unit>
41 <unit id="Empire3" typeName="Swordsmen Champion" cat="cat2" points="35">
42 <stats>
43 <stat name="M">4</stat>
44 <stat name="WS">4</stat>
45 <stat name="BS">3</stat>
46 <stat name="S">4</stat>
47 <stat name="T">3</stat>
48 <stat name="W">1</stat>
49 <stat name="I">4</stat>
50 <stat name="A">2</stat>
51 <stat name="Ld">7</stat>
52 </stats>
53 <unitEquipment>
54 <unitEquipmentItem id="equip1" required="true" exclusivityGroup="group1" />
55 <unitEquipmentItem id="equip2"/>
56 <unitEquipmentItem id="equip3" required="true" exclusivityGroup="group1" />
57 </unitEquipment>
58 </unit>
59 <unit id="Empire4" typeName="Gunnery Specialists" cat="cat2" points="15">
60 <stats>
61 <stat name="M">4</stat>
62 <stat name="WS">3</stat>
63 <stat name="BS">4</stat>
64 <stat name="S">4</stat>
65 <stat name="T">3</stat>
66 <stat name="W">1</stat>
67 <stat name="I">4</stat>
68 <stat name="A">1</stat>
69 <stat name="Ld">7</stat>
70 </stats>
71 <unitEquipment>
72 <unitEquipmentItem id="equip4" required="true" exclusivityGroup="group1" minPercentage="50" maxPercentage="100" />
73 <unitEquipmentItem id="equip1" required="true" />
74 <unitEquipmentItem id="equip5" minNum="0" maxNum="5" />
75 </unitEquipment>
76 <contains>
77 <containedUnit containedID="Empire3" />
78 </contains>
79 </unit>
80 </units>
81 <equipment>
82 <equipmentItem id="equip1" name="sword" cost="1"/>
83 <equipmentItem id="equip2" name="shield" cost="1"/>
84 <equipmentItem id="equip3" name="broadsword" cost="2" />
85 <equipmentItem id="equip4" name="Standard Guns" cost="3" />
86 <equipmentItem id="equip5" name="Special Guns" cost="5" />
87 </equipment>
88 </race>