gui.rng 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  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. <grammar ns="http://docbook.org/ns/docbook" xmlns:db="http://docbook.org/ns/docbook" xmlns:s="http://purl.oclc.org/dsdl/schematron" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:ctrl="http://nwalsh.com/xmlns/schema-control/" xmlns="http://relaxng.org/ns/structure/1.0">
  27. <define name="db.domain.inlines" combine="choice">
  28. <ref name="db.gui.inlines"/>
  29. </define>
  30. <define name="db.userinput.inlines" combine="choice">
  31. <ref name="db.gui.inlines"/>
  32. </define>
  33. <define name="db.keycombination.contentmodel" combine="choice">
  34. <ref name="db.mousebutton"/>
  35. </define>
  36. <define name="db.gui.inlines">
  37. <choice>
  38. <ref name="db.guiicon"/>
  39. <ref name="db.guibutton"/>
  40. <ref name="db.guimenuitem"/>
  41. <ref name="db.guimenu"/>
  42. <ref name="db.guisubmenu"/>
  43. <ref name="db.guilabel"/>
  44. <ref name="db.menuchoice"/>
  45. <ref name="db.mousebutton"/>
  46. </choice>
  47. </define>
  48. <!-- ====================================================================== -->
  49. <div>
  50. <db:refname>guibutton</db:refname>
  51. <db:refpurpose>The text on a button in a GUI</db:refpurpose>
  52. <define name="db.guibutton.role.attribute">
  53. <attribute name="role"/>
  54. </define>
  55. <define name="db.guibutton.attlist">
  56. <interleave>
  57. <optional>
  58. <ref name="db.guibutton.role.attribute"/>
  59. </optional>
  60. <ref name="db.common.attributes"/>
  61. <ref name="db.common.linking.attributes"/>
  62. </interleave>
  63. </define>
  64. <define name="db.guibutton">
  65. <element name="guibutton">
  66. <ref name="db.guibutton.attlist"/>
  67. <zeroOrMore>
  68. <choice>
  69. <ref name="db._text"/>
  70. <ref name="db.accel"/>
  71. <ref name="db.superscript"/>
  72. <ref name="db.subscript"/>
  73. </choice>
  74. </zeroOrMore>
  75. </element>
  76. </define>
  77. </div>
  78. <!-- ====================================================================== -->
  79. <div>
  80. <db:refname>guiicon</db:refname>
  81. <db:refpurpose>Graphic and/or text appearing as a icon in a GUI</db:refpurpose>
  82. <define name="db.guiicon.role.attribute">
  83. <attribute name="role"/>
  84. </define>
  85. <define name="db.guiicon.attlist">
  86. <interleave>
  87. <optional>
  88. <ref name="db.guiicon.role.attribute"/>
  89. </optional>
  90. <ref name="db.common.attributes"/>
  91. <ref name="db.common.linking.attributes"/>
  92. </interleave>
  93. </define>
  94. <define name="db.guiicon">
  95. <element name="guiicon">
  96. <ref name="db.guiicon.attlist"/>
  97. <zeroOrMore>
  98. <choice>
  99. <ref name="db._text"/>
  100. <ref name="db.accel"/>
  101. <ref name="db.superscript"/>
  102. <ref name="db.subscript"/>
  103. </choice>
  104. </zeroOrMore>
  105. </element>
  106. </define>
  107. </div>
  108. <!-- ====================================================================== -->
  109. <div>
  110. <db:refname>guilabel</db:refname>
  111. <db:refpurpose>The text of a label in a GUI</db:refpurpose>
  112. <define name="db.guilabel.role.attribute">
  113. <attribute name="role"/>
  114. </define>
  115. <define name="db.guilabel.attlist">
  116. <interleave>
  117. <optional>
  118. <ref name="db.guilabel.role.attribute"/>
  119. </optional>
  120. <ref name="db.common.attributes"/>
  121. <ref name="db.common.linking.attributes"/>
  122. </interleave>
  123. </define>
  124. <define name="db.guilabel">
  125. <element name="guilabel">
  126. <ref name="db.guilabel.attlist"/>
  127. <zeroOrMore>
  128. <choice>
  129. <ref name="db._text"/>
  130. <ref name="db.accel"/>
  131. <ref name="db.superscript"/>
  132. <ref name="db.subscript"/>
  133. </choice>
  134. </zeroOrMore>
  135. </element>
  136. </define>
  137. </div>
  138. <!-- ====================================================================== -->
  139. <div>
  140. <db:refname>guimenu</db:refname>
  141. <db:refpurpose>The name of a menu in a GUI</db:refpurpose>
  142. <define name="db.guimenu.role.attribute">
  143. <attribute name="role"/>
  144. </define>
  145. <define name="db.guimenu.attlist">
  146. <interleave>
  147. <optional>
  148. <ref name="db.guimenu.role.attribute"/>
  149. </optional>
  150. <ref name="db.common.attributes"/>
  151. <ref name="db.common.linking.attributes"/>
  152. </interleave>
  153. </define>
  154. <define name="db.guimenu">
  155. <element name="guimenu">
  156. <ref name="db.guimenu.attlist"/>
  157. <zeroOrMore>
  158. <choice>
  159. <ref name="db._text"/>
  160. <ref name="db.accel"/>
  161. <ref name="db.superscript"/>
  162. <ref name="db.subscript"/>
  163. </choice>
  164. </zeroOrMore>
  165. </element>
  166. </define>
  167. </div>
  168. <!-- ====================================================================== -->
  169. <div>
  170. <db:refname>guimenuitem</db:refname>
  171. <db:refpurpose>The name of a terminal menu item in a GUI</db:refpurpose>
  172. <define name="db.guimenuitem.role.attribute">
  173. <attribute name="role"/>
  174. </define>
  175. <define name="db.guimenuitem.attlist">
  176. <interleave>
  177. <optional>
  178. <ref name="db.guimenuitem.role.attribute"/>
  179. </optional>
  180. <ref name="db.common.attributes"/>
  181. <ref name="db.common.linking.attributes"/>
  182. </interleave>
  183. </define>
  184. <define name="db.guimenuitem">
  185. <element name="guimenuitem">
  186. <ref name="db.guimenuitem.attlist"/>
  187. <zeroOrMore>
  188. <choice>
  189. <ref name="db._text"/>
  190. <ref name="db.accel"/>
  191. <ref name="db.superscript"/>
  192. <ref name="db.subscript"/>
  193. </choice>
  194. </zeroOrMore>
  195. </element>
  196. </define>
  197. </div>
  198. <!-- ====================================================================== -->
  199. <div>
  200. <db:refname>guisubmenu</db:refname>
  201. <db:refpurpose>The name of a submenu in a GUI</db:refpurpose>
  202. <define name="db.guisubmenu.role.attribute">
  203. <attribute name="role"/>
  204. </define>
  205. <define name="db.guisubmenu.attlist">
  206. <interleave>
  207. <optional>
  208. <ref name="db.guisubmenu.role.attribute"/>
  209. </optional>
  210. <ref name="db.common.attributes"/>
  211. <ref name="db.common.linking.attributes"/>
  212. </interleave>
  213. </define>
  214. <define name="db.guisubmenu">
  215. <element name="guisubmenu">
  216. <ref name="db.guisubmenu.attlist"/>
  217. <zeroOrMore>
  218. <choice>
  219. <ref name="db._text"/>
  220. <ref name="db.accel"/>
  221. <ref name="db.superscript"/>
  222. <ref name="db.subscript"/>
  223. </choice>
  224. </zeroOrMore>
  225. </element>
  226. </define>
  227. </div>
  228. <!-- ====================================================================== -->
  229. <div>
  230. <db:refname>menuchoice</db:refname>
  231. <db:refpurpose>A selection or series of selections from a menu</db:refpurpose>
  232. <define name="db.menuchoice.role.attribute">
  233. <attribute name="role"/>
  234. </define>
  235. <define name="db.menuchoice.attlist">
  236. <interleave>
  237. <optional>
  238. <ref name="db.menuchoice.role.attribute"/>
  239. </optional>
  240. <ref name="db.common.attributes"/>
  241. <ref name="db.common.linking.attributes"/>
  242. </interleave>
  243. </define>
  244. <define name="db.menuchoice">
  245. <element name="menuchoice">
  246. <ref name="db.menuchoice.attlist"/>
  247. <optional>
  248. <ref name="db.shortcut"/>
  249. </optional>
  250. <oneOrMore>
  251. <choice>
  252. <ref name="db.guibutton"/>
  253. <ref name="db.guiicon"/>
  254. <ref name="db.guilabel"/>
  255. <ref name="db.guimenu"/>
  256. <ref name="db.guimenuitem"/>
  257. <ref name="db.guisubmenu"/>
  258. </choice>
  259. </oneOrMore>
  260. </element>
  261. </define>
  262. </div>
  263. <!-- ====================================================================== -->
  264. <div>
  265. <db:refname>mousebutton</db:refname>
  266. <db:refpurpose>The conventional name of a mouse button</db:refpurpose>
  267. <define name="db.mousebutton.role.attribute">
  268. <attribute name="role"/>
  269. </define>
  270. <define name="db.mousebutton.attlist">
  271. <interleave>
  272. <optional>
  273. <ref name="db.mousebutton.role.attribute"/>
  274. </optional>
  275. <ref name="db.common.attributes"/>
  276. <ref name="db.common.linking.attributes"/>
  277. </interleave>
  278. </define>
  279. <define name="db.mousebutton">
  280. <element name="mousebutton">
  281. <ref name="db.mousebutton.attlist"/>
  282. <ref name="db._text"/>
  283. </element>
  284. </define>
  285. </div>
  286. </grammar>