changeset 24:72312a7ac08a

Re #32 - Migrate WarFoundry files to using Schemas * Add namespace for Core to Cats schema * Remove duplicate "equipmentitem" definitions from Race schema * Correct namespace on nonNegativeInteger and positiveInteger
author IBBoard <dev@ibboard.co.uk>
date Sat, 14 Mar 2009 15:57:29 +0000
parents f9846f896df3
children 8dd050900cf6
files dtds/race.xsd dtds/warfoundry-cats.xsd
diffstat 2 files changed, 3 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/dtds/race.xsd	Thu Mar 12 21:35:17 2009 +0000
+++ b/dtds/race.xsd	Sat Mar 14 15:57:29 2009 +0000
@@ -35,9 +35,9 @@
   <xs:attribute name="cat" type="xs:string" use="required"/>
   <xs:attribute name="unitPoints" type="core:nonNegativeDecimal" default="0"/>
   <xs:attribute name="points" type="core:nonNegativeDecimal" use="required"/>
-  <xs:attribute name="minNumber" type="core:nonNegativeInteger" default="0"/>
+  <xs:attribute name="minNumber" type="xs:nonNegativeInteger" default="0"/>
   <xs:attribute name="maxNumber" type="core:infiniteOrNonNegativeInteger" default="-1"/>
-  <xs:attribute name="minSize" type="core:positiveInteger" default="5"/>
+  <xs:attribute name="minSize" type="xs:positiveInteger" default="5"/>
   <xs:attribute name="maxSize" type="core:infiniteOrNonNegativeInteger" default="-1"/>
   <xs:attribute name="baseSize" type="xs:nonNegativeInteger" default="0"/>
 </xs:complexType>
@@ -127,19 +127,6 @@
   <xs:attribute name="id" type="xs:ID" use="required"/>
   <xs:attribute name="name" type="xs:string" use="required"/>
   <xs:attribute name="points" type="core:nonNegativeDecimal" use="required"/>
-</xs:complexType>
-<xs:complexType name="equipmenttype">
-  <xs:sequence>
-    <xs:element name="equipmentItem" type="equipmentitemtype"/>
-  </xs:sequence>
-</xs:complexType>
-<xs:complexType name="equipmentitemtype">
-  <xs:all>
-    <xs:element name="description" type="xs:string" />
-  </xs:all>
-  <xs:attribute name="id" type="xs:ID" use="required"/>
-  <xs:attribute name="name" type="xs:string" use="required"/>
-  <xs:attribute name="points" type="core:nonNegativeDecimal" use="required"/>
   <xs:attribute name="armoutType" type="armourtype" default="none"/>
 </xs:complexType>
 <xs:simpleType name="armourtype">
--- a/dtds/warfoundry-cats.xsd	Thu Mar 12 21:35:17 2009 +0000
+++ b/dtds/warfoundry-cats.xsd	Sat Mar 14 15:57:29 2009 +0000
@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://ibboard.co.uk/warfoundry/cats"
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:core="http://ibboard.co.uk/warfoundry/core" targetNamespace="http://ibboard.co.uk/warfoundry/cats"
 xmlns="http://ibboard.co.uk/warfoundry/cats" elementFormDefault="qualified">
 <xs:complexType name="categoriestype">
   <xs:sequence>