Fix trailing whitespace (and mixed spaces) in XSD files
authorReedy <reedy@wikimedia.org>
Sun, 27 May 2012 13:03:29 +0000 (14:03 +0100)
committerReedy <reedy@wikimedia.org>
Sun, 27 May 2012 13:03:29 +0000 (14:03 +0100)
Change-Id: Ie3c9917442c0bb47e1e95ad304943a721eb430cd

docs/export-0.1.xsd
docs/export-0.2.xsd
docs/export-0.3.xsd
docs/export-0.4.xsd
docs/export-0.5.xsd
docs/export-0.6.xsd
docs/export-0.7.xsd

index 0b3eb17..9ff48f0 100644 (file)
@@ -2,57 +2,57 @@
 <!--
        This is an XML Schema description of the format
        output by MediaWiki's Special:Export system.
-       
+
        The canonical URL to the schema document is:
        http://www.mediawiki.org/xml/export-0.1.xsd
-       
+
        Use the namespace:
        http://www.mediawiki.org/xml/export-0.1/
 -->
 <schema xmlns="http://www.w3.org/2001/XMLSchema"
-        xmlns:mw="http://www.mediawiki.org/xml/export-0.1/"
-        targetNamespace="http://www.mediawiki.org/xml/export-0.1/"
-        elementFormDefault="qualified">
+               xmlns:mw="http://www.mediawiki.org/xml/export-0.1/"
+               targetNamespace="http://www.mediawiki.org/xml/export-0.1/"
+               elementFormDefault="qualified">
 
        <annotation>
                <documentation xml:lang="en">
                        MediaWiki's page export format
                </documentation>
        </annotation>
-       
+
        <!-- Need this to reference xml:lang -->
        <import namespace="http://www.w3.org/XML/1998/namespace"
-               schemaLocation="http://www.w3.org/2001/xml.xsd"/>
-       
+                       schemaLocation="http://www.w3.org/2001/xml.xsd"/>
+
        <!-- Our root element -->
        <element name="mediawiki" type="mw:MediaWikiType"/>
-       
+
        <complexType name="MediaWikiType">
                <sequence>
                        <element name="page" type="mw:PageType"
-                               minOccurs="0" maxOccurs="unbounded"/>
+                                        minOccurs="0" maxOccurs="unbounded"/>
                </sequence>
                <attribute name="version" type="string" use="required"/>
                <attribute ref="xml:lang" use="required"/>
        </complexType>
-       
+
        <complexType name="PageType">
                <sequence>
                        <!-- Title in text form. (Using spaces, not underscores; with namespace ) -->
                        <element name="title" type="string"/>
-                       
+
                        <!-- optional page ID number -->
                        <element name="id" type="positiveInteger" minOccurs="0"/>
-                       
+
                        <!-- comma-separated list of string tokens, if present -->
                        <element name="restrictions" type="string" minOccurs="0"/>
-                       
+
                        <!-- Zero or more sets of revision data -->
                        <element name="revision" type="mw:RevisionType"
-                               minOccurs="0" maxOccurs="unbounded"/>
+                                        minOccurs="0" maxOccurs="unbounded"/>
                </sequence>
        </complexType>
-       
+
        <complexType name="RevisionType">
                <sequence>
                        <element name="id" type="positiveInteger" minOccurs="0"/>
                        <element name="text" type="string"/>
                </sequence>
        </complexType>
-       
+
        <complexType name="ContributorType">
                <sequence>
                        <element name="username" type="string" minOccurs="0"/>
                        <element name="id" type="positiveInteger" minOccurs="0" />
-                       
+
                        <element name="ip" type="string" minOccurs="0"/>
                </sequence>
        </complexType>
index 8acbf54..55b05f8 100644 (file)
@@ -2,54 +2,54 @@
 <!--
        This is an XML Schema description of the format
        output by MediaWiki's Special:Export system.
-       
+
        Version 0.2 adds optional basic file upload info support,
        which is used by our OAI export/import submodule.
-       
+
        The canonical URL to the schema document is:
        http://www.mediawiki.org/xml/export-0.2.xsd
-       
+
        Use the namespace:
        http://www.mediawiki.org/xml/export-0.2/
 -->
 <schema xmlns="http://www.w3.org/2001/XMLSchema"
-        xmlns:mw="http://www.mediawiki.org/xml/export-0.2/"
-        targetNamespace="http://www.mediawiki.org/xml/export-0.2/"
-        elementFormDefault="qualified">
+               xmlns:mw="http://www.mediawiki.org/xml/export-0.2/"
+               targetNamespace="http://www.mediawiki.org/xml/export-0.2/"
+               elementFormDefault="qualified">
 
        <annotation>
                <documentation xml:lang="en">
                        MediaWiki's page export format
                </documentation>
        </annotation>
-       
+
        <!-- Need this to reference xml:lang -->
        <import namespace="http://www.w3.org/XML/1998/namespace"
-               schemaLocation="http://www.w3.org/2001/xml.xsd"/>
-       
+                       schemaLocation="http://www.w3.org/2001/xml.xsd"/>
+
        <!-- Our root element -->
        <element name="mediawiki" type="mw:MediaWikiType"/>
-       
+
        <complexType name="MediaWikiType">
                <sequence>
                        <element name="page" type="mw:PageType"
-                               minOccurs="0" maxOccurs="unbounded"/>
+                                        minOccurs="0" maxOccurs="unbounded"/>
                </sequence>
                <attribute name="version" type="string" use="required"/>
                <attribute ref="xml:lang" use="required"/>
        </complexType>
