diff dtds/warfoundry-core.xsd @ 38:548cfc776f54

Fixes #34 - Remove "Choices" and "Base/Increment" from Category * Remove Choices and Base/Increment from code Re #47: Remove magic numbers * Replace "-1" magic number with WarFoundryCore.INFINITY * Use INFINITY instead of -1 in code * Use INF in schemas instead of -1 * Handle and parse INF as a special value in XML Factory
author IBBoard <dev@ibboard.co.uk>
date Thu, 19 Mar 2009 20:11:07 +0000
parents 92cf25b0493b
children 3664eee50390
line wrap: on
line diff
--- a/dtds/warfoundry-core.xsd	Mon Mar 16 20:53:22 2009 +0000
+++ b/dtds/warfoundry-core.xsd	Thu Mar 19 20:11:07 2009 +0000
@@ -1,19 +1,20 @@
 <?xml version="1.0"?>
 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://ibboard.co.uk/warfoundry/core"
 xmlns="http://ibboard.co.uk/warfoundry/core" elementFormDefault="qualified">
-<xs:simpleType name="infiniteOrNonNegativeDecimal">
+<xs:simpleType name="infiniteOrNonNegativeDouble">
   <xs:restriction base="xs:double">
-    <xs:minInclusive value="-1"/>
+    <xs:minInclusive value="0"/>
   </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="infiniteOrNonNegativeInteger">
   <xs:restriction base="xs:integer">
-    <xs:minInclusive value="-1"/>
+    <xs:minInclusive value="0"/>
   </xs:restriction>
 </xs:simpleType>
-<xs:simpleType name="nonNegativeDecimal">
+<xs:simpleType name="nonNegativeDouble">
   <xs:restriction base="xs:double">
     <xs:minInclusive value="0"/>
+    <xs:maxExclusive value="INF"/>
   </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="percentage">