os.xsd 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369
  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.synopsis.blocks" abstract="true"/>
  31. <xs:element name="db.os.inlines" abstract="true"/>
  32. <!-- ====================================================================== -->
  33. <!-- ====================================================================== -->
  34. <xs:attributeGroup name="db.prompt.role.attribute">
  35. <xs:attribute name="role" use="required"/>
  36. </xs:attributeGroup>
  37. <xs:attributeGroup name="db.prompt.attlist">
  38. <xs:attribute name="role"/>
  39. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  40. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  41. </xs:attributeGroup>
  42. <xs:element name="prompt" substitutionGroup="db:db.os.inlines">
  43. <xs:complexType mixed="true">
  44. <xs:group minOccurs="0" maxOccurs="unbounded" ref="db:db.prompt.inlines"/>
  45. <xs:attributeGroup ref="db:db.prompt.attlist"/>
  46. </xs:complexType>
  47. </xs:element>
  48. <!-- ====================================================================== -->
  49. <xs:attributeGroup name="db.envar.role.attribute">
  50. <xs:attribute name="role" use="required"/>
  51. </xs:attributeGroup>
  52. <xs:attributeGroup name="db.envar.attlist">
  53. <xs:attribute name="role"/>
  54. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  55. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  56. </xs:attributeGroup>
  57. <xs:element name="envar" substitutionGroup="db:db.os.inlines">
  58. <xs:complexType mixed="true">
  59. <xs:group ref="db:db._text"/>
  60. <xs:attributeGroup ref="db:db.envar.attlist"/>
  61. </xs:complexType>
  62. </xs:element>
  63. <!-- ====================================================================== -->
  64. <xs:simpleType name="db.filename.class.enumeration">
  65. <xs:restriction base="xs:token">
  66. <xs:enumeration value="devicefile">
  67. <xs:annotation>
  68. <xs:documentation>A device</xs:documentation>
  69. </xs:annotation>
  70. </xs:enumeration>
  71. <xs:enumeration value="directory">
  72. <xs:annotation>
  73. <xs:documentation>A directory</xs:documentation>
  74. </xs:annotation>
  75. </xs:enumeration>
  76. <xs:enumeration value="extension">
  77. <xs:annotation>
  78. <xs:documentation>A filename extension</xs:documentation>
  79. </xs:annotation>
  80. </xs:enumeration>
  81. <xs:enumeration value="headerfile">
  82. <xs:annotation>
  83. <xs:documentation>A header file (as for a programming language)</xs:documentation>
  84. </xs:annotation>
  85. </xs:enumeration>
  86. <xs:enumeration value="libraryfile">
  87. <xs:annotation>
  88. <xs:documentation>A library file</xs:documentation>
  89. </xs:annotation>
  90. </xs:enumeration>
  91. <xs:enumeration value="partition">
  92. <xs:annotation>
  93. <xs:documentation>A partition (as of a hard disk)</xs:documentation>
  94. </xs:annotation>
  95. </xs:enumeration>
  96. <xs:enumeration value="symlink">
  97. <xs:annotation>
  98. <xs:documentation>A symbolic link</xs:documentation>
  99. </xs:annotation>
  100. </xs:enumeration>
  101. </xs:restriction>
  102. </xs:simpleType>
  103. <xs:attributeGroup name="db.filename.class.attribute">
  104. <xs:attribute name="class" use="required" type="db:db.filename.class.enumeration"/>
  105. </xs:attributeGroup>
  106. <xs:attributeGroup name="db.filename.path.attribute">
  107. <xs:attribute name="path" use="required"/>
  108. </xs:attributeGroup>
  109. <xs:attributeGroup name="db.filename.role.attribute">
  110. <xs:attribute name="role" use="required"/>
  111. </xs:attributeGroup>
  112. <xs:attributeGroup name="db.filename.attlist">
  113. <xs:attribute name="role"/>
  114. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  115. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  116. <xs:attribute name="path"/>
  117. <xs:attribute name="class" type="db:db.filename.class.enumeration"/>
  118. </xs:attributeGroup>
  119. <xs:element name="filename" substitutionGroup="db:db.os.inlines">
  120. <xs:complexType mixed="true">
  121. <xs:group ref="db:db._text"/>
  122. <xs:attributeGroup ref="db:db.filename.attlist"/>
  123. </xs:complexType>
  124. </xs:element>
  125. <!-- ====================================================================== -->
  126. <xs:attributeGroup name="db.command.role.attribute">
  127. <xs:attribute name="role" use="required"/>
  128. </xs:attributeGroup>
  129. <xs:attributeGroup name="db.command.attlist">
  130. <xs:attribute name="role"/>
  131. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  132. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  133. </xs:attributeGroup>
  134. <xs:element name="command" substitutionGroup="db:db.os.inlines">
  135. <xs:complexType mixed="true">
  136. <xs:group ref="db:db._text"/>
  137. <xs:attributeGroup ref="db:db.command.attlist"/>
  138. </xs:complexType>
  139. </xs:element>
  140. <!-- ====================================================================== -->
  141. <xs:attributeGroup name="db.computeroutput.role.attribute">
  142. <xs:attribute name="role" use="required"/>
  143. </xs:attributeGroup>
  144. <xs:attributeGroup name="db.computeroutput.attlist">
  145. <xs:attribute name="role"/>
  146. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  147. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  148. </xs:attributeGroup>
  149. <xs:element name="computeroutput" substitutionGroup="db:db.os.inlines">
  150. <xs:complexType mixed="true">
  151. <xs:group minOccurs="0" maxOccurs="unbounded" ref="db:db.computeroutput.inlines"/>
  152. <xs:attributeGroup ref="db:db.computeroutput.attlist"/>
  153. </xs:complexType>
  154. </xs:element>
  155. <!-- ====================================================================== -->
  156. <xs:attributeGroup name="db.userinput.role.attribute">
  157. <xs:attribute name="role" use="required"/>
  158. </xs:attributeGroup>
  159. <xs:attributeGroup name="db.userinput.attlist">
  160. <xs:attribute name="role"/>
  161. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  162. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  163. </xs:attributeGroup>
  164. <xs:element name="userinput" substitutionGroup="db:db.os.inlines">
  165. <xs:complexType mixed="true">
  166. <xs:group minOccurs="0" maxOccurs="unbounded" ref="db:db.userinput.inlines"/>
  167. <xs:attributeGroup ref="db:db.userinput.attlist"/>
  168. </xs:complexType>
  169. </xs:element>
  170. <!-- ====================================================================== -->
  171. <xs:attributeGroup name="db.cmdsynopsis.role.attribute">
  172. <xs:attribute name="role" use="required"/>
  173. </xs:attributeGroup>
  174. <xs:attributeGroup name="db.cmdsynopsis.sepchar.attribute">
  175. <xs:attribute name="sepchar" use="required"/>
  176. </xs:attributeGroup>
  177. <xs:attributeGroup name="db.cmdsynopsis.cmdlength.attribute">
  178. <xs:attribute name="cmdlength" use="required"/>
  179. </xs:attributeGroup>
  180. <xs:attributeGroup name="db.cmdsynopsis.label.attribute">
  181. <xs:attributeGroup ref="db:db.label.attribute"/>
  182. </xs:attributeGroup>
  183. <xs:attributeGroup name="db.cmdsynopsis.attlist">
  184. <xs:attribute name="role"/>
  185. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  186. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  187. <xs:attribute name="sepchar"/>
  188. <xs:attribute name="cmdlength"/>
  189. <xs:attribute name="label"/>
  190. </xs:attributeGroup>
  191. <xs:group name="db.cmdsynopsis.info">
  192. <xs:sequence>
  193. <xs:group ref="db:db._info.title.forbidden"/>
  194. </xs:sequence>
  195. </xs:group>
  196. <xs:element name="cmdsynopsis" substitutionGroup="db:db.synopsis.blocks">
  197. <xs:complexType>
  198. <xs:sequence>
  199. <xs:group ref="db:db.cmdsynopsis.info"/>
  200. <xs:choice maxOccurs="unbounded">
  201. <xs:element ref="db:command"/>
  202. <xs:element ref="db:arg"/>
  203. <xs:group ref="db:db.group"/>
  204. <xs:element ref="db:sbr"/>
  205. </xs:choice>
  206. <xs:element minOccurs="0" maxOccurs="unbounded" ref="db:synopfragment"/>
  207. </xs:sequence>
  208. <xs:attributeGroup ref="db:db.cmdsynopsis.attlist"/>
  209. </xs:complexType>
  210. </xs:element>
  211. <!-- ====================================================================== -->
  212. <xs:simpleType name="db.rep.enumeration">
  213. <xs:restriction base="xs:token">
  214. <xs:enumeration value="norepeat">
  215. <xs:annotation>
  216. <xs:documentation>Can not be repeated.</xs:documentation>
  217. </xs:annotation>
  218. </xs:enumeration>
  219. <xs:enumeration value="repeat">
  220. <xs:annotation>
  221. <xs:documentation>Can be repeated.</xs:documentation>
  222. </xs:annotation>
  223. </xs:enumeration>
  224. </xs:restriction>
  225. </xs:simpleType>
  226. <xs:attributeGroup name="db.rep.attribute">
  227. <xs:attribute name="rep" use="required" type="db:db.rep.enumeration"/>
  228. </xs:attributeGroup>
  229. <xs:simpleType name="db.choice.enumeration">
  230. <xs:restriction base="xs:token">
  231. <xs:enumeration value="opt">
  232. <xs:annotation>
  233. <xs:documentation>Formatted to indicate that it is optional.</xs:documentation>
  234. </xs:annotation>
  235. </xs:enumeration>
  236. <xs:enumeration value="plain">
  237. <xs:annotation>
  238. <xs:documentation>Formatted without indication.</xs:documentation>
  239. </xs:annotation>
  240. </xs:enumeration>
  241. <xs:enumeration value="req">
  242. <xs:annotation>
  243. <xs:documentation>Formatted to indicate that it is required.</xs:documentation>
  244. </xs:annotation>
  245. </xs:enumeration>
  246. </xs:restriction>
  247. </xs:simpleType>
  248. <xs:attributeGroup name="db.choice.opt.attribute">
  249. <xs:attribute name="choice" use="required" type="db:db.choice.enumeration"/>
  250. </xs:attributeGroup>
  251. <xs:attributeGroup name="db.choice.req.attribute">
  252. <xs:attribute name="choice" use="required" type="db:db.choice.enumeration"/>
  253. </xs:attributeGroup>
  254. <!-- ====================================================================== -->
  255. <xs:attributeGroup name="db.arg.role.attribute">
  256. <xs:attribute name="role" use="required"/>
  257. </xs:attributeGroup>
  258. <xs:attributeGroup name="db.arg.rep.attribute">
  259. <xs:attributeGroup ref="db:db.rep.attribute"/>
  260. </xs:attributeGroup>
  261. <xs:attributeGroup name="db.arg.choice.attribute">
  262. <xs:attributeGroup ref="db:db.choice.opt.attribute"/>
  263. </xs:attributeGroup>
  264. <xs:attributeGroup name="db.arg.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:attribute name="rep" type="db:db.rep.enumeration"/>
  269. <xs:attribute name="choice" type="db:db.choice.enumeration"/>
  270. </xs:attributeGroup>
  271. <xs:element name="arg">
  272. <xs:complexType mixed="true">
  273. <xs:choice minOccurs="0" maxOccurs="unbounded">
  274. <xs:group ref="db:db._text"/>
  275. <xs:element ref="db:arg"/>
  276. <xs:group ref="db:db.group"/>
  277. <xs:element ref="db:option"/>
  278. <xs:element ref="db:synopfragmentref"/>
  279. <xs:element ref="db:sbr"/>
  280. </xs:choice>
  281. <xs:attributeGroup ref="db:db.arg.attlist"/>
  282. </xs:complexType>
  283. </xs:element>
  284. <!-- ====================================================================== -->
  285. <xs:attributeGroup name="db.group.role.attribute">
  286. <xs:attribute name="role" use="required"/>
  287. </xs:attributeGroup>
  288. <xs:attributeGroup name="db.group.rep.attribute">
  289. <xs:attributeGroup ref="db:db.rep.attribute"/>
  290. </xs:attributeGroup>
  291. <xs:attributeGroup name="db.group.choice.attribute">
  292. <xs:attributeGroup ref="db:db.choice.opt.attribute"/>
  293. </xs:attributeGroup>
  294. <xs:attributeGroup name="db.group.attlist">
  295. <xs:attribute name="role"/>
  296. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  297. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  298. <xs:attribute name="rep" type="db:db.rep.enumeration"/>
  299. <xs:attribute name="choice" type="db:db.choice.enumeration"/>
  300. </xs:attributeGroup>
  301. <xs:group name="db.group">
  302. <xs:sequence>
  303. <xs:element name="group">
  304. <xs:complexType>
  305. <xs:choice maxOccurs="unbounded">
  306. <xs:element ref="db:arg"/>
  307. <xs:group ref="db:db.group"/>
  308. <xs:element ref="db:option"/>
  309. <xs:element ref="db:synopfragmentref"/>
  310. <xs:element ref="db:replaceable"/>
  311. <xs:element ref="db:sbr"/>
  312. </xs:choice>
  313. <xs:attributeGroup ref="db:db.group.attlist"/>
  314. </xs:complexType>
  315. </xs:element>
  316. </xs:sequence>
  317. </xs:group>
  318. <!-- ====================================================================== -->
  319. <xs:attributeGroup name="db.sbr.role.attribute">
  320. <xs:attribute name="role" use="required"/>
  321. </xs:attributeGroup>
  322. <xs:attributeGroup name="db.sbr.attlist">
  323. <xs:attribute name="role"/>
  324. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  325. </xs:attributeGroup>
  326. <xs:element name="sbr">
  327. <xs:complexType>
  328. <xs:attributeGroup ref="db:db.sbr.attlist"/>
  329. </xs:complexType>
  330. </xs:element>
  331. <!-- ====================================================================== -->
  332. <xs:attributeGroup name="db.synopfragment.role.attribute">
  333. <xs:attribute name="role" use="required"/>
  334. </xs:attributeGroup>
  335. <xs:attributeGroup name="db.synopfragment.attlist">
  336. <xs:attribute name="role"/>
  337. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  338. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  339. </xs:attributeGroup>
  340. <xs:element name="synopfragment">
  341. <xs:complexType>
  342. <xs:choice maxOccurs="unbounded">
  343. <xs:element ref="db:arg"/>
  344. <xs:group ref="db:db.group"/>
  345. </xs:choice>
  346. <xs:attributeGroup ref="db:db.synopfragment.attlist"/>
  347. </xs:complexType>
  348. </xs:element>
  349. <!-- ====================================================================== -->
  350. <xs:attributeGroup name="db.synopfragmentref.role.attribute">
  351. <xs:attribute name="role" use="required"/>
  352. </xs:attributeGroup>
  353. <xs:attributeGroup name="db.synopfragmentref.attlist">
  354. <xs:attribute name="role"/>
  355. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  356. <xs:attributeGroup ref="db:db.linkend.attribute"/>
  357. </xs:attributeGroup>
  358. <xs:element name="synopfragmentref">
  359. <xs:complexType mixed="true">
  360. <xs:attributeGroup ref="db:db.synopfragmentref.attlist"/>
  361. </xs:complexType>
  362. </xs:element>
  363. </xs:schema>