-       
+
        <complexType name="PageType">
                <sequence>
                        <!-- Title in text form. (Using spaces, not underscores; with namespace ) -->
                        <element name="title" type="string"/>
-                       
+
                        <!-- optional page ID number -->
                        <element name="id" type="positiveInteger" minOccurs="0"/>
-                       
+
                        <!-- comma-separated list of string tokens, if present -->
                        <element name="restrictions" type="string" minOccurs="0"/>
-                       
+
                        <!-- Zero or more sets of revision or upload data -->
                        <choice minOccurs="0" maxOccurs="unbounded">
                                <element name="revision" type="mw:RevisionType" />
@@ -57,7 +57,7 @@
                        </choice>
                </sequence>
        </complexType>
-       
+
        <complexType name="RevisionType">
                <sequence>
                        <element name="id" type="positiveInteger" minOccurs="0"/>
                        <element name="text" type="string"/>
                </sequence>
        </complexType>
-       
+
        <complexType name="ContributorType">
                <sequence>
                        <element name="username" type="string" minOccurs="0"/>
                        <element name="id" type="positiveInteger" minOccurs="0" />
-                       
+
                        <element name="ip" type="string" minOccurs="0"/>
                </sequence>
        </complexType>
-       
+
        <complexType name="UploadType">
                <sequence>
                        <!-- Revision-style data... -->
                        <element name="timestamp" type="dateTime"/>
                        <element name="contributor" type="mw:ContributorType"/>
                        <element name="comment" type="string" minOccurs="0"/>
-                       
+
                        <!-- Filename. (Using underscores, not spaces. No 'Image:' namespace marker.) -->
                        <element name="filename" type="string"/>
-                       
+
                        <!-- URI at which this resource can be obtained -->
                        <element name="src" type="anyURI"/>
-                       
+
                        <element name="size" type="positiveInteger" />
-                       
+
                        <!-- TODO: add other metadata fields -->
                </sequence>
        </complexType>
-       
+
 </schema>
index 1e0b7c8..ea2b816 100644 (file)
@@ -2,48 +2,48 @@
 <!--
        This is an XML Schema description of the format
        output by MediaWiki's Special:Export system.
-       
+
        Version 0.2 adds optional basic file upload info support,
        which is used by our OAI export/import submodule.
-       
+
        Version 0.3 adds some site configuration information such
        as a list of defined namespaces.
-       
+
        The canonical URL to the schema document is:
        http://www.mediawiki.org/xml/export-0.3.xsd
-       
+
        Use the namespace:
        http://www.mediawiki.org/xml/export-0.3/
 -->
 <schema xmlns="http://www.w3.org/2001/XMLSchema"
-        xmlns:mw="http://www.mediawiki.org/xml/export-0.3/"
-        targetNamespace="http://www.mediawiki.org/xml/export-0.3/"
-        elementFormDefault="qualified">
+               xmlns:mw="http://www.mediawiki.org/xml/export-0.3/"
+               targetNamespace="http://www.mediawiki.org/xml/export-0.3/"
+               elementFormDefault="qualified">
 
        <annotation>
                <documentation xml:lang="en">
                        MediaWiki's page export format
                </documentation>
        </annotation>
-       
+
        <!-- Need this to reference xml:lang -->
        <import namespace="http://www.w3.org/XML/1998/namespace"
-               schemaLocation="http://www.w3.org/2001/xml.xsd"/>
-       
+                       schemaLocation="http://www.w3.org/2001/xml.xsd"/>
+
        <!-- Our root element -->
        <element name="mediawiki" type="mw:MediaWikiType"/>
-       
+
        <complexType name="MediaWikiType">
                <sequence>
                        <element name="siteinfo" type="mw:SiteInfoType"
-                               minOccurs="0" maxOccurs="1"/>
+                                        minOccurs="0" maxOccurs="1"/>
                        <element name="page" type="mw:PageType"
-                               minOccurs="0" maxOccurs="unbounded"/>
+                                        minOccurs="0" maxOccurs="unbounded"/>
                </sequence>
                <attribute name="version" type="string" use="required"/>
                <attribute ref="xml:lang" use="required"/>
        </complexType>
-       
+
        <complexType name="SiteInfoType">
                <sequence>
                        <element name="sitename" type="string" minOccurs="0" />
                        <element name="namespaces" type="mw:NamespacesType" minOccurs="0" />
                </sequence>
        </complexType>
-       
+
        <simpleType name="CaseType">
                <restriction base="NMTOKEN">
                        <!-- Cannot have two titles differing only by case of first letter. -->
                        <!-- Default behavior through 1.5, $wgCapitalLinks = true -->
                        <enumeration value="first-letter" />
-                       
+
                        <!-- Complete title is case-sensitive -->
                        <!-- Behavior when $wgCapitalLinks = false -->
                        <enumeration value="case-sensitive" />
-                       
+
                        <!-- Cannot have two titles differing only by case. -->
                        <!-- Not yet implemented as of MediaWiki 1.5 -->
                        <enumeration value="case-insensitive" />
                </restriction>
        </simpleType>
-       
+
        <complexType name="NamespacesType">
                <sequence>
                        <element name="namespace" type="mw:NamespaceType"
-                               minOccurs="0" maxOccurs="unbounded" />
+                                        minOccurs="0" maxOccurs="unbounded" />
                </sequence>
        </complexType>
-       
+
        <complexType name="NamespaceType">
                <simpleContent>
                        <extension base="string">
                        </extension>
                </simpleContent>
        </complexType>
