mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
fdc2dcf264
Differences can be checked with git diff --ignore-all-space and that will show that the only non-whitespace change is in a test in the git lib/tests/html2text_test.php file. In that case the whitespace has been replaced by a quoted string (of whitespaces) keeping the test 100% equivalent and workarrounding the whitespace.
43 lines
1.8 KiB
XML
43 lines
1.8 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
|
<xs:element name="moodle_database" type="databaseType" />
|
|
<xs:complexType name="databaseType">
|
|
<xs:sequence>
|
|
<xs:element maxOccurs="unbounded" name="table"
|
|
type="tableType" />
|
|
</xs:sequence>
|
|
<xs:attribute name="version" type="xs:float" use="required" />
|
|
<xs:attribute name="release" type="xs:string"></xs:attribute>
|
|
<xs:attribute name="timestamp" type="xs:dateTime"
|
|
use="required" />
|
|
<xs:attribute name="comment" type="xs:string" />
|
|
</xs:complexType>
|
|
<xs:complexType name="tableType">
|
|
<xs:sequence>
|
|
<xs:element maxOccurs="unbounded" name="record" type="recordType" />
|
|
</xs:sequence>
|
|
<xs:attribute name="name" type="xs:NCName" use="required" />
|
|
<xs:attribute name="schemaHash" type="xs:string" use="required" />
|
|
</xs:complexType>
|
|
<xs:complexType name="recordType">
|
|
<xs:sequence>
|
|
<xs:element maxOccurs="unbounded" name="field" type="fieldType" />
|
|
</xs:sequence>
|
|
</xs:complexType>
|
|
<xs:complexType name="fieldType">
|
|
<xs:simpleContent>
|
|
<xs:extension base="xs:string">
|
|
<xs:attribute name="name" type="xs:string" use="required" />
|
|
<xs:attribute default="content" name="value" use="optional">
|
|
<xs:simpleType>
|
|
<xs:restriction base="xs:string">
|
|
<xs:enumeration value="content" />
|
|
<xs:enumeration value="null" />
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
</xs:attribute>
|
|
</xs:extension>
|
|
</xs:simpleContent>
|
|
</xs:complexType>
|
|
</xs:schema>
|