changelog093_1.xsd 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. <?xml version="1.0"?>
  2. <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  3. xmlns:tns="http://www.blackperl.com/XML/ChangeLog"
  4. targetNamespace="http://www.blackperl.com/XML/ChangeLog"
  5. elementFormDefault="qualified" attributeFormDefault="unqualified"
  6. version="0.93" id="changelog0.93">
  7. <!--
  8. Refer to this schema using the following namespace:
  9. http://www.blackperl.com/XML/ChangeLog
  10. -->
  11. <xsd:annotation>
  12. <xsd:documentation>
  13. A description of an XML application which itemizes changes over the
  14. life-span of a software project. Changes are tracked by releases, with a
  15. granularity of individual items made up of files that were affected.
  16. </xsd:documentation>
  17. <xsd:appinfo xmlns:dc="http://purl.org/dc/elements/1.1/">
  18. <dc:creator>Randy J. Ray (rjray@blackperl.com)</dc:creator>
  19. <dc:date>2004-11-22</dc:date>
  20. <dc:subject>changelog,xml,schema</dc:subject>
  21. <dc:description>
  22. An XML Schema declaration describing an XML expression of software
  23. project change-logs.
  24. </dc:description>
  25. </xsd:appinfo>
  26. <xsd:appinfo>
  27. <rdf:RDF xmlns:cc="http://web.resource.org/cc/"
  28. xmlns:dc="http://purl.org/dc/elements/1.1/"
  29. xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  30. <cc:Work rdf:about="">
  31. <dc:title>XML Schema for Changelogs</dc:title>
  32. <dc:description>
  33. An XML Schema declaration describing an XML expression of software
  34. project change-logs.
  35. </dc:description>
  36. <dc:creator>
  37. <cc:Agent>
  38. <dc:title>Randy J. Ray</dc:title>
  39. </cc:Agent>
  40. </dc:creator>
  41. <dc:rights>
  42. <cc:Agent>
  43. <dc:title>Randy J. Ray</dc:title>
  44. </cc:Agent>
  45. </dc:rights>
  46. <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" />
  47. <cc:license rdf:resource="http://creativecommons.org/licenses/by-sa/2.0/" />
  48. </cc:Work>
  49. <cc:License rdf:about="http://creativecommons.org/licenses/by-sa/2.0/">
  50. <cc:permits rdf:resource="http://web.resource.org/cc/Reproduction" />
  51. <cc:permits rdf:resource="http://web.resource.org/cc/Distribution" />
  52. <cc:requires rdf:resource="http://web.resource.org/cc/Notice" />
  53. <cc:requires rdf:resource="http://web.resource.org/cc/Attribution" />
  54. <cc:permits rdf:resource="http://web.resource.org/cc/DerivativeWorks" />
  55. <cc:requires rdf:resource="http://web.resource.org/cc/ShareAlike" />
  56. </cc:License>
  57. </rdf:RDF>
  58. </xsd:appinfo>
  59. </xsd:annotation>
  60. <xsd:complexType id="informationType" name="informationType"
  61. mixed="true">
  62. <xsd:annotation>
  63. <xsd:documentation>
  64. An open-ended container type for including version-control information
  65. at various levels within the changelog structure. This is the only
  66. type which explicitly permits content from foreign namespaces.
  67. </xsd:documentation>
  68. </xsd:annotation>
  69. <xsd:sequence maxOccurs="unbounded" minOccurs="0">
  70. <xsd:any processContents="lax" />
  71. </xsd:sequence>
  72. <xsd:attribute name="source" type="xsd:anyURI" />
  73. <xsd:anyAttribute namespace="##other" processContents="lax" />
  74. </xsd:complexType>
  75. <xsd:complexType id="descriptionType" name="descriptionType">
  76. <xsd:annotation>
  77. <xsd:documentation>
  78. A description block is used to document everything from specific change
  79. items to the release as a whole.
  80. </xsd:documentation>
  81. </xsd:annotation>
  82. <xsd:simpleContent>
  83. <xsd:extension base="xsd:string">
  84. <xsd:attribute default="en-US" name="lang" type="xsd:language" />
  85. </xsd:extension>
  86. </xsd:simpleContent>
  87. </xsd:complexType>
  88. <xsd:simpleType id="versionString" name="versionString">
  89. <xsd:annotation>
  90. <xsd:documentation>
  91. The versionString type is applied to attributes that describe simple
  92. revision-number strings. It only supports CVS (RCS) styled version
  93. numbers.
  94. </xsd:documentation>
  95. </xsd:annotation>
  96. <xsd:restriction base="xsd:string">
  97. <xsd:pattern value="\d+(\.\d+)*" />
  98. </xsd:restriction>
  99. </xsd:simpleType>
  100. <xsd:complexType id="fileType" name="fileType">
  101. <xsd:annotation>
  102. <xsd:documentation>
  103. The fileType definition is used for the file element, a part of the
  104. itemType declaration. It is defined separately so that it can be
  105. referred to from multiple places.
  106. </xsd:documentation>
  107. </xsd:annotation>
  108. <xsd:sequence maxOccurs="1" minOccurs="0">
  109. <xsd:element name="description" type="tns:descriptionType"
  110. minOccurs="0" maxOccurs="unbounded" />
  111. <xsd:element maxOccurs="1" minOccurs="0" name="vc-information"
  112. type="tns:informationType" nillable="true" />
  113. </xsd:sequence>
  114. <xsd:attribute name="path" type="xsd:string" use="required" />
  115. <xsd:attribute name="revision" type="tns:versionString" use="optional"/>
  116. <xsd:attribute name="author" type="xsd:NMTOKEN" use="optional" />
  117. <xsd:attribute name="action" use="optional">
  118. <xsd:simpleType>
  119. <xsd:restriction base="xsd:NMTOKEN">
  120. <xsd:enumeration value="ADD" />
  121. <xsd:enumeration value="DELETE" />
  122. <xsd:enumeration value="RESTORE" />
  123. <xsd:enumeration value="MOVE" />
  124. </xsd:restriction>
  125. </xsd:simpleType>
  126. </xsd:attribute>
  127. <xsd:attribute name="note" type="xsd:string" use="optional" />
  128. </xsd:complexType>
  129. <xsd:element id="file" name="file" nillable="true" type="tns:fileType">
  130. <xsd:annotation>
  131. <xsd:documentation>
  132. A file element contains a single block representing a fileType.
  133. </xsd:documentation>
  134. </xsd:annotation>
  135. <xsd:unique name="fileDescriptionLangConstraint">
  136. <xsd:selector xpath="tns:description" />
  137. <xsd:field xpath="@lang" />
  138. </xsd:unique>
  139. </xsd:element>
  140. <xsd:complexType id="itemType" name="itemType">
  141. <xsd:annotation>
  142. <xsd:documentation>
  143. These element blocks define a single change-item within the scope of a
  144. given release. A change-item consists of one or more files that were
  145. affected, and a description of the change itself.
  146. </xsd:documentation>
  147. </xsd:annotation>
  148. <xsd:sequence>
  149. <xsd:element maxOccurs="1" minOccurs="0" name="vc-information"
  150. type="tns:informationType" nillable="true" />
  151. <xsd:choice minOccurs="1" maxOccurs="1">
  152. <xsd:element ref="tns:file" />
  153. <xsd:element name="fileset" nillable="false">
  154. <xsd:complexType>
  155. <xsd:sequence>
  156. <xsd:element maxOccurs="1" minOccurs="0" name="vc-information"
  157. type="tns:informationType" nillable="true" />
  158. <xsd:element maxOccurs="unbounded" minOccurs="1" ref="tns:file" />
  159. </xsd:sequence>
  160. </xsd:complexType>
  161. </xsd:element>
  162. </xsd:choice>
  163. <xsd:element name="description" type="tns:descriptionType"
  164. minOccurs="1" maxOccurs="unbounded" />
  165. </xsd:sequence>
  166. <xsd:attribute name="id" type="xsd:ID" />
  167. </xsd:complexType>
  168. <xsd:element id="item" name="item" nillable="false" type="tns:itemType">
  169. <xsd:annotation>
  170. <xsd:documentation>
  171. An item element contains a single block representing an itemType.
  172. </xsd:documentation>
  173. </xsd:annotation>
  174. <xsd:unique name="itemDescriptionLangConstraint">
  175. <xsd:selector xpath="tns:description" />
  176. <xsd:field xpath="@lang" />
  177. </xsd:unique>
  178. </xsd:element>
  179. <xsd:complexType id="releaseType" name="releaseType">
  180. <xsd:annotation>
  181. <xsd:documentation>
  182. The release is the primary piece of information that a changelog
  183. collects and organizes. A release contains an optional description,
  184. followed by one or more item blocks. The release element is also the
  185. greatest user of attributes besides the file element. A release element
  186. must have at least a "version" attribute, uniquely identifying the
  187. release itself. Additionally, it may have "tag" to associate it with
  188. a release-system tag and "date" to specify the date the release was
  189. created.
  190. </xsd:documentation>
  191. </xsd:annotation>
  192. <xsd:sequence>
  193. <xsd:element name="description" type="tns:descriptionType"
  194. minOccurs="0" maxOccurs="unbounded" />
  195. <xsd:element maxOccurs="unbounded" minOccurs="0" name="information"
  196. type="tns:informationType" nillable="true" />
  197. <xsd:element maxOccurs="1" minOccurs="0" name="vc-information"
  198. type="tns:informationType" nillable="true" />
  199. <xsd:element maxOccurs="unbounded" minOccurs="1" ref="tns:item" />
  200. </xsd:sequence>
  201. <xsd:attribute name="version" type="xsd:token" use="required" />
  202. <xsd:attribute name="tag" type="xsd:NMTOKEN" />
  203. <xsd:attribute name="date" type="xsd:token" use="required" /> <!-- type="xsd:dateTime" -->
  204. </xsd:complexType>
  205. <xsd:element id="release" name="release" nillable="false"
  206. type="tns:releaseType">
  207. <xsd:annotation>
  208. <xsd:documentation>
  209. </xsd:documentation>
  210. </xsd:annotation>
  211. <xsd:unique name="releaseDescriptionLangConstraint">
  212. <xsd:selector xpath="tns:description" />
  213. <xsd:field xpath="@lang" />
  214. </xsd:unique>
  215. </xsd:element>
  216. <xsd:element id="changelog" name="changelog" nillable="false">
  217. <xsd:annotation>
  218. <xsd:documentation>
  219. The changelog element is intended as the document root element. It
  220. contains an overview element (identical in structure to the description
  221. element, but named differently to prevent collision in XPath queries)
  222. and one or more release blocks.
  223. </xsd:documentation>
  224. </xsd:annotation>
  225. <xsd:complexType>
  226. <xsd:sequence>
  227. <xsd:element maxOccurs="unbounded" minOccurs="1" name="description"
  228. nillable="false" type="tns:descriptionType" />
  229. <xsd:element maxOccurs="unbounded" minOccurs="0" name="information"
  230. type="tns:informationType" nillable="true" />
  231. <xsd:element maxOccurs="1" minOccurs="0" name="vc-information"
  232. type="tns:informationType" nillable="true" />
  233. <xsd:element maxOccurs="unbounded" minOccurs="1" ref="tns:release" />
  234. </xsd:sequence>
  235. </xsd:complexType>
  236. <xsd:unique name="changelogDescriptionLangConstraint">
  237. <xsd:selector xpath="tns:description" />
  238. <xsd:field xpath="@lang" />
  239. </xsd:unique>
  240. </xsd:element>
  241. </xsd:schema>