| 1 |
<?xml version="1.0" encoding="UTF-8" ?> |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 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"> |
| 11 |
|
| 12 |
<annotation> |
| 13 |
<documentation xml:lang="en"> |
| 14 |
MediaWiki's export format for site definitions. |
| 15 |
</documentation> |
| 16 |
</annotation> |
| 17 |
|
| 18 |
|
| 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> |
| 25 |
|
| 26 |
<simpleType name="EmptyTagType"> |
| 27 |
<restriction base="string"> |
| 28 |
<length value="0"/> |
| 29 |
</restriction> |
| 30 |
</simpleType> |
| 31 |
|
| 32 |
<complexType name="TypedIDType"> |
| 33 |
<simpleContent> |
| 34 |
<extension base="NCName"> |
| 35 |
<attribute name="type" use="required" type="NCName" /> |
| 36 |
</extension> |
| 37 |
</simpleContent> |
| 38 |
</complexType> |
| 39 |
|
| 40 |
<complexType name="TypedURIType"> |
| 41 |
<simpleContent> |
| 42 |
<extension base="anyURI"> |
| 43 |
<attribute name="type" use="required" type="NCName" /> |
| 44 |
</extension> |
| 45 |
</simpleContent> |
| 46 |
</complexType> |
| 47 |
|
| 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> |
| 55 |
|
| 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> |
| 67 |
|
| 68 |
</schema> |