sitelist-1.0.xsd 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!--
  3. This is an XML Schema description of the format
  4. used by MediaWiki's exportSites.php and importSites.php
  5. scripts.
  6. -->
  7. <schema xmlns="http://www.w3.org/2001/XMLSchema"
  8. xmlns:mwsl="http://www.mediawiki.org/xml/sitelist-1.0/"
  9. targetNamespace="http://www.mediawiki.org/xml/sitelist-1.0/"
  10. elementFormDefault="qualified">
  11. <annotation>
  12. <documentation xml:lang="en">
  13. MediaWiki's export format for site definitions.
  14. </documentation>
  15. </annotation>
  16. <!-- Our root element -->
  17. <element name="sites" type="mwsl:MediaWikiSiteListType">
  18. <unique name="GlobalIDConstraint">
  19. <selector xpath="mwsl:Site" />
  20. <field xpath="mwsl:GlobalID" />
  21. </unique>
  22. </element>
  23. <simpleType name="EmptyTagType">
  24. <restriction base="string">
  25. <length value="0"/>
  26. </restriction>
  27. </simpleType>
  28. <complexType name="TypedIDType">
  29. <simpleContent>
  30. <extension base="NCName">
  31. <attribute name="type" use="required" type="NCName" />
  32. </extension>
  33. </simpleContent>
  34. </complexType>
  35. <complexType name="TypedURIType">
  36. <simpleContent>
  37. <extension base="anyURI">
  38. <attribute name="type" use="required" type="NCName" />
  39. </extension>
  40. </simpleContent>
  41. </complexType>
  42. <complexType name="MediaWikiSiteListType">
  43. <sequence>
  44. <element name="site" type="mwsl:SiteType"
  45. minOccurs="0" maxOccurs="unbounded" />
  46. </sequence>
  47. <attribute name="version" type="string" use="optional" />
  48. </complexType>
  49. <complexType name="SiteType">
  50. <choice maxOccurs="unbounded">
  51. <element name="globalid" type="ID" minOccurs="1" maxOccurs="1" />
  52. <element name="localid" type="mwsl:TypedIDType" minOccurs="0" />
  53. <element name="group" type="NCName" minOccurs="0" maxOccurs="1" />
  54. <element name="source" type="NCName" minOccurs="0" maxOccurs="1" />
  55. <element name="forward" type="mwsl:EmptyTagType" minOccurs="0" maxOccurs="1" />
  56. <element name="path" type="mwsl:TypedURIType" minOccurs="0" />
  57. </choice>
  58. <attribute name="type" use="optional" type="NCName" />
  59. </complexType>
  60. </schema>