Update `language.xsd` to support `import`/`delete` elements
authorMatthias Schmidt <gravatronics@live.com>
Fri, 4 Jun 2021 13:45:40 +0000 (15:45 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 4 Jun 2021 14:04:49 +0000 (16:04 +0200)
XSD/language.xsd

index 0a698d16f33fb082738c88456b438900d975b1f5..9c5e933f88ce3d2893da881a811b0356640e0b10 100644 (file)
@@ -7,15 +7,33 @@
        <!-- data element -->
        <xs:element name="language">
                <xs:complexType>
-                        <xs:sequence>
+                       <!-- deprecated since 5.5 -->
+                       <xs:sequence>
                                <xs:element name="category" type="category" maxOccurs="unbounded" />
                        </xs:sequence>
+                       <!-- /deprecated since 5.5 -->
+                       <xs:element name="import" type="import" minOccurs="0" />
+                       <xs:element name="delete" type="delete" minOccurs="0" />
                        <xs:attribute name="languagecode" type="woltlab_varchar" use="required" />
                        <xs:attribute name="languagename" type="woltlab_varchar" use="optional" />
                        <xs:attribute name="countrycode" type="woltlab_varchar" use="optional" />
                </xs:complexType>
        </xs:element>
        
+       <!-- import element -->
+       <xs:complexType name="import">
+               <xs:sequence>
+                       <xs:element name="category" type="category" maxOccurs="unbounded" />
+               </xs:sequence>
+       </xs:complexType>
+       
+       <!-- delete element -->
+       <xs:complexType name="delete">
+               <xs:sequence>
+                       <xs:element name="item" type="item" maxOccurs="unbounded" />
+               </xs:sequence>
+       </xs:complexType>
+       
        <!-- language category element type -->
        <xs:complexType name="category">
                <xs:sequence>