Merge "Whitelist the <wbr> element."
[mediawiki.git] / docs / export-0.1.xsd
blob9ff48f031614cee431fa98549c0490367d5be296
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!--
3 This is an XML Schema description of the format
4 output by MediaWiki's Special:Export system.
6 The canonical URL to the schema document is:
7 http://www.mediawiki.org/xml/export-0.1.xsd
9 Use the namespace:
10 http://www.mediawiki.org/xml/export-0.1/
11 -->
12 <schema xmlns="http://www.w3.org/2001/XMLSchema"
13 xmlns:mw="http://www.mediawiki.org/xml/export-0.1/"
14 targetNamespace="http://www.mediawiki.org/xml/export-0.1/"
15 elementFormDefault="qualified">
17 <annotation>
18 <documentation xml:lang="en">
19 MediaWiki's page export format
20 </documentation>
21 </annotation>
23 <!-- Need this to reference xml:lang -->
24 <import namespace="http://www.w3.org/XML/1998/namespace"
25 schemaLocation="http://www.w3.org/2001/xml.xsd"/>
27 <!-- Our root element -->
28 <element name="mediawiki" type="mw:MediaWikiType"/>
30 <complexType name="MediaWikiType">
31 <sequence>
32 <element name="page" type="mw:PageType"
33 minOccurs="0" maxOccurs="unbounded"/>
34 </sequence>
35 <attribute name="version" type="string" use="required"/>
36 <attribute ref="xml:lang" use="required"/>
37 </complexType>
39 <complexType name="PageType">
40 <sequence>
41 <!-- Title in text form. (Using spaces, not underscores; with namespace ) -->
42 <element name="title" type="string"/>
44 <!-- optional page ID number -->
45 <element name="id" type="positiveInteger" minOccurs="0"/>
47 <!-- comma-separated list of string tokens, if present -->
48 <element name="restrictions" type="string" minOccurs="0"/>
50 <!-- Zero or more sets of revision data -->
51 <element name="revision" type="mw:RevisionType"
52 minOccurs="0" maxOccurs="unbounded"/>
53 </sequence>
54 </complexType>
56 <complexType name="RevisionType">
57 <sequence>
58 <element name="id" type="positiveInteger" minOccurs="0"/>
59 <element name="timestamp" type="dateTime"/>
60 <element name="contributor" type="mw:ContributorType"/>
61 <element name="minor" minOccurs="0" />
62 <element name="comment" type="string" minOccurs="0"/>
63 <element name="text" type="string"/>
64 </sequence>
65 </complexType>
67 <complexType name="ContributorType">
68 <sequence>
69 <element name="username" type="string" minOccurs="0"/>
70 <element name="id" type="positiveInteger" minOccurs="0" />
72 <element name="ip" type="string" minOccurs="0"/>
73 </sequence>
74 </complexType>
76 </schema>