-       
+
        <complexType name="PageType">
                <sequence>
                        <!-- Title in text form. (Using spaces, not underscores; with namespace ) -->
                        <element name="title" type="string"/>
-                       
+
                        <!-- optional page ID number -->
                        <element name="id" type="positiveInteger" minOccurs="0"/>
-                       
+
                        <!-- comma-separated list of string tokens, if present -->
                        <element name="restrictions" type="string" minOccurs="0"/>
-                       
+
                        <!-- Zero or more sets of revision or upload data -->
                        <choice minOccurs="0" maxOccurs="unbounded">
                                <element name="revision" type="mw:RevisionType" />
                        </choice>
                </sequence>
        </complexType>
-       
+
        <complexType name="RevisionType">
                <sequence>
                        <element name="id" type="positiveInteger" minOccurs="0"/>
                        <element name="text" type="mw:TextType" />
                </sequence>
        </complexType>
-       
+
        <complexType name="TextType">
                <simpleContent>
                        <extension base="string">
                        </extension>
                </simpleContent>
        </complexType>
-       
+
        <complexType name="ContributorType">
                <sequence>
                        <element name="username" type="string" minOccurs="0"/>
                        <element name="id" type="positiveInteger" minOccurs="0" />
-                       
+
                        <element name="ip" type="string" minOccurs="0"/>
                </sequence>
        </complexType>
-       
+
        <complexType name="UploadType">
                <sequence>
                        <!-- Revision-style data... -->
                        <element name="timestamp" type="dateTime"/>
                        <element name="contributor" type="mw:ContributorType"/>
                        <element name="comment" type="string" minOccurs="0"/>
-                       
+
                        <!-- Filename. (Using underscores, not spaces. No 'Image:' namespace marker.) -->
                        <element name="filename" type="string"/>
-                       
+
                        <!-- URI at which this resource can be obtained -->
                        <element name="src" type="anyURI"/>
-                       
+
                        <element name="size" type="positiveInteger" />
-                       
+
                        <!-- TODO: add other metadata fields -->
                </sequence>
        </complexType>
-       
+
 </schema>
index 3e7f2ea..b3ea3bf 100644 (file)
@@ -2,52 +2,52 @@
 <!--
        This is an XML Schema description of the format
        output by MediaWiki's Special:Export system.
-       
+
        Version 0.2 adds optional basic file upload info support,
        which is used by our OAI export/import submodule.
-       
+
        Version 0.3 adds some site configuration information such
        as a list of defined namespaces.
-       
+
        Version 0.4 adds per-revision delete flags, log exports,
        discussion threading data, a per-page redirect flag, and
        per-namespace capitalization.
 
        The canonical URL to the schema document is:
        http://www.mediawiki.org/xml/export-0.4.xsd
-       
+
        Use the namespace:
        http://www.mediawiki.org/xml/export-0.4/
 -->
 <schema xmlns="http://www.w3.org/2001/XMLSchema"
-        xmlns:mw="http://www.mediawiki.org/xml/export-0.4/"
-        targetNamespace="http://www.mediawiki.org/xml/export-0.4/"
-        elementFormDefault="qualified">
+               xmlns:mw="http://www.mediawiki.org/xml/export-0.4/"
+               targetNamespace="http://www.mediawiki.org/xml/export-0.4/"
+               elementFormDefault="qualified">
 
        <annotation>
                <documentation xml:lang="en">
                        MediaWiki's page export format
                </documentation>
        </annotation>
-       
+
        <!-- Need this to reference xml:lang -->
        <import namespace="http://www.w3.org/XML/1998/namespace"
-               schemaLocation="http://www.w3.org/2001/xml.xsd"/>
-       
+                       schemaLocation="http://www.w3.org/2001/xml.xsd"/>
+
        <!-- Our root element -->
        <element name="mediawiki" type="mw:MediaWikiType"/>
-       
+
        <complexType name="MediaWikiType">
                <sequence>
                        <element name="siteinfo" type="mw:SiteInfoType"
-                               minOccurs="0" maxOccurs="1"/>
+                                        minOccurs="0" maxOccurs="1"/>
                        <element name="page" type="mw:PageType"
-                               minOccurs="0" maxOccurs="unbounded"/>
+                                        minOccurs="0" maxOccurs="unbounded"/>
                </sequence>
                <attribute name="version" type="string" use="required"/>
                <attribute ref="xml:lang" use="required"/>
        </complexType>
-       
+
        <complexType name="SiteInfoType">
                <sequence>
                        <element name="sitename" type="string" minOccurs="0" />
                        <element name="namespaces" type="mw:NamespacesType" minOccurs="0" />
                </sequence>
        </complexType>
-       
+
        <simpleType name="CaseType">
                <restriction base="NMTOKEN">
                        <!-- Cannot have two titles differing only by case of first letter. -->
                        <!-- Default behavior through 1.5, $wgCapitalLinks = true -->
                        <enumeration value="first-letter" />
-                       
+
                        <!-- Complete title is case-sensitive -->
                        <!-- Behavior when $wgCapitalLinks = false -->
                        <enumeration value="case-sensitive" />
-                       
+
                        <!-- Cannot have non-case senstitive titles eg [[FOO]] == [[Foo]] -->
                        <!-- Not yet implemented as of MediaWiki 1.18 -->
                        <enumeration value="case-insensitive" />
                </restriction>
        </simpleType>
