keyboard.xsd 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  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:group name="db.keyboard.inlines">
  31. <xs:choice>
  32. <xs:element ref="db:keycombo"/>
  33. <xs:element ref="db:keycap"/>
  34. <xs:element ref="db:keycode"/>
  35. <xs:element ref="db:keysym"/>
  36. <xs:element ref="db:shortcut"/>
  37. <xs:element ref="db:accel"/>
  38. </xs:choice>
  39. </xs:group>
  40. <!-- ====================================================================== -->
  41. <xs:simpleType name="db.keycap.function.enumeration">
  42. <xs:restriction base="xs:token">
  43. <xs:enumeration value="alt">
  44. <xs:annotation>
  45. <xs:documentation>The "Alt" key</xs:documentation>
  46. </xs:annotation>
  47. </xs:enumeration>
  48. <xs:enumeration value="backspace">
  49. <xs:annotation>
  50. <xs:documentation>The "Backspace" key</xs:documentation>
  51. </xs:annotation>
  52. </xs:enumeration>
  53. <xs:enumeration value="command">
  54. <xs:annotation>
  55. <xs:documentation>The "Command" key</xs:documentation>
  56. </xs:annotation>
  57. </xs:enumeration>
  58. <xs:enumeration value="control">
  59. <xs:annotation>
  60. <xs:documentation>The "Control" key</xs:documentation>
  61. </xs:annotation>
  62. </xs:enumeration>
  63. <xs:enumeration value="delete">
  64. <xs:annotation>
  65. <xs:documentation>The "Delete" key</xs:documentation>
  66. </xs:annotation>
  67. </xs:enumeration>
  68. <xs:enumeration value="down">
  69. <xs:annotation>
  70. <xs:documentation>The down arrow</xs:documentation>
  71. </xs:annotation>
  72. </xs:enumeration>
  73. <xs:enumeration value="end">
  74. <xs:annotation>
  75. <xs:documentation>The "End" key</xs:documentation>
  76. </xs:annotation>
  77. </xs:enumeration>
  78. <xs:enumeration value="enter">
  79. <xs:annotation>
  80. <xs:documentation>The "Enter" or "Return" key</xs:documentation>
  81. </xs:annotation>
  82. </xs:enumeration>
  83. <xs:enumeration value="escape">
  84. <xs:annotation>
  85. <xs:documentation>The "Escape" key</xs:documentation>
  86. </xs:annotation>
  87. </xs:enumeration>
  88. <xs:enumeration value="home">
  89. <xs:annotation>
  90. <xs:documentation>The "Home" key</xs:documentation>
  91. </xs:annotation>
  92. </xs:enumeration>
  93. <xs:enumeration value="insert">
  94. <xs:annotation>
  95. <xs:documentation>The "Insert" key</xs:documentation>
  96. </xs:annotation>
  97. </xs:enumeration>
  98. <xs:enumeration value="left">
  99. <xs:annotation>
  100. <xs:documentation>The left arrow</xs:documentation>
  101. </xs:annotation>
  102. </xs:enumeration>
  103. <xs:enumeration value="meta">
  104. <xs:annotation>
  105. <xs:documentation>The "Meta" key</xs:documentation>
  106. </xs:annotation>
  107. </xs:enumeration>
  108. <xs:enumeration value="option">
  109. <xs:annotation>
  110. <xs:documentation>The "Option" key</xs:documentation>
  111. </xs:annotation>
  112. </xs:enumeration>
  113. <xs:enumeration value="pagedown">
  114. <xs:annotation>
  115. <xs:documentation>The page down key</xs:documentation>
  116. </xs:annotation>
  117. </xs:enumeration>
  118. <xs:enumeration value="pageup">
  119. <xs:annotation>
  120. <xs:documentation>The page up key</xs:documentation>
  121. </xs:annotation>
  122. </xs:enumeration>
  123. <xs:enumeration value="right">
  124. <xs:annotation>
  125. <xs:documentation>The right arrow</xs:documentation>
  126. </xs:annotation>
  127. </xs:enumeration>
  128. <xs:enumeration value="shift">
  129. <xs:annotation>
  130. <xs:documentation>The "Shift" key</xs:documentation>
  131. </xs:annotation>
  132. </xs:enumeration>
  133. <xs:enumeration value="space">
  134. <xs:annotation>
  135. <xs:documentation>The spacebar</xs:documentation>
  136. </xs:annotation>
  137. </xs:enumeration>
  138. <xs:enumeration value="tab">
  139. <xs:annotation>
  140. <xs:documentation>The "Tab" key</xs:documentation>
  141. </xs:annotation>
  142. </xs:enumeration>
  143. <xs:enumeration value="up">
  144. <xs:annotation>
  145. <xs:documentation>The up arrow</xs:documentation>
  146. </xs:annotation>
  147. </xs:enumeration>
  148. </xs:restriction>
  149. </xs:simpleType>
  150. <xs:attributeGroup name="db.keycap.function-enum.attribute">
  151. <xs:attribute name="function" type="db:db.keycap.function.enumeration"/>
  152. </xs:attributeGroup>
  153. <xs:attributeGroup name="db.keycap.function-other.attributes">
  154. <xs:attribute name="function">
  155. <xs:simpleType>
  156. <xs:restriction base="xs:token">
  157. <xs:enumeration value="other">
  158. <xs:annotation>
  159. <xs:documentation>Indicates a non-standard function key</xs:documentation>
  160. </xs:annotation>
  161. </xs:enumeration>
  162. </xs:restriction>
  163. </xs:simpleType>
  164. </xs:attribute>
  165. <xs:attribute name="otherfunction" use="required"/>
  166. </xs:attributeGroup>
  167. <xs:attributeGroup name="db.keycap.function.attrib">
  168. <xs:attribute name="function">
  169. <xs:simpleType>
  170. <xs:union memberTypes="db:db.keycap.function.enumeration">
  171. <xs:simpleType>
  172. <xs:restriction base="xs:token">
  173. <xs:enumeration value="other">
  174. <xs:annotation>
  175. <xs:documentation>Indicates a non-standard function key</xs:documentation>
  176. </xs:annotation>
  177. </xs:enumeration>
  178. </xs:restriction>
  179. </xs:simpleType>
  180. </xs:union>
  181. </xs:simpleType>
  182. </xs:attribute>
  183. <xs:attribute name="otherfunction"/>
  184. </xs:attributeGroup>
  185. <xs:attributeGroup name="db.keycap.role.attribute">
  186. <xs:attribute name="role" use="required"/>
  187. </xs:attributeGroup>
  188. <xs:attributeGroup name="db.keycap.attlist">
  189. <xs:attribute name="role"/>
  190. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  191. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  192. <xs:attributeGroup ref="db:db.keycap.function.attrib"/>
  193. </xs:attributeGroup>
  194. <xs:element name="keycap">
  195. <xs:complexType mixed="true">
  196. <xs:group ref="db:db._text"/>
  197. <xs:attributeGroup ref="db:db.keycap.attlist"/>
  198. </xs:complexType>
  199. </xs:element>
  200. <!-- ====================================================================== -->
  201. <xs:attributeGroup name="db.keycode.role.attribute">
  202. <xs:attribute name="role" use="required"/>
  203. </xs:attributeGroup>
  204. <xs:attributeGroup name="db.keycode.attlist">
  205. <xs:attribute name="role"/>
  206. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  207. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  208. </xs:attributeGroup>
  209. <xs:element name="keycode">
  210. <xs:complexType mixed="true">
  211. <xs:group ref="db:db._text"/>
  212. <xs:attributeGroup ref="db:db.keycode.attlist"/>
  213. </xs:complexType>
  214. </xs:element>
  215. <!-- ====================================================================== -->
  216. <xs:simpleType name="db.keycombo.action.enumeration">
  217. <xs:restriction base="xs:token">
  218. <xs:enumeration value="click">
  219. <xs:annotation>
  220. <xs:documentation>A (single) mouse click.</xs:documentation>
  221. </xs:annotation>
  222. </xs:enumeration>
  223. <xs:enumeration value="double-click">
  224. <xs:annotation>
  225. <xs:documentation>A double mouse click.</xs:documentation>
  226. </xs:annotation>
  227. </xs:enumeration>
  228. <xs:enumeration value="press">
  229. <xs:annotation>
  230. <xs:documentation>A mouse or key press.</xs:documentation>
  231. </xs:annotation>
  232. </xs:enumeration>
  233. <xs:enumeration value="seq">
  234. <xs:annotation>
  235. <xs:documentation>Sequential clicks or presses.</xs:documentation>
  236. </xs:annotation>
  237. </xs:enumeration>
  238. <xs:enumeration value="simul">
  239. <xs:annotation>
  240. <xs:documentation>Simultaneous clicks or presses.</xs:documentation>
  241. </xs:annotation>
  242. </xs:enumeration>
  243. </xs:restriction>
  244. </xs:simpleType>
  245. <xs:attributeGroup name="db.keycombo.action-enum.attribute">
  246. <xs:attribute name="action" type="db:db.keycombo.action.enumeration"/>
  247. </xs:attributeGroup>
  248. <xs:attributeGroup name="db.keycombo.action-other.attributes">
  249. <xs:attribute name="action">
  250. <xs:simpleType>
  251. <xs:restriction base="xs:token">
  252. <xs:enumeration value="other">
  253. <xs:annotation>
  254. <xs:documentation>Indicates a non-standard action</xs:documentation>
  255. </xs:annotation>
  256. </xs:enumeration>
  257. </xs:restriction>
  258. </xs:simpleType>
  259. </xs:attribute>
  260. <xs:attribute name="otheraction" use="required"/>
  261. </xs:attributeGroup>
  262. <xs:attributeGroup name="db.keycombo.action.attrib">
  263. <xs:attribute name="action">
  264. <xs:simpleType>
  265. <xs:union memberTypes="db:db.keycombo.action.enumeration">
  266. <xs:simpleType>
  267. <xs:restriction base="xs:token">
  268. <xs:enumeration value="other">
  269. <xs:annotation>
  270. <xs:documentation>Indicates a non-standard action</xs:documentation>
  271. </xs:annotation>
  272. </xs:enumeration>
  273. </xs:restriction>
  274. </xs:simpleType>
  275. </xs:union>
  276. </xs:simpleType>
  277. </xs:attribute>
  278. <xs:attribute name="otheraction"/>
  279. </xs:attributeGroup>
  280. <xs:attributeGroup name="db.keycombo.role.attribute">
  281. <xs:attribute name="role" use="required"/>
  282. </xs:attributeGroup>
  283. <xs:attributeGroup name="db.keycombo.attlist">
  284. <xs:attribute name="role"/>
  285. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  286. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  287. <xs:attributeGroup ref="db:db.keycombo.action.attrib"/>
  288. </xs:attributeGroup>
  289. <xs:element name="keycombo">
  290. <xs:complexType>
  291. <xs:group maxOccurs="unbounded" ref="db:db.keycombination.contentmodel"/>
  292. <xs:attributeGroup ref="db:db.keycombo.attlist"/>
  293. </xs:complexType>
  294. </xs:element>
  295. <!-- ====================================================================== -->
  296. <xs:attributeGroup name="db.keysym.role.attribute">
  297. <xs:attribute name="role" use="required"/>
  298. </xs:attributeGroup>
  299. <xs:attributeGroup name="db.keysym.attlist">
  300. <xs:attribute name="role"/>
  301. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  302. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  303. </xs:attributeGroup>
  304. <xs:element name="keysym">
  305. <xs:complexType mixed="true">
  306. <xs:group ref="db:db._text"/>
  307. <xs:attributeGroup ref="db:db.keysym.attlist"/>
  308. </xs:complexType>
  309. </xs:element>
  310. <!-- ====================================================================== -->
  311. <xs:attributeGroup name="db.accel.role.attribute">
  312. <xs:attribute name="role" use="required"/>
  313. </xs:attributeGroup>
  314. <xs:attributeGroup name="db.accel.attlist">
  315. <xs:attribute name="role"/>
  316. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  317. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  318. </xs:attributeGroup>
  319. <xs:element name="accel">
  320. <xs:complexType mixed="true">
  321. <xs:group ref="db:db._text"/>
  322. <xs:attributeGroup ref="db:db.accel.attlist"/>
  323. </xs:complexType>
  324. </xs:element>
  325. <!-- ====================================================================== -->
  326. <xs:attributeGroup name="db.shortcut.action.attrib">
  327. <xs:attributeGroup ref="db:db.keycombo.action.attrib"/>
  328. </xs:attributeGroup>
  329. <xs:attributeGroup name="db.shortcut.role.attribute">
  330. <xs:attribute name="role" use="required"/>
  331. </xs:attributeGroup>
  332. <xs:attributeGroup name="db.shortcut.attlist">
  333. <xs:attribute name="role"/>
  334. <xs:attributeGroup ref="dbs:db.common.attributes"/>
  335. <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  336. <xs:attributeGroup ref="db:db.shortcut.action.attrib"/>
  337. </xs:attributeGroup>
  338. <xs:element name="shortcut">
  339. <xs:complexType>
  340. <xs:group maxOccurs="unbounded" ref="db:db.keycombination.contentmodel"/>
  341. <xs:attributeGroup ref="db:db.shortcut.attlist"/>
  342. </xs:complexType>
  343. </xs:element>
  344. </xs:schema>