Last modified: 2009-10-08 17:51:15 UTC
Created attachment 6418 [details] Updates to export.xsd The XML schema for exports (docs/export-0.3.xsd) has not been updated to include the <redirect/> flag, added in r53271. Which means the current dumps (on http://download.wikimedia.org/backup-index.html) are not valid. And, XmlDumpWriter in Export.php already notes “FIXME: upgrade to 0.4 when updated XSD is ready, for the revision deletion bits”, since the revision deletion support in export files has not been noted in the schema, too. (Since r13224, yikes!) And finally, the (unfinished?) log exports from r40968 are also missing in the XSD. See the attachment – it is a unified diff from export-0.3.xsd to export-0.4.xsd, I am not sure, what the policy on those versions should be, so I hope this format is understandable (change the versioning as suitable).
Cf bug 13750. Completely different issue, but also calls for an update to the schema. Might be worth getting that committed and bundling all these schema changes into v0.4.
Note that there are some LiquidThreads bits that will soon be also added to the XML schema.
Assigning to Tomasz.
Updates from Mormegil added on r54472.
If the updates have been added as export-0.4.xsd, changing XmlDumpWriter::schemaVersion to return "0.4" (according to the TODO note there) would probably be wise. (See includes/Export.php, line 351.)
We'll certainly do that but there are a couple of changes pending that i'm going to wait on before officially bumping the version. Look for it to happen by the end of the week.
Picking this up again. Checked in new examples with r56108. Now time to verify the xsd against an actual parser.
Made a couple more tweaks to export-0.4.xsd and now it passes $dom->schemaValidate().
Version bump. Waiting on deployment. http://www.mediawiki.org/wiki/Special:Code/MediaWiki/56612
Poke
and as of Wed Oct 7 00:35:32 2009 http://svn.wikimedia.org/viewvc/mediawiki?view=rev&revision=57448 the change is on the deployment branch. It's also made it's way onto the cluster. Resolving.