changeset 275:10fb73206bd2

Re #296: Fix handling of equipment slot with no limit * Take the easy way out - slots are to limit things and the code never worked without a limit before, even if the file validated, so just require a limit Also: * Arbitrary line ending clean-up from using Geany
author IBBoard <dev@ibboard.co.uk>
date Sun, 04 Jul 2010 13:52:26 +0000
parents 4ef761279ea2
children d576034ad1dd
files schemas/race.xsd
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/schemas/race.xsd	Sat Jun 19 19:07:52 2010 +0000
+++ b/schemas/race.xsd	Sun Jul 04 13:52:26 2010 +0000
@@ -53,7 +53,7 @@
 								<xs:attribute name="name" type="xs:string" use="required"/>
 								<xs:anyAttribute processContents="lax"/>
 							</xs:complexType>
-						</xs:element>						
+						</xs:element>
 					</xs:sequence>
 				</xs:complexType>
 			</xs:element>
@@ -96,7 +96,7 @@
 	<xs:key name="unitKey">
 		<xs:selector xpath="race:units/race:unit"/>
 		<xs:field xpath="@id"/>
-	</xs:key>	
+	</xs:key>
 </xs:element>
 
 <!--Reusable complex types -->
@@ -109,8 +109,8 @@
 					<xs:element name="equipmentSlot" maxOccurs="unbounded">
 						<xs:complexType>
 							<xs:sequence>
-								<xs:element name="maxLimit" minOccurs="0" type="core:limit" />
-								<xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/>													
+								<xs:element name="maxLimit" type="core:limit" />
+								<xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
 							</xs:sequence>
 							<xs:attribute name="name" type="xs:string" use="required"/>
 							<xs:anyAttribute processContents="lax"/>
@@ -214,7 +214,7 @@
 			<xs:key name="extraDataKey">
 				<xs:selector xpath="race:data"/>
 				<xs:field xpath="@id"/>
-			</xs:key>	
+			</xs:key>
 		</xs:element>
 		<xs:element name="unitMembers" minOccurs="0">
 			<xs:complexType>
@@ -225,7 +225,7 @@
 								<xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
 							</xs:sequence>
 							<xs:attribute name="typeID" type="xs:string" use="required"/>
-							<xs:anyAttribute processContents="lax"/>						
+							<xs:anyAttribute processContents="lax"/>
 						</xs:complexType>
 					</xs:element>
 				</xs:sequence>
@@ -240,7 +240,7 @@
 								<xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
 							</xs:sequence>
 							<xs:attribute name="catID" type="xs:string" use="required"/>
-							<xs:anyAttribute processContents="lax"/>						
+							<xs:anyAttribute processContents="lax"/>
 						</xs:complexType>
 					</xs:element>
 				</xs:sequence>