diff options
author | Ian C <ianc@noddybox.co.uk> | 2011-01-04 16:41:36 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2011-01-04 16:41:36 +0000 |
commit | dd23611f9af395e52e5a032f2a68c7c5a4f378d2 (patch) | |
tree | 6d74edc18f987581649a206215fb699e6906f7fe /config/config.xsd | |
parent | a0e1c456d0b9d43c77aa63dd1271c4c1aa702411 (diff) |
Removed schemas and going back to normal text config file
Diffstat (limited to 'config/config.xsd')
-rw-r--r-- | config/config.xsd | 57 |
1 files changed, 57 insertions, 0 deletions
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> |