diff dtds/warfoundry-core.xsd @ 43:d0812d7de39d

Re #49 - Resolve namespace issues * Fix up some XPath queries * Remove one unnecessary namespace * Check local name of elements, not name (which is qualified) * Add method to get double value from an attribute including handling INF * Remove min/max for equipment item as it is now moved to the UnitType's reference to the equipment item *
author IBBoard <dev@ibboard.co.uk>
date Sun, 22 Mar 2009 17:05:01 +0000
parents 3664eee50390
children 76d274df9f28
line wrap: on
line diff
--- a/dtds/warfoundry-core.xsd	Sun Mar 22 16:37:43 2009 +0000
+++ b/dtds/warfoundry-core.xsd	Sun Mar 22 17:05:01 2009 +0000
@@ -30,4 +30,13 @@
     <xs:maxInclusive value="100"/>
   </xs:restriction>
 </xs:simpleType>
+<xs:simpleType name="nonNegativeOrInfiniteIntegerOrRatio">
+  <xs:union memberTypes="xs:nonNegativeInteger infinity ratio"/>
+</xs:simpleType>
+<xs:simpleType name="ratio">
+  <xs:restriction base="xs:double">
+    <xs:minInclusive value="0"/>
+    <xs:maxInclusive value="1"/>
+  </xs:restriction>
+</xs:simpleType>
 </xs:schema>
\ No newline at end of file