Made it so that our existing 0.4 exports validate
authorRob Lanphier <robla@users.mediawiki.org>
Sun, 9 Jan 2011 02:12:35 +0000 (02:12 +0000)
committerRob Lanphier <robla@users.mediawiki.org>
Sun, 9 Jan 2011 02:12:35 +0000 (02:12 +0000)
docs/export-0.4.xsd

index 1a554f8..3e7f2ea 100644 (file)
@@ -91,6 +91,7 @@
                <simpleContent>
                        <extension base="string">
                                <attribute name="key" type="integer" />
+                               <attribute name="case" type="mw:CaseType" />
                        </extension>
                </simpleContent>
        </complexType>
                                <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"/>    
+                               <!-- 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. -->
+                               <attribute name="id" type="NMTOKEN"/>
                        </extension>
                </simpleContent>
        </complexType>