Merge "Added release notes for 'ContentHandler::runLegacyHooks' removal"
[mediawiki.git] / docs / sitelist-1.0.xsd
blob126cd039961823267dae640d97aca9890a2261f8
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!--
3 This is an XML Schema description of the format
4 used by MediaWiki's exportSites.php and importSites.php
5 scripts.
6 -->
7 <schema xmlns="http://www.w3.org/2001/XMLSchema"
8 xmlns:mwsl="http://www.mediawiki.org/xml/sitelist-1.0/"
9 targetNamespace="http://www.mediawiki.org/xml/sitelist-1.0/"
10 elementFormDefault="qualified">
12 <annotation>
13 <documentation xml:lang="en">
14 MediaWiki's export format for site definitions.
15 </documentation>
16 </annotation>
18 <!-- Our root element -->
19 <element name="sites" type="mwsl:MediaWikiSiteListType">
20 <unique name="GlobalIDConstraint">
21 <selector xpath="mwsl:Site" />
22 <field xpath="mwsl:GlobalID" />
23 </unique>
24 </element>
26 <simpleType name="EmptyTagType">
27 <restriction base="string">
28 <length value="0"/>
29 </restriction>
30 </simpleType>
32 <complexType name="TypedIDType">
33 <simpleContent>
34 <extension base="NCName">
35 <attribute name="type" use="required" type="NCName" />
36 </extension>
37 </simpleContent>
38 </complexType>
40 <complexType name="TypedURIType">
41 <simpleContent>
42 <extension base="anyURI">
43 <attribute name="type" use="required" type="NCName" />
44 </extension>
45 </simpleContent>
46 </complexType>
48 <complexType name="MediaWikiSiteListType">
49 <sequence>
50 <element name="site" type="mwsl:SiteType"
51 minOccurs="0" maxOccurs="unbounded" />
52 </sequence>
53 <attribute name="version" type="string" use="optional" />
54 </complexType>
56 <complexType name="SiteType">
57 <choice maxOccurs="unbounded">
58 <element name="globalid" type="ID" minOccurs="1" maxOccurs="1" />
59 <element name="localid" type="mwsl:TypedIDType" minOccurs="0" />
60 <element name="group" type="NCName" minOccurs="0" maxOccurs="1" />
61 <element name="source" type="NCName" minOccurs="0" maxOccurs="1" />
62 <element name="forward" type="mwsl:EmptyTagType" minOccurs="0" maxOccurs="1" />
63 <element name="path" type="mwsl:TypedURIType" minOccurs="0" />
64 </choice>
65 <attribute name="type" use="optional" type="NCName" />
66 </complexType>
68 </schema>