-       
+
        <simpleType name="DeletedFlagType">
                <restriction base="NMTOKEN">
                        <enumeration value="deleted"/>
        <complexType name="NamespacesType">
                <sequence>
                        <element name="namespace" type="mw:NamespaceType"
-                               minOccurs="0" maxOccurs="unbounded" />
+                                        minOccurs="0" maxOccurs="unbounded" />
                </sequence>
        </complexType>
-       
+
        <complexType name="NamespaceType">
                <simpleContent>
                        <extension base="string">
                        </extension>
                </simpleContent>
        </complexType>
-       
+
        <complexType name="PageType">
                <sequence>
                        <!-- Title in text form. (Using spaces, not underscores; with namespace ) -->
                        <element name="title" type="string"/>
-                       
+
                        <!-- optional page ID number -->
                        <element name="id" type="positiveInteger" minOccurs="0"/>
-                       
+
                        <!-- flag if the current revision is a redirect -->
-                       <element name="redirect" minOccurs="0"/>        
+                       <element name="redirect" minOccurs="0"/>
 
                        <!-- comma-separated list of string tokens, if present -->
                        <element name="restrictions" type="string" minOccurs="0"/>
-                       
+
                        <!-- Zero or more sets of revision or upload data -->
                        <choice minOccurs="0" maxOccurs="unbounded">
                                <element name="revision" type="mw:RevisionType" />
                                <element name="upload" type="mw:UploadType" />
                                <element name="logitem" type="mw:LogItemType" />
                        </choice>
-                       
+
                        <!-- Zero or One sets of discussion threading data -->
                        <element name="discussionthreadinginfo" minOccurs="0" maxOccurs="1" type="mw:DiscussionThreadingInfo" />
                </sequence>
        </complexType>
-       
+
        <complexType name="RevisionType">
                <sequence>
                        <element name="id" type="positiveInteger" minOccurs="0"/>
                        <element name="text" type="mw:TextType" />
                </sequence>
        </complexType>
-       
+
        <complexType name="CommentType">
                <simpleContent>
                        <extension base="string">
                        <extension base="string">
                                <attribute ref="xml:space" use="optional" default="preserve" />
                                <!-- This allows deleted=deleted on non-empty elements, but XSD is not omnipotent -->
-                               <attribute name="deleted" use="optional" type="mw:DeletedFlagType"/>    
+                               <attribute name="deleted" use="optional" type="mw:DeletedFlagType"/>
                                <!-- This isn't a good idea; we should be using "ID" instead of "NMTOKEN" -->
                                <!-- However, "NMTOKEN" is strictest definition that is both compatible with existing -->
                                <!-- usage ([0-9]+) and with the "ID" type. -->
                        </extension>
                </simpleContent>
        </complexType>
-       
+
        <complexType name="ContributorType">
                <sequence>
                        <element name="username" type="string" minOccurs="0"/>
                        <element name="id" type="positiveInteger" minOccurs="0" />
-                       
+
                        <element name="ip" type="string" minOccurs="0"/>
                </sequence>
                <!-- This allows deleted=deleted on non-empty elements, but XSD is not omnipotent -->
                <attribute name="deleted" use="optional" type="mw:DeletedFlagType"/>
        </complexType>
-       
+
        <complexType name="UploadType">
                <sequence>
                        <!-- Revision-style data... -->
                        <element name="timestamp" type="dateTime"/>
                        <element name="contributor" type="mw:ContributorType"/>
                        <element name="comment" type="string" minOccurs="0"/>
-                       
+
                        <!-- Filename. (Using underscores, not spaces. No 'Image:' namespace marker.) -->
                        <element name="filename" type="string"/>
-                       
+
                        <!-- URI at which this resource can be obtained -->
                        <element name="src" type="anyURI"/>
-                       
+
                        <element name="size" type="positiveInteger" />
-                       
+
                        <!-- TODO: add other metadata fields -->
                </sequence>
        </complexType>
-       
+
        <!-- Discussion threading data for LiquidThreads -->
        <complexType name="DiscussionThreadingInfo">
                <sequence>
                        <element name="ThreadType" type="string" />
                </sequence>
        </complexType>
-       
+
 </schema>
index 469446d..ed6c002 100644 (file)
@@ -2,54 +2,54 @@
 <!--
        This is an XML Schema description of the format
        output by MediaWiki's Special:Export system.
-       
+
        Version 0.2 adds optional basic file upload info support,
        which is used by our OAI export/import submodule.
-       
+
        Version 0.3 adds some site configuration information such
        as a list of defined namespaces.
-       
+
        Version 0.4 adds per-revision delete flags, log exports,
        discussion threading data, a per-page redirect flag, and
        per-namespace capitalization.
-       
+
        Version 0.5 adds byte count per revision.
 
        The canonical URL to the schema document is:
        http://www.mediawiki.org/xml/export-0.5.xsd
-       
+
        Use the namespace:
        http://www.mediawiki.org/xml/export-0.5/
 -->
 <schema xmlns="http://www.w3.org/2001/XMLSchema"
-        xmlns:mw="http://www.mediawiki.org/xml/export-0.5/"
-        targetNamespace="http://www.mediawiki.org/xml/export-0.5/"
-        elementFormDefault="qualified">
+               xmlns:mw="http://www.mediawiki.org/xml/export-0.5/"
+               targetNamespace="http://www.mediawiki.org/xml/export-0.5/"
+               elementFormDefault="qualified">
 
        <annotation>
                <documentation xml:lang="en">
                        MediaWiki's page export format
                </documentation>
        </annotation>
