markup.xsd 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. This file is part of DocBook V5.0
  4. Copyright 1992-2008 HaL Computer Systems, Inc.,
  5. O'Reilly & Associates, Inc., ArborText, Inc., Fujitsu Software
  6. Corporation, Norman Walsh, Sun Microsystems, Inc., and the
  7. Organization for the Advancement of Structured Information
  8. Standards (OASIS).
  9. Release: $Id: pool.rnc 7466 2007-09-27 14:03:55Z nwalsh $
  10. Permission to use, copy, modify and distribute the DocBook schema
  11. and its accompanying documentation for any purpose and without fee
  12. is hereby granted in perpetuity, provided that the above copyright
  13. notice and this paragraph appear in all copies. The copyright
  14. holders make no representation about the suitability of the schema
  15. for any purpose. It is provided "as is" without expressed or implied
  16. warranty.
  17. If you modify the DocBook schema in any way, label your schema as a
  18. variant of DocBook. See the reference documentation
  19. (http://docbook.org/tdg5/en/html/ch05.html#s-notdocbook)
  20. for more information.
  21. Please direct all questions, bug reports, or suggestions for changes
  22. to the docbook@lists.oasis-open.org mailing list. For more
  23. information, see http://www.oasis-open.org/docbook/.
  24. ======================================================================
  25. -->
  26. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://docbook.org/ns/docbook" xmlns:dbs="http://docbook.org/ns/docbook-slides" xmlns:db="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
  27. <xs:import namespace="http://docbook.org/ns/docbook-slides" schemaLocation="slides.xsd"/>
  28. <xs:import namespace="http://www.w3.org/1999/xlink" schemaLocation="xlink.xsd"/>
  29. <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
  30. <xs:element name="db.markup.inlines" abstract="true"/>
  31. <!-- ====================================================================== -->
  32. <xs:attributeGroup name="db.markup.role.attribute">
  33. <xs:attribute name="role" use="required"/>
  34. </xs:attributeGroup>
  35. <xs:attributeGroup name="db.markup.attlist">
  36. <xs:attribute name="role"/>
  37. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  38. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  39. </xs:attributeGroup>
  40. <xs:element name="markup" substitutionGroup="db:db.markup.inlines">
  41. <xs:complexType mixed="true">
  42. <xs:group ref="db:db._text"/>
  43. <xs:attributeGroup ref="db:db.markup.attlist"/>
  44. </xs:complexType>
  45. </xs:element>
  46. <!-- ====================================================================== -->
  47. <xs:attributeGroup name="db.tag.role.attribute">
  48. <xs:attribute name="role" use="required"/>
  49. </xs:attributeGroup>
  50. <xs:simpleType name="db.tag.class.enumeration">
  51. <xs:restriction base="xs:token">
  52. <xs:enumeration value="attribute">
  53. <xs:annotation>
  54. <xs:documentation>An attribute</xs:documentation>
  55. </xs:annotation>
  56. </xs:enumeration>
  57. <xs:enumeration value="attvalue">
  58. <xs:annotation>
  59. <xs:documentation>An attribute value</xs:documentation>
  60. </xs:annotation>
  61. </xs:enumeration>
  62. <xs:enumeration value="element">
  63. <xs:annotation>
  64. <xs:documentation>An element</xs:documentation>
  65. </xs:annotation>
  66. </xs:enumeration>
  67. <xs:enumeration value="emptytag">
  68. <xs:annotation>
  69. <xs:documentation>An empty element tag</xs:documentation>
  70. </xs:annotation>
  71. </xs:enumeration>
  72. <xs:enumeration value="endtag">
  73. <xs:annotation>
  74. <xs:documentation>An end tag</xs:documentation>
  75. </xs:annotation>
  76. </xs:enumeration>
  77. <xs:enumeration value="genentity">
  78. <xs:annotation>
  79. <xs:documentation>A general entity</xs:documentation>
  80. </xs:annotation>
  81. </xs:enumeration>
  82. <xs:enumeration value="localname">
  83. <xs:annotation>
  84. <xs:documentation>The local name part of a qualified name</xs:documentation>
  85. </xs:annotation>
  86. </xs:enumeration>
  87. <xs:enumeration value="namespace">
  88. <xs:annotation>
  89. <xs:documentation>A namespace</xs:documentation>
  90. </xs:annotation>
  91. </xs:enumeration>
  92. <xs:enumeration value="numcharref">
  93. <xs:annotation>
  94. <xs:documentation>A numeric character reference</xs:documentation>
  95. </xs:annotation>
  96. </xs:enumeration>
  97. <xs:enumeration value="paramentity">
  98. <xs:annotation>
  99. <xs:documentation>A parameter entity</xs:documentation>
  100. </xs:annotation>
  101. </xs:enumeration>
  102. <xs:enumeration value="pi">
  103. <xs:annotation>
  104. <xs:documentation>A processing instruction</xs:documentation>
  105. </xs:annotation>
  106. </xs:enumeration>
  107. <xs:enumeration value="prefix">
  108. <xs:annotation>
  109. <xs:documentation>The prefix part of a qualified name</xs:documentation>
  110. </xs:annotation>
  111. </xs:enumeration>
  112. <xs:enumeration value="comment">
  113. <xs:annotation>
  114. <xs:documentation>An SGML comment</xs:documentation>
  115. </xs:annotation>
  116. </xs:enumeration>
  117. <xs:enumeration value="starttag">
  118. <xs:annotation>
  119. <xs:documentation>A start tag</xs:documentation>
  120. </xs:annotation>
  121. </xs:enumeration>
  122. <xs:enumeration value="xmlpi">
  123. <xs:annotation>
  124. <xs:documentation>An XML processing instruction</xs:documentation>
  125. </xs:annotation>
  126. </xs:enumeration>
  127. </xs:restriction>
  128. </xs:simpleType>
  129. <xs:attributeGroup name="db.tag.class.attribute">
  130. <xs:attribute name="class" use="required" type="db:db.tag.class.enumeration"/>
  131. </xs:attributeGroup>
  132. <xs:attributeGroup name="db.tag.namespace.attribute">
  133. <xs:attribute name="namespace" use="required" type="xs:anyURI"/>
  134. </xs:attributeGroup>
  135. <xs:attributeGroup name="db.tag.attlist">
  136. <xs:attribute name="role"/>
  137. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  138. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  139. <xs:attribute name="class" type="db:db.tag.class.enumeration"/>
  140. <xs:attribute name="namespace" type="xs:anyURI"/>
  141. </xs:attributeGroup>
  142. <xs:element name="tag" substitutionGroup="db:db.markup.inlines">
  143. <xs:complexType mixed="true">
  144. <xs:group ref="db:db._text"/>
  145. <xs:attributeGroup ref="db:db.tag.attlist"/>
  146. </xs:complexType>
  147. </xs:element>
  148. <!-- ====================================================================== -->
  149. <xs:attributeGroup name="db.symbol.class.attribute">
  150. <xs:attribute name="class" use="required">
  151. <xs:simpleType>
  152. <xs:restriction base="xs:token">
  153. <xs:enumeration value="limit">
  154. <xs:annotation>
  155. <xs:documentation>The value is a limit of some kind</xs:documentation>
  156. </xs:annotation>
  157. </xs:enumeration>
  158. </xs:restriction>
  159. </xs:simpleType>
  160. </xs:attribute>
  161. </xs:attributeGroup>
  162. <xs:attributeGroup name="db.symbol.role.attribute">
  163. <xs:attribute name="role" use="required"/>
  164. </xs:attributeGroup>
  165. <xs:attributeGroup name="db.symbol.attlist">
  166. <xs:attribute name="role"/>
  167. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  168. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  169. <xs:attribute name="class">
  170. <xs:simpleType>
  171. <xs:restriction base="xs:token">
  172. <xs:enumeration value="limit">
  173. <xs:annotation>
  174. <xs:documentation>The value is a limit of some kind</xs:documentation>
  175. </xs:annotation>
  176. </xs:enumeration>
  177. </xs:restriction>
  178. </xs:simpleType>
  179. </xs:attribute>
  180. </xs:attributeGroup>
  181. <xs:element name="symbol" substitutionGroup="db:db.markup.inlines">
  182. <xs:complexType mixed="true">
  183. <xs:group ref="db:db._text"/>
  184. <xs:attributeGroup ref="db:db.symbol.attlist"/>
  185. </xs:complexType>
  186. </xs:element>
  187. <!-- ====================================================================== -->
  188. <xs:attributeGroup name="db.token.role.attribute">
  189. <xs:attribute name="role" use="required"/>
  190. </xs:attributeGroup>
  191. <xs:attributeGroup name="db.token.attlist">
  192. <xs:attribute name="role"/>
  193. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  194. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  195. </xs:attributeGroup>
  196. <xs:element name="token" substitutionGroup="db:db.markup.inlines">
  197. <xs:complexType mixed="true">
  198. <xs:group ref="db:db._text"/>
  199. <xs:attributeGroup ref="db:db.token.attlist"/>
  200. </xs:complexType>
  201. </xs:element>
  202. <!-- ====================================================================== -->
  203. <xs:attributeGroup name="db.literal.role.attribute">
  204. <xs:attribute name="role" use="required"/>
  205. </xs:attributeGroup>
  206. <xs:attributeGroup name="db.literal.attlist">
  207. <xs:attribute name="role"/>
  208. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  209. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  210. </xs:attributeGroup>
  211. <xs:element name="literal" substitutionGroup="db:db.markup.inlines">
  212. <xs:complexType mixed="true">
  213. <xs:group ref="db:db._text"/>
  214. <xs:attributeGroup ref="db:db.literal.attlist"/>
  215. </xs:complexType>
  216. </xs:element>
  217. <!-- ====================================================================== -->
  218. <xs:attributeGroup name="code.language.attribute">
  219. <xs:attribute name="language" use="required"/>
  220. </xs:attributeGroup>
  221. <xs:attributeGroup name="db.code.role.attribute">
  222. <xs:attribute name="role" use="required"/>
  223. </xs:attributeGroup>
  224. <xs:attributeGroup name="db.code.attlist">
  225. <xs:attribute name="role"/>
  226. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  227. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  228. <xs:attribute name="language"/>
  229. </xs:attributeGroup>
  230. <xs:element name="code" substitutionGroup="db:db.markup.inlines">
  231. <xs:complexType mixed="true">
  232. <xs:choice minOccurs="0" maxOccurs="unbounded">
  233. <xs:group ref="db:db.programming.inlines"/>
  234. <xs:group ref="db:db._text"/>
  235. </xs:choice>
  236. <xs:attributeGroup ref="db:db.code.attlist"/>
  237. </xs:complexType>
  238. </xs:element>
  239. <!-- ====================================================================== -->
  240. <xs:attributeGroup name="db.constant.class.attribute">
  241. <xs:attribute name="class" use="required">
  242. <xs:simpleType>
  243. <xs:restriction base="xs:token">
  244. <xs:enumeration value="limit">
  245. <xs:annotation>
  246. <xs:documentation>The value is a limit of some kind</xs:documentation>
  247. </xs:annotation>
  248. </xs:enumeration>
  249. </xs:restriction>
  250. </xs:simpleType>
  251. </xs:attribute>
  252. </xs:attributeGroup>
  253. <xs:attributeGroup name="db.constant.role.attribute">
  254. <xs:attribute name="role" use="required"/>
  255. </xs:attributeGroup>
  256. <xs:attributeGroup name="db.constant.attlist">
  257. <xs:attribute name="role"/>
  258. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  259. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  260. <xs:attribute name="class">
  261. <xs:simpleType>
  262. <xs:restriction base="xs:token">
  263. <xs:enumeration value="limit">
  264. <xs:annotation>
  265. <xs:documentation>The value is a limit of some kind</xs:documentation>
  266. </xs:annotation>
  267. </xs:enumeration>
  268. </xs:restriction>
  269. </xs:simpleType>
  270. </xs:attribute>
  271. </xs:attributeGroup>
  272. <xs:element name="constant" substitutionGroup="db:db.markup.inlines">
  273. <xs:complexType mixed="true">
  274. <xs:group ref="db:db._text"/>
  275. <xs:attributeGroup ref="db:db.constant.attlist"/>
  276. </xs:complexType>
  277. </xs:element>
  278. </xs:schema>