[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/docs/ -> export-0.3.xsd (source)

   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.
   5  
   6      Version 0.2 adds optional basic file upload info support,
   7      which is used by our OAI export/import submodule.
   8  
   9      Version 0.3 adds some site configuration information such
  10      as a list of defined namespaces.
  11  
  12      The canonical URL to the schema document is:
  13      http://www.mediawiki.org/xml/export-0.3.xsd
  14  
  15      Use the namespace:
  16      http://www.mediawiki.org/xml/export-0.3/
  17  -->
  18  <schema xmlns="http://www.w3.org/2001/XMLSchema"
  19          xmlns:mw="http://www.mediawiki.org/xml/export-0.3/"
  20          targetNamespace="http://www.mediawiki.org/xml/export-0.3/"
  21          elementFormDefault="qualified">
  22  
  23      <annotation>
  24          <documentation xml:lang="en">
  25              MediaWiki's page export format
  26          </documentation>
  27      </annotation>
  28  
  29      <!-- Need this to reference xml:lang -->
  30      <import namespace="http://www.w3.org/XML/1998/namespace"
  31              schemaLocation="http://www.w3.org/2001/xml.xsd"/>
  32  
  33      <!-- Our root element -->
  34      <element name="mediawiki" type="mw:MediaWikiType"/>
  35  
  36      <complexType name="MediaWikiType">
  37          <sequence>
  38              <element name="siteinfo" type="mw:SiteInfoType"
  39                       minOccurs="0" maxOccurs="1"/>
  40              <element name="page" type="mw:PageType"
  41                       minOccurs="0" maxOccurs="unbounded"/>
  42          </sequence>
  43          <attribute name="version" type="string" use="required"/>
  44          <attribute ref="xml:lang" use="required"/>
  45      </complexType>
  46  
  47      <complexType name="SiteInfoType">
  48          <sequence>
  49              <element name="sitename" type="string" minOccurs="0" />
  50              <element name="base" type="anyURI" minOccurs="0" />
  51              <element name="generator" type="string" minOccurs="0" />
  52              <element name="case" type="mw:CaseType" minOccurs="0" />
  53              <element name="namespaces" type="mw:NamespacesType" minOccurs="0" />
  54          </sequence>
  55      </complexType>
  56  
  57      <simpleType name="CaseType">
  58          <restriction base="NMTOKEN">
  59              <!-- Cannot have two titles differing only by case of first letter. -->
  60              <!-- Default behavior through 1.5, $wgCapitalLinks = true -->
  61              <enumeration value="first-letter" />
  62  
  63              <!-- Complete title is case-sensitive -->
  64              <!-- Behavior when $wgCapitalLinks = false -->
  65              <enumeration value="case-sensitive" />
  66  
  67              <!-- Cannot have two titles differing only by case. -->
  68              <!-- Not yet implemented as of MediaWiki 1.5 -->
  69              <enumeration value="case-insensitive" />
  70          </restriction>
  71      </simpleType>
  72  
  73      <complexType name="NamespacesType">
  74          <sequence>
  75              <element name="namespace" type="mw:NamespaceType"
  76                       minOccurs="0" maxOccurs="unbounded" />
  77          </sequence>
  78      </complexType>
  79  
  80      <complexType name="NamespaceType">
  81          <simpleContent>
  82              <extension base="string">
  83                  <attribute name="key" type="integer" />
  84              </extension>
  85          </simpleContent>
  86      </complexType>
  87  
  88      <complexType name="PageType">
  89          <sequence>
  90              <!-- Title in text form. (Using spaces, not underscores; with namespace ) -->
  91              <element name="title" type="string"/>
  92  
  93              <!-- optional page ID number -->
  94              <element name="id" type="positiveInteger" minOccurs="0"/>
  95  
  96              <!-- comma-separated list of string tokens, if present -->
  97              <element name="restrictions" type="string" minOccurs="0"/>
  98  
  99              <!-- Zero or more sets of revision or upload data -->
 100              <choice minOccurs="0" maxOccurs="unbounded">
 101                  <element name="revision" type="mw:RevisionType" />
 102                  <element name="upload" type="mw:UploadType" />
 103              </choice>
 104          </sequence>
 105      </complexType>
 106  
 107      <complexType name="RevisionType">
 108          <sequence>
 109              <element name="id" type="positiveInteger" minOccurs="0"/>
 110              <element name="timestamp" type="dateTime"/>
 111              <element name="contributor" type="mw:ContributorType"/>
 112              <element name="minor" minOccurs="0" />
 113              <element name="comment" type="string" minOccurs="0"/>
 114              <element name="text" type="mw:TextType" />
 115          </sequence>
 116      </complexType>
 117  
 118      <complexType name="TextType">
 119          <simpleContent>
 120              <extension base="string">
 121                  <attribute ref="xml:space" use="optional" default="preserve" />
 122              </extension>
 123          </simpleContent>
 124      </complexType>
 125  
 126      <complexType name="ContributorType">
 127          <sequence>
 128              <element name="username" type="string" minOccurs="0"/>
 129              <element name="id" type="positiveInteger" minOccurs="0" />
 130  
 131              <element name="ip" type="string" minOccurs="0"/>
 132          </sequence>
 133      </complexType>
 134  
 135      <complexType name="UploadType">
 136          <sequence>
 137              <!-- Revision-style data... -->
 138              <element name="timestamp" type="dateTime"/>
 139              <element name="contributor" type="mw:ContributorType"/>
 140              <element name="comment" type="string" minOccurs="0"/>
 141  
 142              <!-- Filename. (Using underscores, not spaces. No 'Image:' namespace marker.) -->
 143              <element name="filename" type="string"/>
 144  
 145              <!-- URI at which this resource can be obtained -->
 146              <element name="src" type="anyURI"/>
 147  
 148              <element name="size" type="positiveInteger" />
 149  
 150              <!-- TODO: add other metadata fields -->
 151          </sequence>
 152      </complexType>
 153  
 154  </schema>


Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1