-       
+
        <!-- Need this to reference xml:lang -->
        <import namespace="http://www.w3.org/XML/1998/namespace"
-               schemaLocation="http://www.w3.org/2001/xml.xsd"/>
-       
+                       schemaLocation="http://www.w3.org/2001/xml.xsd"/>
+
        <!-- Our root element -->
        <element name="mediawiki" type="mw:MediaWikiType"/>
-       
+
        <complexType name="MediaWikiType">
                <sequence>
                        <element name="siteinfo" type="mw:SiteInfoType"
-                               minOccurs="0" maxOccurs="1"/>
+                                        minOccurs="0" maxOccurs="1"/>
                        <element name="page" type="mw:PageType"
-                               minOccurs="0" maxOccurs="unbounded"/>
+                                        minOccurs="0" maxOccurs="unbounded"/>
                </sequence>
                <attribute name="version" type="string" use="required"/>
                <attribute ref="xml:lang" use="required"/>
        </complexType>
-       
+
        <complexType name="SiteInfoType">
                <sequence>
                        <element name="sitename" type="string" minOccurs="0" />
                        <element name="namespaces" type="mw:NamespacesType" minOccurs="0" />
                </sequence>
        </complexType>
-       
+
        <simpleType name="CaseType">
                <restriction base="NMTOKEN">
                        <!-- Cannot have two titles differing only by case of first letter. -->
                        <!-- Default behavior through 1.5, $wgCapitalLinks = true -->
                        <enumeration value="first-letter" />
-                       
+
                        <!-- Complete title is case-sensitive -->
                        <!-- Behavior when $wgCapitalLinks = false -->
                        <enumeration value="case-sensitive" />
-                       
+
                        <!-- Cannot have non-case senstitive titles eg [[FOO]] == [[Foo]] -->
                        <!-- Not yet implemented as of MediaWiki 1.18 -->
                        <enumeration value="case-insensitive" />
                </restriction>
        </simpleType>
-       
+
        <simpleType name="DeletedFlagType">
                <restriction base="NMTOKEN">
                        <enumeration value="deleted"/>
        <complexType name="NamespacesType">
                <sequence>
                        <element name="namespace" type="mw:NamespaceType"
-                               minOccurs="0" maxOccurs="unbounded" />
+                                        minOccurs="0" maxOccurs="unbounded" />
                </sequence>
        </complexType>
-       
+
        <complexType name="NamespaceType">
                <simpleContent>
                        <extension base="string">
                        </extension>
                </simpleContent>
        </complexType>
-       
+
        <complexType name="PageType">
                <sequence>
                        <!-- Title in text form. (Using spaces, not underscores; with namespace ) -->
                        <element name="title" type="string"/>
-                       
+
                        <!-- optional page ID number -->
                        <element name="id" type="positiveInteger" minOccurs="0"/>
-                       
+
                        <!-- flag if the current revision is a redirect -->
-                       <element name="redirect" minOccurs="0"/>        
+                       <element name="redirect" minOccurs="0"/>
 
                        <!-- comma-separated list of string tokens, if present -->
                        <element name="restrictions" type="string" minOccurs="0"/>
-                       
+
                        <!-- Zero or more sets of revision or upload data -->
                        <choice minOccurs="0" maxOccurs="unbounded">
                                <element name="revision" type="mw:RevisionType" />
                                <element name="upload" type="mw:UploadType" />
                                <element name="logitem" type="mw:LogItemType" />
                        </choice>
-                       
+
                        <!-- Zero or One sets of discussion threading data -->
                        <element name="discussionthreadinginfo" minOccurs="0" maxOccurs="1" type="mw:DiscussionThreadingInfo" />
                </sequence>
        </complexType>
-       
+
        <complexType name="RevisionType">
                <sequence>
                        <element name="id" type="positiveInteger" minOccurs="0"/>
                        <element name="text" type="mw:TextType" />
                </sequence>
        </complexType>
-       
+
        <complexType name="CommentType">
                <simpleContent>
                        <extension base="string">
                        <extension base="string">
                                <attribute ref="xml:space" use="optional" default="preserve" />
                                <!-- This allows deleted=deleted on non-empty elements, but XSD is not omnipotent -->
-                               <attribute name="deleted" use="optional" type="mw:DeletedFlagType"/>    
+                               <attribute name="deleted" use="optional" type="mw:DeletedFlagType"/>
                                <!-- This isn't a good idea; we should be using "ID" instead of "NMTOKEN" -->
                                <!-- However, "NMTOKEN" is strictest definition that is both compatible with existing -->
                                <!-- usage ([0-9]+) and with the "ID" type. -->
                        </extension>
                </simpleContent>
        </complexType>
-       
+
        <complexType name="ContributorType">
                <sequence>
                        <element name="username" type="string" minOccurs="0"/>
                        <element name="id" type="positiveInteger" minOccurs="0" />
-                       
+
                        <element name="ip" type="string" minOccurs="0"/>
                </sequence>
                <!-- This allows deleted=deleted on non-empty elements, but XSD is not omnipotent -->
                <attribute name="deleted" use="optional" type="mw:DeletedFlagType"/>
        </complexType>
-       
+
        <complexType name="UploadType">
                <sequence>
                        <!-- Revision-style data... -->
                        <element name="timestamp" type="dateTime"/>
                        <element name="contributor" type="mw:ContributorType"/>
                        <element name="comment" type="string" minOccurs="0"/>
-                       
+
                        <!-- Filename. (Using underscores, not spaces. No 'Image:' namespace marker.) -->
                        <element name="filename" type="string"/>
