refentry.xsd 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  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: refentry.rnc 8931 2010-10-20 13:29:20Z 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:group name="db.toplevel.refsection">
  31. <xs:choice>
  32. <xs:element maxOccurs="unbounded" ref="db:refsection"/>
  33. <xs:element maxOccurs="unbounded" ref="db:refsect1"/>
  34. </xs:choice>
  35. </xs:group>
  36. <xs:group name="db.secondlevel.refsection">
  37. <xs:choice>
  38. <xs:element maxOccurs="unbounded" ref="db:refsection"/>
  39. <xs:element maxOccurs="unbounded" ref="db:refsect2"/>
  40. </xs:choice>
  41. </xs:group>
  42. <!-- ====================================================================== -->
  43. <xs:element name="db.reference.components" abstract="true">
  44. <xs:complexType>
  45. <xs:sequence>
  46. <xs:group minOccurs="0" maxOccurs="unbounded" ref="db:db.indexterm"/>
  47. <xs:group ref="db:db.refentry.info"/>
  48. <xs:element minOccurs="0" ref="db:refmeta"/>
  49. <xs:element maxOccurs="unbounded" ref="db:refnamediv"/>
  50. <xs:element minOccurs="0" ref="db:refsynopsisdiv"/>
  51. <xs:group ref="db:db.toplevel.refsection"/>
  52. </xs:sequence>
  53. <xs:attributeGroup ref="db:db.refentry.attlist"/>
  54. </xs:complexType>
  55. </xs:element>
  56. <!-- ====================================================================== -->
  57. <xs:attributeGroup name="db.reference.status.attribute">
  58. <xs:attributeGroup ref="db:db.status.attribute"/>
  59. </xs:attributeGroup>
  60. <xs:attributeGroup name="db.reference.role.attribute">
  61. <xs:attribute name="role" use="required"/>
  62. </xs:attributeGroup>
  63. <xs:attributeGroup name="db.reference.attlist">
  64. <xs:attribute name="role"/>
  65. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  66. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  67. <xs:attribute name="status"/>
  68. <xs:attribute name="label"/>
  69. </xs:attributeGroup>
  70. <xs:group name="db.reference.info">
  71. <xs:sequence>
  72. <xs:group ref="db:db._info.title.req"/>
  73. </xs:sequence>
  74. </xs:group>
  75. <xs:element name="reference" substitutionGroup="db:db.divisions">
  76. <xs:complexType>
  77. <xs:sequence>
  78. <xs:group ref="db:db.reference.info"/>
  79. <xs:element minOccurs="0" ref="db:partintro"/>
  80. <xs:element maxOccurs="unbounded" ref="db:db.reference.components"/>
  81. </xs:sequence>
  82. <xs:attributeGroup ref="db:db.reference.attlist"/>
  83. </xs:complexType>
  84. </xs:element>
  85. <!-- ====================================================================== -->
  86. <xs:attributeGroup name="db.refentry.status.attribute">
  87. <xs:attributeGroup ref="db:db.status.attribute"/>
  88. </xs:attributeGroup>
  89. <xs:attributeGroup name="db.refentry.role.attribute">
  90. <xs:attribute name="role" use="required"/>
  91. </xs:attributeGroup>
  92. <xs:attributeGroup name="db.refentry.attlist">
  93. <xs:attribute name="role"/>
  94. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  95. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  96. <xs:attribute name="status"/>
  97. <xs:attribute name="label"/>
  98. </xs:attributeGroup>
  99. <xs:group name="db.refentry.info">
  100. <xs:sequence>
  101. <xs:group ref="db:db._info.title.forbidden"/>
  102. </xs:sequence>
  103. </xs:group>
  104. <xs:element name="refentry" substitutionGroup="db:db.reference.components"/>
  105. <!-- ====================================================================== -->
  106. <xs:attributeGroup name="db.refmeta.role.attribute">
  107. <xs:attribute name="role" use="required"/>
  108. </xs:attributeGroup>
  109. <xs:attributeGroup name="db.refmeta.attlist">
  110. <xs:attribute name="role"/>
  111. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  112. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  113. </xs:attributeGroup>
  114. <xs:element name="refmeta">
  115. <xs:complexType>
  116. <xs:sequence>
  117. <xs:group minOccurs="0" maxOccurs="unbounded" ref="db:db.indexterm"/>
  118. <xs:element ref="db:refentrytitle"/>
  119. <xs:element minOccurs="0" ref="db:manvolnum"/>
  120. <xs:element minOccurs="0" maxOccurs="unbounded" ref="db:refmiscinfo"/>
  121. <xs:group minOccurs="0" maxOccurs="unbounded" ref="db:db.indexterm"/>
  122. </xs:sequence>
  123. <xs:attributeGroup ref="db:db.refmeta.attlist"/>
  124. </xs:complexType>
  125. </xs:element>
  126. <!-- ====================================================================== -->
  127. <xs:simpleType name="db.refmiscinfo.class.enumeration">
  128. <xs:restriction base="xs:token">
  129. <xs:enumeration value="source">
  130. <xs:annotation>
  131. <xs:documentation>The name of the software product or component to which this topic applies</xs:documentation>
  132. </xs:annotation>
  133. </xs:enumeration>
  134. <xs:enumeration value="version">
  135. <xs:annotation>
  136. <xs:documentation>The version of the software product or component to which this topic applies</xs:documentation>
  137. </xs:annotation>
  138. </xs:enumeration>
  139. <xs:enumeration value="manual">
  140. <xs:annotation>
  141. <xs:documentation>The section title of the reference page (e.g., User Commands)</xs:documentation>
  142. </xs:annotation>
  143. </xs:enumeration>
  144. <xs:enumeration value="sectdesc">
  145. <xs:annotation>
  146. <xs:documentation>The section title of the reference page (believed synonymous with "manual" but in wide use)</xs:documentation>
  147. </xs:annotation>
  148. </xs:enumeration>
  149. <xs:enumeration value="software">
  150. <xs:annotation>
  151. <xs:documentation>The name of the software product or component to which this topic applies (e.g., SunOS x.y; believed synonymous with "source" but in wide use)</xs:documentation>
  152. </xs:annotation>
  153. </xs:enumeration>
  154. </xs:restriction>
  155. </xs:simpleType>
  156. <xs:attributeGroup name="db.refmiscinfo.class-enum.attribute">
  157. <xs:attribute name="class" type="db:db.refmiscinfo.class.enumeration"/>
  158. </xs:attributeGroup>
  159. <xs:attributeGroup name="db.refmiscinfo.class-other.attribute">
  160. <xs:attribute name="otherclass" use="required"/>
  161. </xs:attributeGroup>
  162. <xs:attributeGroup name="db.refmiscinfo.class-other.attributes">
  163. <xs:attribute name="class" use="required">
  164. <xs:simpleType>
  165. <xs:restriction base="xs:token">
  166. <xs:enumeration value="other">
  167. <xs:annotation>
  168. <xs:documentation>Indicates that the information is some 'other' kind.</xs:documentation>
  169. </xs:annotation>
  170. </xs:enumeration>
  171. </xs:restriction>
  172. </xs:simpleType>
  173. </xs:attribute>
  174. <xs:attributeGroup ref="db:db.refmiscinfo.class-other.attribute"/>
  175. </xs:attributeGroup>
  176. <xs:attributeGroup name="db.refmiscinfo.class.attribute">
  177. <xs:attribute name="class">
  178. <xs:simpleType>
  179. <xs:union memberTypes="db:db.refmiscinfo.class.enumeration">
  180. <xs:simpleType>
  181. <xs:restriction base="xs:token">
  182. <xs:enumeration value="other">
  183. <xs:annotation>
  184. <xs:documentation>Indicates that the information is some 'other' kind.</xs:documentation>
  185. </xs:annotation>
  186. </xs:enumeration>
  187. </xs:restriction>
  188. </xs:simpleType>
  189. </xs:union>
  190. </xs:simpleType>
  191. </xs:attribute>
  192. <xs:attribute name="otherclass"/>
  193. </xs:attributeGroup>
  194. <!-- ====================================================================== -->
  195. <xs:attributeGroup name="db.refmiscinfo.role.attribute">
  196. <xs:attribute name="role" use="required"/>
  197. </xs:attributeGroup>
  198. <xs:attributeGroup name="db.refmiscinfo.attlist">
  199. <xs:attribute name="role"/>
  200. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  201. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  202. <xs:attributeGroup ref="db:db.refmiscinfo.class.attribute"/>
  203. </xs:attributeGroup>
  204. <xs:element name="refmiscinfo">
  205. <xs:complexType mixed="true">
  206. <xs:group ref="db:db._text"/>
  207. <xs:attributeGroup ref="db:db.refmiscinfo.attlist"/>
  208. </xs:complexType>
  209. </xs:element>
  210. <!-- ====================================================================== -->
  211. <xs:attributeGroup name="db.refnamediv.role.attribute">
  212. <xs:attribute name="role" use="required"/>
  213. </xs:attributeGroup>
  214. <xs:attributeGroup name="db.refnamediv.attlist">
  215. <xs:attribute name="role"/>
  216. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  217. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  218. </xs:attributeGroup>
  219. <xs:element name="refnamediv">
  220. <xs:complexType>
  221. <xs:sequence>
  222. <xs:element minOccurs="0" ref="db:refdescriptor"/>
  223. <xs:element maxOccurs="unbounded" ref="db:refname"/>
  224. <xs:element ref="db:refpurpose"/>
  225. <xs:element minOccurs="0" maxOccurs="unbounded" ref="db:refclass"/>
  226. </xs:sequence>
  227. <xs:attributeGroup ref="db:db.refnamediv.attlist"/>
  228. </xs:complexType>
  229. </xs:element>
  230. <!-- ====================================================================== -->
  231. <xs:attributeGroup name="db.refdescriptor.role.attribute">
  232. <xs:attribute name="role" use="required"/>
  233. </xs:attributeGroup>
  234. <xs:attributeGroup name="db.refdescriptor.attlist">
  235. <xs:attribute name="role"/>
  236. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  237. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  238. </xs:attributeGroup>
  239. <xs:element name="refdescriptor">
  240. <xs:complexType mixed="true">
  241. <xs:group minOccurs="0" maxOccurs="unbounded" ref="db:db.all.inlines"/>
  242. <xs:attributeGroup ref="db:db.refdescriptor.attlist"/>
  243. </xs:complexType>
  244. </xs:element>
  245. <!-- ====================================================================== -->
  246. <xs:attributeGroup name="db.refname.role.attribute">
  247. <xs:attribute name="role" use="required"/>
  248. </xs:attributeGroup>
  249. <xs:attributeGroup name="db.refname.attlist">
  250. <xs:attribute name="role"/>
  251. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  252. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  253. </xs:attributeGroup>
  254. <xs:element name="refname">
  255. <xs:complexType mixed="true">
  256. <xs:group minOccurs="0" maxOccurs="unbounded" ref="db:db.all.inlines"/>
  257. <xs:attributeGroup ref="db:db.refname.attlist"/>
  258. </xs:complexType>
  259. </xs:element>
  260. <!-- ====================================================================== -->
  261. <xs:attributeGroup name="db.refpurpose.role.attribute">
  262. <xs:attribute name="role" use="required"/>
  263. </xs:attributeGroup>
  264. <xs:attributeGroup name="db.refpurpose.attlist">
  265. <xs:attribute name="role"/>
  266. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  267. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  268. </xs:attributeGroup>
  269. <xs:element name="refpurpose">
  270. <xs:complexType mixed="true">
  271. <xs:group minOccurs="0" maxOccurs="unbounded" ref="db:db.all.inlines"/>
  272. <xs:attributeGroup ref="db:db.refpurpose.attlist"/>
  273. </xs:complexType>
  274. </xs:element>
  275. <!-- ====================================================================== -->
  276. <xs:attributeGroup name="db.refclass.role.attribute">
  277. <xs:attribute name="role" use="required"/>
  278. </xs:attributeGroup>
  279. <xs:attributeGroup name="db.refclass.attlist">
  280. <xs:attribute name="role"/>
  281. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  282. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  283. </xs:attributeGroup>
  284. <xs:element name="refclass">
  285. <xs:complexType mixed="true">
  286. <xs:sequence>
  287. <xs:element minOccurs="0" maxOccurs="unbounded" ref="db:application"/>
  288. </xs:sequence>
  289. <xs:attributeGroup ref="db:db.refclass.attlist"/>
  290. </xs:complexType>
  291. </xs:element>
  292. <!-- ====================================================================== -->
  293. <xs:attributeGroup name="db.refsynopsisdiv.role.attribute">
  294. <xs:attribute name="role" use="required"/>
  295. </xs:attributeGroup>
  296. <xs:attributeGroup name="db.refsynopsisdiv.attlist">
  297. <xs:attribute name="role"/>
  298. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  299. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  300. </xs:attributeGroup>
  301. <xs:group name="db.refsynopsisdiv.info">
  302. <xs:sequence>
  303. <xs:group ref="db:db._info"/>
  304. </xs:sequence>
  305. </xs:group>
  306. <xs:element name="refsynopsisdiv">
  307. <xs:complexType>
  308. <xs:sequence>
  309. <xs:group ref="db:db.refsynopsisdiv.info"/>
  310. <xs:choice>
  311. <xs:sequence>
  312. <xs:group maxOccurs="unbounded" ref="db:db.all.blocks"/>
  313. <xs:group minOccurs="0" ref="db:db.secondlevel.refsection"/>
  314. </xs:sequence>
  315. <xs:group ref="db:db.secondlevel.refsection"/>
  316. </xs:choice>
  317. </xs:sequence>
  318. <xs:attributeGroup ref="db:db.refsynopsisdiv.attlist"/>
  319. </xs:complexType>
  320. </xs:element>
  321. <!-- ====================================================================== -->
  322. <xs:attributeGroup name="db.refsection.status.attribute">
  323. <xs:attributeGroup ref="db:db.status.attribute"/>
  324. </xs:attributeGroup>
  325. <xs:attributeGroup name="db.refsection.role.attribute">
  326. <xs:attribute name="role" use="required"/>
  327. </xs:attributeGroup>
  328. <xs:attributeGroup name="db.refsection.attlist">
  329. <xs:attribute name="role"/>
  330. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  331. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  332. <xs:attribute name="status"/>
  333. <xs:attribute name="label"/>
  334. </xs:attributeGroup>
  335. <xs:group name="db.refsection.info">
  336. <xs:sequence>
  337. <xs:group ref="db:db._info.title.req"/>
  338. </xs:sequence>
  339. </xs:group>
  340. <xs:element name="refsection">
  341. <xs:complexType>
  342. <xs:sequence>
  343. <xs:group ref="db:db.refsection.info"/>
  344. <xs:choice>
  345. <xs:sequence>
  346. <xs:group maxOccurs="unbounded" ref="db:db.all.blocks"/>
  347. <xs:element minOccurs="0" maxOccurs="unbounded" ref="db:refsection"/>
  348. </xs:sequence>
  349. <xs:element maxOccurs="unbounded" ref="db:refsection"/>
  350. </xs:choice>
  351. </xs:sequence>
  352. <xs:attributeGroup ref="db:db.refsection.attlist"/>
  353. </xs:complexType>
  354. </xs:element>
  355. </xs:schema>