1 <?xml version="1.0" encoding="UTF-8" ?>
3 This is an XML Schema description of the format
4 used by MediaWiki's exportSites.php and importSites.php
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">
13 <documentation xml:lang="en">
14 MediaWiki's export format for site definitions.
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" />
26 <simpleType name="EmptyTagType">
27 <restriction base="string">
32 <complexType name="TypedIDType">
34 <extension base="NCName">
35 <attribute name="type" use="required" type="NCName" />
40 <complexType name="TypedURIType">
42 <extension base="anyURI">
43 <attribute name="type" use="required" type="NCName" />
48 <complexType name="MediaWikiSiteListType">
50 <element name="site" type="mwsl:SiteType"
51 minOccurs="0" maxOccurs="unbounded" />
53 <attribute name="version" type="string" use="optional" />
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" />
65 <attribute name="type" use="optional" type="NCName" />