Allow description language in XSD/style.xsd
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 5 Sep 2023 08:48:20 +0000 (10:48 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 5 Sep 2023 08:48:57 +0000 (10:48 +0200)
XSD/style.xsd

index 2920b287718b252bc5a6f1e474afee424120fd68..7b644b40a4891ae8c5a594b98e8887f1bcd4f278 100644 (file)
                        <xs:element name="copyright" type="woltlab_varchar" minOccurs="0" maxOccurs="1" />
                        <xs:element name="license" type="woltlab_varchar" minOccurs="0" maxOccurs="1" />
                        <xs:element name="default" type="woltlab_boolean" minOccurs="0" maxOccurs="1" />
-                       <xs:element name="description" type="woltlab_varchar" minOccurs="0" maxOccurs="1" />
+                       <xs:element name="description" minOccurs="0" maxOccurs="unbounded">
+                               <xs:complexType>
+                                       <xs:simpleContent>
+                                               <xs:extension base="woltlab_varchar">
+                                                       <xs:attribute name="language" type="xs:string" />
+                                               </xs:extension>
+                                       </xs:simpleContent>
+                               </xs:complexType>
+                       </xs:element>
                        <xs:element name="coverPhoto" type="woltlab_varchar" minOccurs="0" maxOccurs="1" />
                        <xs:element name="hasDarkMode" type="woltlab_boolean" minOccurs="0" maxOccurs="1" />
                </xs:choice>