summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2011-01-04 16:41:36 +0000
committerIan C <ianc@noddybox.co.uk>2011-01-04 16:41:36 +0000
commitdd23611f9af395e52e5a032f2a68c7c5a4f378d2 (patch)
tree6d74edc18f987581649a206215fb699e6906f7fe /config
parenta0e1c456d0b9d43c77aa63dd1271c4c1aa702411 (diff)
Removed schemas and going back to normal text config file
Diffstat (limited to 'config')
-rw-r--r--config/config2
-rw-r--r--config/config.xsd57
2 files changed, 59 insertions, 0 deletions
diff --git a/config/config b/config/config
new file mode 100644
index 0000000..1f6b18a
--- /dev/null
+++ b/config/config
@@ -0,0 +1,2 @@
+# Example configuration file
+#
diff --git a/config/config.xsd b/config/config.xsd
new file mode 100644
index 0000000..d0bcbaf
--- /dev/null
+++ b/config/config.xsd
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xs:schema id="XMLSchema1" targetNamespace="http://noddybox.co.uk/schema/sdlgrav/v1/config.xsd" elementFormDefault="qualified" xmlns="http://noddybox.co.uk/schema/sdlgrav/v1/config.xsd" xmlns:mstns="http://noddybox.co.uk/schema/sdlgrav/v1/config.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema">
+ <xs:simpleType name="GravValueType">
+ <xs:restriction base="xs:string">
+ <xs:minLength value="1" />
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:complexType name="GravPositionType">
+ <xs:sequence>
+ </xs:sequence>
+ <xs:attribute name="x" type="GravValueType" />
+ <xs:attribute name="y" type="GravValueType" />
+ <xs:attribute name="z" type="GravValueType" />
+ </xs:complexType>
+ <xs:complexType name="GravVectorType">
+ <xs:sequence />
+ <xs:attribute name="dx" type="GravValueType" />
+ <xs:attribute name="dy" type="GravValueType" />
+ <xs:attribute name="dz" type="GravValueType" />
+ </xs:complexType>
+ <xs:complexType name="GravColourType">
+ <xs:sequence>
+ </xs:sequence>
+ <xs:attribute name="r" type="GravColourIntensityType" />
+ <xs:attribute name="g" type="GravColourIntensityType" />
+ <xs:attribute name="b" type="GravColourIntensityType" />
+ </xs:complexType>
+ <xs:simpleType name="GravColourIntensityType">
+ <xs:restriction base="xs:nonNegativeInteger">
+ <xs:minInclusive value="0" />
+ <xs:maxInclusive value="255" />
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:complexType name="GravConstantsType">
+ <xs:sequence />
+ <xs:attribute name="G" type="GravValueType" />
+ </xs:complexType>
+ <xs:element name="GravConfig">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:sequence>
+ <xs:element name="Universe" type="GravConstantsType" />
+ <xs:element name="Mass" type="GravMassType" minOccurs="1" maxOccurs="1" />
+ </xs:sequence>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:complexType name="GravMassType">
+ <xs:sequence>
+ <xs:element name="Position" type="GravPositionType" />
+ <xs:element name="Vector" type="GravVectorType" />
+ <xs:element name="Colour" type="GravColourType" />
+ </xs:sequence>
+ <xs:attribute name="mass" type="GravValueType" />
+ <xs:attribute name="density" type="xs:positiveInteger" />
+ </xs:complexType>
+</xs:schema>