-                       
+
                        <!-- URI at which this resource can be obtained -->
                        <element name="src" type="anyURI"/>
-                       
+
                        <element name="size" type="positiveInteger" />
-                       
+
                        <!-- TODO: add other metadata fields -->
                </sequence>
        </complexType>
-       
+
        <!-- Discussion threading data for LiquidThreads -->
        <complexType name="DiscussionThreadingInfo">
                <sequence>
                        <element name="ThreadType" type="string" />
                </sequence>
        </complexType>
-       
+
 </schema>
index 55428b5..4668794 100644 (file)
@@ -2,57 +2,57 @@
 <!--
        This is an XML Schema description of the format
        output by MediaWiki's Special:Export system.
-       
+
        Version 0.2 adds optional basic file upload info support,
        which is used by our OAI export/import submodule.
-       
+
        Version 0.3 adds some site configuration information such
        as a list of defined namespaces.
-       
+
        Version 0.4 adds per-revision delete flags, log exports,
        discussion threading data, a per-page redirect flag, and
        per-namespace capitalization.
 
        Version 0.5 adds byte count per revision.
-       
+
        Version 0.6 adds a separate namespace tag, and resolves the
-       redirect target and adds a separate sha1 tag for each revision. 
-       
+       redirect target and adds a separate sha1 tag for each revision.
+
        The canonical URL to the schema document is:
        http://www.mediawiki.org/xml/export-0.6.xsd
-       
+
        Use the namespace:
        http://www.mediawiki.org/xml/export-0.6/
 -->
 <schema xmlns="http://www.w3.org/2001/XMLSchema"
-        xmlns:mw="http://www.mediawiki.org/xml/export-0.6/"
-        targetNamespace="http://www.mediawiki.org/xml/export-0.6/"
-        elementFormDefault="qualified">
+               xmlns:mw="http://www.mediawiki.org/xml/export-0.6/"
+               targetNamespace="http://www.mediawiki.org/xml/export-0.6/"
+               elementFormDefault="qualified">
 
        <annotation>
                <documentation xml:lang="en">
                        MediaWiki's page export format
                </documentation>
        </annotation>
-       
+
        <!-- Need this to reference xml:lang -->
        <import namespace="http://www.w3.org/XML/1998/namespace"
-               schemaLocation="http://www.w3.org/2001/xml.xsd"/>
-       
+                       schemaLocation="http://www.w3.org/2001/xml.xsd"/>
+
        <!-- Our root element -->
        <element name="mediawiki" type="mw:MediaWikiType"/>
-       
+
        <complexType name="MediaWikiType">
                <sequence>
                        <element name="siteinfo" type="mw:SiteInfoType"
-                               minOccurs="0" maxOccurs="1"/>
+                                        minOccurs="0" maxOccurs="1"/>
                        <element name="page" type="mw:PageType"
-                               minOccurs="0" maxOccurs="unbounded"/>
+                                        minOccurs="0" maxOccurs="unbounded"/>
                </sequence>
                <attribute name="version" type="string" use="required"/>
                <attribute ref="xml:lang" use="required"/>
        </complexType>
-       
+
        <complexType name="SiteInfoType">
                <sequence>
                        <element name="sitename" type="string" minOccurs="0" />
                        <element name="namespaces" type="mw:NamespacesType" minOccurs="0" />
                </sequence>
        </complexType>
-       
+
        <simpleType name="CaseType">
                <restriction base="NMTOKEN">
                        <!-- Cannot have two titles differing only by case of first letter. -->
                        <!-- Default behavior through 1.5, $wgCapitalLinks = true -->
                        <enumeration value="first-letter" />
-                       
+
                        <!-- Complete title is case-sensitive -->
                        <!-- Behavior when $wgCapitalLinks = false -->
                        <enumeration value="case-sensitive" />
-                       
+
                        <!-- Cannot have non-case senstitive titles eg [[FOO]] == [[Foo]] -->
                        <!-- Not yet implemented as of MediaWiki 1.18 -->
                        <enumeration value="case-insensitive" />
                </restriction>
        </simpleType>
-       
+
        <simpleType name="DeletedFlagType">
                <restriction base="NMTOKEN">
                        <enumeration value="deleted"/>
        <complexType name="NamespacesType">
                <sequence>
                        <element name="namespace" type="mw:NamespaceType"
-                               minOccurs="0" maxOccurs="unbounded" />
+                                        minOccurs="0" maxOccurs="unbounded" />
                </sequence>
        </complexType>
-       
+
        <complexType name="NamespaceType">
                <simpleContent>
                        <extension base="string">
                        </extension>
                </simpleContent>
        </complexType>
-       
+
        <complexType name="PageType">
                <sequence>
                        <!-- Title in text form. (Using spaces, not underscores; with namespace ) -->
                        <element name="title" type="string"/>
-                       
+
                        <!-- Namespace in canonical form -->
                        <element name="ns" type="positiveInteger"/>
-                       
+
                        <!-- optional page ID number -->
                        <element name="id" type="positiveInteger" minOccurs="0"/>
-                       
+
                        <!-- flag if the current revision is a redirect -->
-                       <element name="redirect" type="string" minOccurs="0"/>  
+                       <element name="redirect" type="string" minOccurs="0"/>
 
                        <!-- comma-separated list of string tokens, if present -->
                        <element name="restrictions" type="string" minOccurs="0"/>
