| 1 |
<?xml version="1.0" encoding="UTF-8" ?> |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
<schema xmlns="http://www.w3.org/2001/XMLSchema" |
| 44 |
xmlns:mw="http://www.mediawiki.org/xml/export-0.11/" |
| 45 |
targetNamespace="http://www.mediawiki.org/xml/export-0.11/" |
| 46 |
elementFormDefault="qualified"> |
| 47 |
|
| 48 |
<annotation> |
| 49 |
<documentation xml:lang="en"> |
| 50 |
MediaWiki's page export format |
| 51 |
</documentation> |
| 52 |
</annotation> |
| 53 |
|
| 54 |
|
| 55 |
<import namespace="http://www.w3.org/XML/1998/namespace" |
| 56 |
schemaLocation="http://www.w3.org/2001/xml.xsd" /> |
| 57 |
|
| 58 |
|
| 59 |
<element name="mediawiki" type="mw:MediaWikiType"> |
| 60 |
|
| 61 |
<unique name="PageIDConstraint"> |
| 62 |
<selector xpath="mw:page" /> |
| 63 |
<field xpath="mw:id" /> |
| 64 |
</unique> |
| 65 |
|
| 66 |
<unique name="RevIDConstraint"> |
| 67 |
<selector xpath="mw:page/mw:revision" /> |
| 68 |
<field xpath="mw:id" /> |
| 69 |
</unique> |
| 70 |
</element> |
| 71 |
|
| 72 |
<complexType name="MediaWikiType"> |
| 73 |
<sequence> |
| 74 |
<element name="siteinfo" type="mw:SiteInfoType" |
| 75 |
minOccurs="0" maxOccurs="1" /> |
| 76 |
<element name="page" type="mw:PageType" |
| 77 |
minOccurs="0" maxOccurs="unbounded" /> |
| 78 |
<element name="logitem" type="mw:LogItemType" |
| 79 |
minOccurs="0" maxOccurs="unbounded" /> |
| 80 |
</sequence> |
| 81 |
<attribute name="version" type="string" use="required" /> |
| 82 |
<attribute ref="xml:lang" use="required" /> |
| 83 |
</complexType> |
| 84 |
|
| 85 |
<complexType name="SiteInfoType"> |
| 86 |
<sequence> |
| 87 |
<element name="sitename" type="string" minOccurs="0" /> |
| 88 |
<element name="dbname" type="string" minOccurs="0" /> |
| 89 |
<element name="base" type="anyURI" minOccurs="0" /> |
| 90 |
<element name="generator" type="string" minOccurs="0" /> |
| 91 |
<element name="case" type="mw:CaseType" minOccurs="0" /> |
| 92 |
<element name="namespaces" type="mw:NamespacesType" minOccurs="0" /> |
| 93 |
</sequence> |
| 94 |
</complexType> |
| 95 |
|
| 96 |
<simpleType name="CaseType"> |
| 97 |
<restriction base="NMTOKEN"> |
| 98 |
|
| 99 |
|
| 100 |
<enumeration value="first-letter" /> |
| 101 |
|
| 102 |
|
| 103 |
|
| 104 |
<enumeration value="case-sensitive" /> |
| 105 |
|
| 106 |
|
| 107 |
|
| 108 |
<enumeration value="case-insensitive" /> |
| 109 |
</restriction> |
| 110 |
</simpleType> |
| 111 |
|
| 112 |
<simpleType name="DeletedFlagType"> |
| 113 |
<restriction base="NMTOKEN"> |
| 114 |
<enumeration value="deleted" /> |
| 115 |
</restriction> |
| 116 |
</simpleType> |
| 117 |
|
| 118 |
<complexType name="NamespacesType"> |
| 119 |
<sequence> |
| 120 |
<element name="namespace" type="mw:NamespaceType" |
| 121 |
minOccurs="0" maxOccurs="unbounded" /> |
| 122 |
</sequence> |
| 123 |
</complexType> |
| 124 |
|
| 125 |
<complexType name="NamespaceType"> |
| 126 |
<simpleContent> |
| 127 |
<extension base="string"> |
| 128 |
<attribute name="key" type="integer" /> |
| 129 |
<attribute name="case" type="mw:CaseType" /> |
| 130 |
</extension> |
| 131 |
</simpleContent> |
| 132 |
</complexType> |
| 133 |
|
| 134 |
<complexType name="RedirectType"> |
| 135 |
<simpleContent> |
| 136 |
<extension base="string"> |
| 137 |
<attribute name="title" type="string" /> |
| 138 |
</extension> |
| 139 |
</simpleContent> |
| 140 |
</complexType> |
| 141 |
|
| 142 |
<simpleType name="ContentModelType"> |
| 143 |
<restriction base="string"> |
| 144 |
<pattern value="[a-zA-Z][-+./a-zA-Z0-9]*" /> |
| 145 |
</restriction> |
| 146 |
</simpleType> |
| 147 |
|
| 148 |
<simpleType name="ContentFormatType"> |
| 149 |
<restriction base="string"> |
| 150 |
<pattern value="[a-zA-Z][-+.a-zA-Z0-9]*/[a-zA-Z][-+.a-zA-Z0-9]*" /> |
| 151 |
</restriction> |
| 152 |
</simpleType> |
| 153 |
|
| 154 |
<complexType name="PageType"> |
| 155 |
<sequence> |
| 156 |
|
| 157 |
<element name="title" type="string" /> |
| 158 |
|
| 159 |
|
| 160 |
<element name="ns" type="nonNegativeInteger" /> |
| 161 |
|
| 162 |
|
| 163 |
<element name="id" type="positiveInteger" /> |
| 164 |
|
| 165 |
|
| 166 |
<element name="redirect" type="mw:RedirectType" minOccurs="0" maxOccurs="1" /> |
| 167 |
|
| 168 |
|
| 169 |
<element name="restrictions" type="string" minOccurs="0" /> |
| 170 |
|
| 171 |
|
| 172 |
<choice minOccurs="0" maxOccurs="unbounded"> |
| 173 |
<element name="revision" type="mw:RevisionType" /> |
| 174 |
<element name="upload" type="mw:UploadType" /> |
| 175 |
</choice> |
| 176 |
|
| 177 |
|
| 178 |
<element name="discussionthreadinginfo" minOccurs="0" maxOccurs="1" type="mw:DiscussionThreadingInfo" /> |
| 179 |
</sequence> |
| 180 |
</complexType> |
| 181 |
|
| 182 |
<complexType name="RevisionType"> |
| 183 |
<sequence> |
| 184 |
<element name="id" type="positiveInteger" /> |
| 185 |
<element name="parentid" type="positiveInteger" minOccurs="0" maxOccurs="1" /> |
| 186 |
<element name="timestamp" type="dateTime" /> |
| 187 |
<element name="contributor" type="mw:ContributorType" /> |
| 188 |
<element name="minor" minOccurs="0" maxOccurs="1" /> |
| 189 |
<element name="comment" type="mw:CommentType" minOccurs="0" maxOccurs="1" /> |
| 190 |
|
| 191 |
<element name="origin" type="positiveInteger" /> |
| 192 |
|
| 193 |
<element name="model" type="mw:ContentModelType" /> |
| 194 |
|
| 195 |
<element name="format" type="mw:ContentFormatType" /> |
| 196 |
|
| 197 |
<element name="text" type="mw:TextType"/> |
| 198 |
<element name="content" type="mw:ContentType" minOccurs="0" maxOccurs="unbounded"/> |
| 199 |
|
| 200 |
<element name="sha1" type="string" /> |
| 201 |
</sequence> |
| 202 |
</complexType> |
| 203 |
|
| 204 |
<complexType name="ContentType"> |
| 205 |
<sequence> |
| 206 |
|
| 207 |
<element name="role" type="mw:SlotRoleType" /> |
| 208 |
|
| 209 |
<element name="origin" type="positiveInteger" /> |
| 210 |
<element name="model" type="mw:ContentModelType" /> |
| 211 |
<element name="format" type="mw:ContentFormatType" /> |
| 212 |
<element name="text" type="mw:ContentTextType" /> |
| 213 |
</sequence> |
| 214 |
</complexType> |
| 215 |
|
| 216 |
<simpleType name="SlotRoleType"> |
| 217 |
<restriction base="string"> |
| 218 |
<pattern value="[a-zA-Z][-+./a-zA-Z0-9]*" /> |
| 219 |
</restriction> |
| 220 |
</simpleType> |
| 221 |
|
| 222 |
<complexType name="ContentTextType"> |
| 223 |
<simpleContent> |
| 224 |
<extension base="string"> |
| 225 |
<attribute ref="xml:space" default="preserve" /> |
| 226 |
|
| 227 |
<attribute name="deleted" type="mw:DeletedFlagType" /> |
| 228 |
<attribute name="location" type="anyURI" /> |
| 229 |
<attribute name="sha1" type="string" /> |
| 230 |
<attribute name="bytes" type="nonNegativeInteger" /> |
| 231 |
</extension> |
| 232 |
</simpleContent> |
| 233 |
</complexType> |
| 234 |
|
| 235 |
<complexType name="LogItemType"> |
| 236 |
<sequence> |
| 237 |
<element name="id" type="positiveInteger" /> |
| 238 |
<element name="timestamp" type="dateTime" /> |
| 239 |
<element name="contributor" type="mw:ContributorType" /> |
| 240 |
<element name="comment" type="mw:CommentType" minOccurs="0" /> |
| 241 |
<element name="type" type="string" /> |
| 242 |
<element name="action" type="string" /> |
| 243 |
<element name="text" type="mw:LogTextType" minOccurs="0" maxOccurs="1" /> |
| 244 |
<element name="logtitle" type="string" minOccurs="0" maxOccurs="1" /> |
| 245 |
<element name="params" type="mw:LogParamsType" minOccurs="0" maxOccurs="1" /> |
| 246 |
</sequence> |
| 247 |
</complexType> |
| 248 |
|
| 249 |
<complexType name="CommentType"> |
| 250 |
<simpleContent> |
| 251 |
<extension base="string"> |
| 252 |
|
| 253 |
<attribute name="deleted" type="mw:DeletedFlagType" /> |
| 254 |
</extension> |
| 255 |
</simpleContent> |
| 256 |
</complexType> |
| 257 |
|
| 258 |
<complexType name="TextType"> |
| 259 |
<simpleContent> |
| 260 |
<extension base="string"> |
| 261 |
<attribute ref="xml:space" default="preserve" /> |
| 262 |
|
| 263 |
<attribute name="deleted" type="mw:DeletedFlagType" /> |
| 264 |
|
| 265 |
|
| 266 |
|
| 267 |
<attribute name="id" type="NMTOKEN" /> |
| 268 |
<attribute name="location" type="anyURI" /> |
| 269 |
<attribute name="sha1" type="string"/> |
| 270 |
<attribute name="bytes" type="nonNegativeInteger" /> |
| 271 |
</extension> |
| 272 |
</simpleContent> |
| 273 |
</complexType> |
| 274 |
|
| 275 |
<complexType name="LogTextType"> |
| 276 |
<simpleContent> |
| 277 |
<extension base="string"> |
| 278 |
|
| 279 |
<attribute name="deleted" type="mw:DeletedFlagType" /> |
| 280 |
</extension> |
| 281 |
</simpleContent> |
| 282 |
</complexType> |
| 283 |
|
| 284 |
<complexType name="LogParamsType"> |
| 285 |
<simpleContent> |
| 286 |
<extension base="string"> |
| 287 |
<attribute ref="xml:space" default="preserve" /> |
| 288 |
</extension> |
| 289 |
</simpleContent> |
| 290 |
</complexType> |
| 291 |
|
| 292 |
<complexType name="ContributorType"> |
| 293 |
<sequence> |
| 294 |
<element name="username" type="string" minOccurs="0" /> |
| 295 |
<element name="id" type="nonNegativeInteger" minOccurs="0" /> |
| 296 |
|
| 297 |
<element name="ip" type="string" minOccurs="0" /> |
| 298 |
</sequence> |
| 299 |
|
| 300 |
<attribute name="deleted" type="mw:DeletedFlagType" /> |
| 301 |
</complexType> |
| 302 |
|
| 303 |
<complexType name="UploadType"> |
| 304 |
<sequence> |
| 305 |
|
| 306 |
<element name="timestamp" type="dateTime" /> |
| 307 |
<element name="contributor" type="mw:ContributorType" /> |
| 308 |
<element name="comment" type="string" minOccurs="0" /> |
| 309 |
|
| 310 |
|
| 311 |
<element name="filename" type="string" /> |
| 312 |
|
| 313 |
|
| 314 |
<element name="src" type="anyURI" /> |
| 315 |
|
| 316 |
<element name="size" type="positiveInteger" /> |
| 317 |
|
| 318 |
|
| 319 |
</sequence> |
| 320 |
</complexType> |
| 321 |
|
| 322 |
|
| 323 |
<complexType name="DiscussionThreadingInfo"> |
| 324 |
<sequence> |
| 325 |
<element name="ThreadSubject" type="string" /> |
| 326 |
<element name="ThreadParent" type="positiveInteger" /> |
| 327 |
<element name="ThreadAncestor" type="positiveInteger" /> |
| 328 |
<element name="ThreadPage" type="string" /> |
| 329 |
<element name="ThreadID" type="positiveInteger" /> |
| 330 |
<element name="ThreadAuthor" type="string" /> |
| 331 |
<element name="ThreadEditStatus" type="string" /> |
| 332 |
<element name="ThreadType" type="string" /> |
| 333 |
</sequence> |
| 334 |
</complexType> |
| 335 |
|
| 336 |
</schema> |