From d2e8dd6251552aa5e9c0a35eb94f2eaa91a5d42a Mon Sep 17 00:00:00 2001 From: Elvis Stansvik Date: Fri, 25 May 2012 09:44:26 +0200 Subject: [PATCH] (bug 4220) dump schema get unique contraints on id This patch was made in December 2005 by Elvis Stansvik on bug 4220, you will find below the rewritten introduction for his patch contribution. """ The XML Schema for the XML dump format used by MediaWiki has no constraints for the page and revision identifiers. This patch solve that issue by enforcing the constraint in the XSD. It most probably makes sense, since I think that: - some parsers capable of Schema validation can work more efficiently if constraints are in the XSD. - Another reason is that (however unlikely) some other software might output files in this format are not obliged to keep the IDs unique, according the the XSD in its current form. """ Updating the http://www.mediawiki.org/xml/export-0.7/ public URL is tracked by bug 37111. Change-Id: Idb82fe620c3395acaa8f051b4d4d0d770cd33d44 --- CREDITS | 1 + RELEASE-NOTES-1.20 | 2 + docs/export-0.7.xsd | 240 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 243 insertions(+) create mode 100644 docs/export-0.7.xsd diff --git a/CREDITS b/CREDITS index dcd4a43309..89154a3cd5 100644 --- a/CREDITS +++ b/CREDITS @@ -109,6 +109,7 @@ following names for their contribution to the product. * David Baumgarten * Denny Vrandecic * Edward Z. Yang +* Elvis Stansvik * Erwin Dokter * FunPika * fomafix diff --git a/RELEASE-NOTES-1.20 b/RELEASE-NOTES-1.20 index e40ec30c5a..b5e7cce630 100644 --- a/RELEASE-NOTES-1.20 +++ b/RELEASE-NOTES-1.20 @@ -63,6 +63,8 @@ upgrade PHP if you have not done so prior to upgrading MediaWiki. Arguments signature has changed. First arguments is now an options object of which 'config' can be a property. Previously 'config' itself was the first and only argument. * New getCreator and getOldestRevision methods added to WikiPage class +* (bug 4220) the XML dump format schema now have unique identity constraints + for page and revision identifiers. Patch by Elvis Stansvik. === Bug fixes in 1.20 === * (bug 30245) Use the correct way to construct a log page title. diff --git a/docs/export-0.7.xsd b/docs/export-0.7.xsd new file mode 100644 index 0000000000..0b2a9db3d2 --- /dev/null +++ b/docs/export-0.7.xsd @@ -0,0 +1,240 @@ + + + + + + + MediaWiki's page export format + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- 2.20.1