-                       
+
                        <!-- Zero or more sets of revision or upload data -->
                        <choice minOccurs="0" maxOccurs="unbounded">
                                <element name="revision" type="mw:RevisionType" />
                                <element name="upload" type="mw:UploadType" />
                                <element name="logitem" type="mw:LogItemType" />
                        </choice>
-                       
+
                        <!-- Zero or One sets of discussion threading data -->
                        <element name="discussionthreadinginfo" minOccurs="0" maxOccurs="1" type="mw:DiscussionThreadingInfo" />
                </sequence>
        </complexType>
-       
+
        <complexType name="RevisionType">
                <sequence>
                        <element name="id" type="positiveInteger" minOccurs="0"/>
                        <element name="text" type="mw:TextType" />
                </sequence>
        </complexType>
-       
+
        <complexType name="CommentType">
                <simpleContent>
                        <extension base="string">
                        <extension base="string">
                                <attribute ref="xml:space" use="optional" default="preserve" />
                                <!-- This allows deleted=deleted on non-empty elements, but XSD is not omnipotent -->
-                               <attribute name="deleted" use="optional" type="mw:DeletedFlagType"/>    
+                               <attribute name="deleted" use="optional" type="mw:DeletedFlagType"/>
                                <!-- This isn't a good idea; we should be using "ID" instead of "NMTOKEN" -->
                                <!-- However, "NMTOKEN" is strictest definition that is both compatible with existing -->
                                <!-- usage ([0-9]+) and with the "ID" type. -->
                        </extension>
                </simpleContent>
        </complexType>
-       
+
        <complexType name="ContributorType">
                <sequence>
                        <element name="username" type="string" minOccurs="0"/>
                        <element name="id" type="positiveInteger" minOccurs="0" />
-                       
+
                        <element name="ip" type="string" minOccurs="0"/>
                </sequence>
                <!-- This allows deleted=deleted on non-empty elements, but XSD is not omnipotent -->
                <attribute name="deleted" use="optional" type="mw:DeletedFlagType"/>
        </complexType>
-       
+
        <complexType name="UploadType">
                <sequence>
                        <!-- Revision-style data... -->
                        <element name="timestamp" type="dateTime"/>
                        <element name="contributor" type="mw:ContributorType"/>
                        <element name="comment" type="string" minOccurs="0"/>
-                       
+
                        <!-- Filename. (Using underscores, not spaces. No 'Image:' namespace marker.) -->
                        <element name="filename" type="string"/>
-                       
+
                        <!-- URI at which this resource can be obtained -->
                        <element name="src" type="anyURI"/>
-                       
+
                        <element name="size" type="positiveInteger" />
-                       
+
                        <!-- TODO: add other metadata fields -->
                </sequence>
        </complexType>
-       
+
        <!-- Discussion threading data for LiquidThreads -->
        <complexType name="DiscussionThreadingInfo">
                <sequence>
                        <element name="ThreadType" type="string" />
                </sequence>
        </complexType>
-       
+
 </schema>
index 0b2a9db..1871a65 100644 (file)
@@ -2,46 +2,46 @@
 <!--
        This is an XML Schema description of the format
        output by MediaWiki's Special:Export system.
-       
+
        Version 0.2 adds optional basic file upload info support,
        which is used by our OAI export/import submodule.
-       
+
        Version 0.3 adds some site configuration information such
        as a list of defined namespaces.
-       
+
        Version 0.4 adds per-revision delete flags, log exports,
        discussion threading data, a per-page redirect flag, and
        per-namespace capitalization.
 
        Version 0.5 adds byte count per revision.
-       
+
        Version 0.6 adds a separate namespace tag, and resolves the
-       redirect target and adds a separate sha1 tag for each revision. 
-       
+       redirect target and adds a separate sha1 tag for each revision.
+
        Version 0.7 adds a unique identity constraint for both page and
        revision identifiers. See also bug 4220.
-       
+
        The canonical URL to the schema document is:
        http://www.mediawiki.org/xml/export-0.7.xsd
-       
+
        Use the namespace:
        http://www.mediawiki.org/xml/export-0.7/
 -->
 <schema xmlns="http://www.w3.org/2001/XMLSchema"
-        xmlns:mw="http://www.mediawiki.org/xml/export-0.7/"
-        targetNamespace="http://www.mediawiki.org/xml/export-0.7/"
-        elementFormDefault="qualified">
+               xmlns:mw="http://www.mediawiki.org/xml/export-0.7/"
+               targetNamespace="http://www.mediawiki.org/xml/export-0.7/"
+               elementFormDefault="qualified">
 
        <annotation>
                <documentation xml:lang="en">
                        MediaWiki's page export format
                </documentation>
        </annotation>
-       
+
        <!-- Need this to reference xml:lang -->
        <import namespace="http://www.w3.org/XML/1998/namespace"
-               schemaLocation="http://www.w3.org/2001/xml.xsd"/>
-       
+                       schemaLocation="http://www.w3.org/2001/xml.xsd"/>
+
        <!-- Our root element -->
        <element name="mediawiki" type="mw:MediaWikiType">
                <!-- Page ID contraint, see bug 4220 -->
                        <field xpath="mw:id"/>
                </unique>
        </element>
-       
+
        <complexType name="MediaWikiType">
                <sequence>
                        <element name="siteinfo" type="mw:SiteInfoType"
-                               minOccurs="0" maxOccurs="1"/>
+                                        minOccurs="0" maxOccurs="1"/>
                        <element name="page" type="mw:PageType"
