Fix formatting of XSD files
authorMatthias Schmidt <gravatronics@live.com>
Sun, 22 May 2016 17:13:31 +0000 (19:13 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 22 May 2016 17:13:31 +0000 (19:13 +0200)
XSD/cronjob.xsd
XSD/objectType.xsd
XSD/styleattributes.xsd
XSD/types.xsd

index 39001467213788ea89555c3d527d97689c97202e..5d7923ffd3425fc302e3d878dabaff84f782e99b 100644 (file)
@@ -3,7 +3,7 @@
 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.woltlab.com" targetNamespace="http://www.woltlab.com" elementFormDefault="qualified">
        <!-- include types -->
        <xs:include schemaLocation="types.xsd" />
-
+       
        <!-- data element -->
        <xs:element name="data">
                <xs:complexType>
                        </xs:all>
                </xs:complexType>
        </xs:element>
-
+       
        <!-- import element type -->
        <xs:complexType name="import">
                <xs:sequence>
                        <xs:element name="cronjob" type="cronjob" minOccurs="0" maxOccurs="unbounded" />
                </xs:sequence>
        </xs:complexType>
-
+       
        <!-- delete element type -->
        <xs:complexType name="delete">
                <xs:sequence>
                        <xs:element name="cronjob" type="cronjob" minOccurs="0" maxOccurs="unbounded" />
                </xs:sequence>
        </xs:complexType>
-
+       
        <!-- cronjob element type -->
        <xs:complexType name="cronjob">
                 <xs:choice maxOccurs="unbounded" minOccurs="0">
@@ -45,7 +45,7 @@
                        <xs:element name="active" type="woltlab_boolean" minOccurs="0" default="1" />
                </xs:choice>
        </xs:complexType>
-
+       
        <xs:complexType name="description_element">
                <xs:simpleContent>
                        <xs:extension base="woltlab_varchar">
index e3876800a5759770e4c83f740fdd2c05a5234822..3d03d1ec49f6b67777d30dc403d7b0ce0a4e3dd5 100644 (file)
@@ -3,7 +3,7 @@
 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.woltlab.com" targetNamespace="http://www.woltlab.com" elementFormDefault="qualified">
        <!-- include types -->
        <xs:include schemaLocation="types.xsd" />
-
+       
        <!-- data element -->
        <xs:element name="data">
                <xs:complexType>
                        </xs:all>
                </xs:complexType>
        </xs:element>
-
+       
        <!-- import element -->
        <xs:complexType name="import">
                <xs:sequence>
                        <xs:element name="type" type="type_import" minOccurs="0" maxOccurs="unbounded" />
                </xs:sequence>
        </xs:complexType>
-
+       
        <!-- import element -->
        <xs:complexType name="delete">
                <xs:sequence>
                        <xs:element name="type" type="type_delete" minOccurs="0" maxOccurs="unbounded" />
                </xs:sequence>
        </xs:complexType>
-
+       
        <!-- import element type -->
        <xs:complexType name="type_import">
                <xs:all>
@@ -45,7 +45,7 @@
                        <xs:element name="nicevalue" type="xs:integer" minOccurs="0" />
                </xs:all>
        </xs:complexType>
-
+       
        <!-- delete element type -->
        <xs:complexType name="type_delete">
                <xs:all>
index 9bfd8ef0d3ce03396209f01b4a55b0fbf0aae327..5b3335201ff4b49e435518b00409a51de40e2140 100644 (file)
@@ -1,61 +1,60 @@
 <?xml version="1.0"?>
 <!-- The file "styleattributes.xsd" is used for xml-files which installs, updates or deletes style attributes.  -->
 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.woltlab.com" targetNamespace="http://www.woltlab.com" elementFormDefault="qualified">
-        
-        <!-- include types -->
-        <xs:include schemaLocation="types.xsd" />
-        
-        <!-- Represents the data-node. -->
-        <xs:element name="data">
-                <xs:complexType>
-                        <xs:all>
-                                <xs:element name="import" type="import" minOccurs="0" />
-                                <xs:element name="delete" type="delete" minOccurs="0" />
-                        </xs:all>
-                </xs:complexType>
-        </xs:element>
-        
-         <!-- Represents the import-node. -->
-        <xs:complexType name="import">
-                <xs:sequence>
-                        <xs:element name="attribute" type="styleattribute" maxOccurs="unbounded" />
-                </xs:sequence>
-        </xs:complexType>
-        
-         <!-- Represents the delete-node. -->
-        <xs:complexType name="delete">
-                <xs:sequence>
-                        <xs:element name="attribute" type="styleattribute" maxOccurs="unbounded" />
-                </xs:sequence>
-        </xs:complexType>
-        
-         <!-- Represents a styleattribute, which will be installed, updated or deleted. -->
-         <xs:complexType name="styleattribute">
-                <xs:all>
-                        <xs:element name="selector" minOccurs="0">
-                                <xs:simpleType>
-                                        <xs:restriction base="xs:string">
-                                                <xs:minLength value="0" />
-                                                <xs:maxLength value="200" />
-                                        </xs:restriction>
-                                </xs:simpleType>
-                        </xs:element>
-                        <xs:element name="name" minOccurs="0">
-                                <xs:simpleType>
-                                        <xs:restriction base="xs:string">
-                                                <xs:minLength value="0" />
-                                                <xs:maxLength value="50" />
-                                        </xs:restriction>
-                                </xs:simpleType>
-                        </xs:element>
-                         <xs:element name="value" minOccurs="1">
-                                <xs:simpleType>
-                                        <xs:restriction base="xs:string">
-                                                <xs:minLength value="0" />
-                                                <xs:maxLength value="50" />
-                                        </xs:restriction>
-                                </xs:simpleType>
-                        </xs:element>
-                </xs:all>
+       <!-- include types -->
+       <xs:include schemaLocation="types.xsd" />
+       
+       <!-- Represents the data-node. -->
+       <xs:element name="data">
+               <xs:complexType>
+                       <xs:all>
+                               <xs:element name="import" type="import" minOccurs="0" />
+                               <xs:element name="delete" type="delete" minOccurs="0" />
+                       </xs:all>
+               </xs:complexType>
+       </xs:element>
+       
+       <!-- Represents the import-node. -->
+       <xs:complexType name="import">
+               <xs:sequence>
+                       <xs:element name="attribute" type="styleattribute" maxOccurs="unbounded" />
+               </xs:sequence>
+       </xs:complexType>
+       
+       <!-- Represents the delete-node. -->
+       <xs:complexType name="delete">
+               <xs:sequence>
+                       <xs:element name="attribute" type="styleattribute" maxOccurs="unbounded" />
+               </xs:sequence>
+       </xs:complexType>
+       
+       <!-- Represents a styleattribute, which will be installed, updated or deleted. -->
+       <xs:complexType name="styleattribute">
+               <xs:all>
+                       <xs:element name="selector" minOccurs="0">
+                               <xs:simpleType>
+                                       <xs:restriction base="xs:string">
+                                               <xs:minLength value="0" />
+                                               <xs:maxLength value="200" />
+                                       </xs:restriction>
+                               </xs:simpleType>
+                       </xs:element>
+                       <xs:element name="name" minOccurs="0">
+                               <xs:simpleType>
+                                       <xs:restriction base="xs:string">
+                                               <xs:minLength value="0" />
+                                               <xs:maxLength value="50" />
+                                       </xs:restriction>
+                               </xs:simpleType>
+                       </xs:element>
+                       <xs:element name="value" minOccurs="1">
+                               <xs:simpleType>
+                                       <xs:restriction base="xs:string">
+                                               <xs:minLength value="0" />
+                                               <xs:maxLength value="50" />
+                                       </xs:restriction>
+                               </xs:simpleType>
+                       </xs:element>
+               </xs:all>
        </xs:complexType>
 </xs:schema>
\ No newline at end of file
index e84e50bca3f3b5f67fa04993d70f1b1bbaef2afa..497b35cb8029d406f4ca54ec30523fdfb8cf65f5 100644 (file)
@@ -7,7 +7,7 @@
                        <xs:maxLength value="255" />
                </xs:restriction>
        </xs:simpleType>
-
+       
        <!-- string type with a minimum length of 0 and a maximum length of 255 signs -->
        <xs:simpleType name="woltlab_varchar_nullable">
                <xs:restriction base="xs:string">
@@ -15,7 +15,7 @@
                        <xs:maxLength value="255" />
                </xs:restriction>
        </xs:simpleType>
-
+       
        <!-- boolean type which only accepts '0' or '1' -->
        <xs:simpleType name="woltlab_boolean">
                <xs:restriction base="xs:integer">
@@ -23,7 +23,7 @@
                        <xs:maxInclusive value="1" />
                </xs:restriction>
        </xs:simpleType>
-
+       
        <!-- user/admin environment type which only accepts 'user' or 'admin' -->
        <xs:simpleType name="woltlab_environment">
                <xs:restriction base="xs:string">