[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/docs/ -> export-0.1.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      The canonical URL to the schema document is:
   7      http://www.mediawiki.org/xml/export-0.1.xsd
   8  
   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">
  16  
  17      <annotation>
  18          <documentation xml:lang="en">
  19              MediaWiki's page export format
  20          </documentation>
  21      </annotation>
  22  
  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"/>
  26  
  27      <!-- Our root element -->
  28      <element name="mediawiki" type="mw:MediaWikiType"/>
  29  
  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>
  38  
  39      <complexType name="PageType">
  40          <sequence>
  41              <!-- Title in text form. (Using spaces, not underscores; with namespace ) -->
  42              <element name="title" type="string"/>
  43  
  44              <!-- optional page ID number -->
  45              <element name="id" type="positiveInteger" minOccurs="0"/>
  46  
  47              <!-- comma-separated list of string tokens, if present -->
  48              <element name="restrictions" type="string" minOccurs="0"/>
  49  
  50              <!-- Zero or more sets of revision data -->
  51              <element name="revision" type="mw:RevisionType"
  52                       minOccurs="0" maxOccurs="unbounded"/>
  53          </sequence>
  54      </complexType>
  55  
  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>
  66  
  67      <complexType name="ContributorType">
  68          <sequence>
  69              <element name="username" type="string" minOccurs="0"/>
  70              <element name="id" type="positiveInteger" minOccurs="0" />
  71  
  72              <element name="ip" type="string" minOccurs="0"/>
  73          </sequence>
  74      </complexType>
  75  
  76  </schema>


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