-                               minOccurs="0" maxOccurs="unbounded"/>
+                                        minOccurs="0" maxOccurs="unbounded"/>
                </sequence>
                <attribute name="version" type="string" use="required"/>
                <attribute ref="xml:lang" use="required"/>
        </complexType>
-       
+
        <complexType name="SiteInfoType">
                <sequence>
                        <element name="sitename" type="string" minOccurs="0" />
                        <element name="namespaces" type="mw:NamespacesType" minOccurs="0" />
                </sequence>
        </complexType>
-       
+
        <simpleType name="CaseType">
                <restriction base="NMTOKEN">
                        <!-- Cannot have two titles differing only by case of first letter. -->
                        <!-- Default behavior through 1.5, $wgCapitalLinks = true -->
                        <enumeration value="first-letter" />
-                       
+
                        <!-- Complete title is case-sensitive -->
                        <!-- Behavior when $wgCapitalLinks = false -->
                        <enumeration value="case-sensitive" />
-                       
+
                        <!-- Cannot have non-case senstitive titles eg [[FOO]] == [[Foo]] -->
                        <!-- Not yet implemented as of MediaWiki 1.18 -->
                        <enumeration value="case-insensitive" />
                </restriction>
        </simpleType>
-       
+
        <simpleType name="DeletedFlagType">
                <restriction base="NMTOKEN">
                        <enumeration value="deleted"/>
        <complexType name="NamespacesType">
                <sequence>
                        <element name="namespace" type="mw:NamespaceType"
-                               minOccurs="0" maxOccurs="unbounded" />
+                                        minOccurs="0" maxOccurs="unbounded" />
                </sequence>
        </complexType>
-       
+
        <complexType name="NamespaceType">
                <simpleContent>
                        <extension base="string">
                        </extension>
                </simpleContent>
        </complexType>
-       
+
        <complexType name="PageType">
                <sequence>
                        <!-- Title in text form. (Using spaces, not underscores; with namespace ) -->
                        <element name="title" type="string"/>
-                       
+
                        <!-- Namespace in canonical form -->
                        <element name="ns" type="positiveInteger"/>
-                       
+
                        <!-- optional page ID number -->
                        <element name="id" type="positiveInteger" minOccurs="0"/>
-                       
+
                        <!-- flag if the current revision is a redirect -->
-                       <element name="redirect" type="string" minOccurs="0"/>  
+                       <element name="redirect" type="string" minOccurs="0"/>
 
                        <!-- comma-separated list of string tokens, if present -->
                        <element name="restrictions" type="string" minOccurs="0"/>
-                       
+
                        <!-- Zero or more sets of revision or upload data -->
                        <choice minOccurs="0" maxOccurs="unbounded">
                                <element name="revision" type="mw:RevisionType" />
                                <element name="upload" type="mw:UploadType" />
                                <element name="logitem" type="mw:LogItemType" />
                        </choice>
-                       
+
                        <!-- Zero or One sets of discussion threading data -->
                        <element name="discussionthreadinginfo" minOccurs="0" maxOccurs="1" type="mw:DiscussionThreadingInfo" />
                </sequence>
        </complexType>
-       
+
        <complexType name="RevisionType">
                <sequence>
                        <element name="id" type="positiveInteger" minOccurs="0"/>
                        <element name="text" type="mw:TextType" />
                </sequence>
        </complexType>
-       
+
        <complexType name="CommentType">
                <simpleContent>
                        <extension base="string">
                </simpleContent>
        </complexType>
 
-
        <complexType name="TextType">
                <simpleContent>
                        <extension base="string">
                                <attribute ref="xml:space" use="optional" default="preserve" />
                                <!-- This allows deleted=deleted on non-empty elements, but XSD is not omnipotent -->
-                               <attribute name="deleted" use="optional" type="mw:DeletedFlagType"/>    
+                               <attribute name="deleted" use="optional" type="mw:DeletedFlagType"/>
                                <!-- This isn't a good idea; we should be using "ID" instead of "NMTOKEN" -->
                                <!-- However, "NMTOKEN" is strictest definition that is both compatible with existing -->
                                <!-- usage ([0-9]+) and with the "ID" type. -->
                        </extension>
                </simpleContent>
        </complexType>
-       
+
        <complexType name="ContributorType">
                <sequence>
                        <element name="username" type="string" minOccurs="0"/>
                        <element name="id" type="positiveInteger" minOccurs="0" />
-                       
+
                        <element name="ip" type="string" minOccurs="0"/>
                </sequence>
                <!-- This allows deleted=deleted on non-empty elements, but XSD is not omnipotent -->
                <attribute name="deleted" use="optional" type="mw:DeletedFlagType"/>
        </complexType>
-       
+
        <complexType name="UploadType">
                <sequence>
                        <!-- Revision-style data... -->
                        <element name="timestamp" type="dateTime"/>
                        <element name="contributor" type="mw:ContributorType"/>
                        <element name="comment" type="string" minOccurs="0"/>
-                       
+
                        <!-- Filename. (Using underscores, not spaces. No 'Image:' namespace marker.) -->
                        <element name="filename" type="string"/>
-                       
+
                        <!-- URI at which this resource can be obtained -->
                        <element name="src" type="anyURI"/>
-                       
+
                        <element name="size" type="positiveInteger" />
-                       
+
                        <!-- TODO: add other metadata fields -->
                </sequence>
        </complexType>
-       
+
        <!-- Discussion threading data for LiquidThreads -->
        <complexType name="DiscussionThreadingInfo">
                <sequence>
                        <element name="ThreadType" type="string" />
                </sequence>
        </complexType>
-       
+
 </schema>