msgset.rng 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427
  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: msgset.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. <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. <start combine="choice">
  28. <choice>
  29. <ref name="db.msg"/>
  30. <ref name="db.msgexplan"/>
  31. <ref name="db.msgmain"/>
  32. <ref name="db.msgrel"/>
  33. <ref name="db.msgset"/>
  34. <ref name="db.msgsub"/>
  35. </choice>
  36. </start>
  37. <define name="db.technical.blocks" combine="choice">
  38. <ref name="db.msgset"/>
  39. </define>
  40. <!-- ====================================================================== -->
  41. <div>
  42. <db:refname>msgset</db:refname>
  43. <db:refpurpose>A detailed set of messages, usually error messages</db:refpurpose>
  44. <define name="db.msgset.role.attribute">
  45. <attribute name="role"/>
  46. </define>
  47. <define name="db.msgset.attlist">
  48. <interleave>
  49. <optional>
  50. <ref name="db.msgset.role.attribute"/>
  51. </optional>
  52. <ref name="db.common.attributes"/>
  53. <ref name="db.common.linking.attributes"/>
  54. </interleave>
  55. </define>
  56. <define name="db.msgset.info">
  57. <ref name="db._info.title.only"/>
  58. </define>
  59. <define name="db.msgset">
  60. <element name="msgset">
  61. <ref name="db.msgset.attlist"/>
  62. <ref name="db.msgset.info"/>
  63. <choice>
  64. <oneOrMore>
  65. <ref name="db.msgentry"/>
  66. </oneOrMore>
  67. <oneOrMore>
  68. <ref name="db.simplemsgentry"/>
  69. </oneOrMore>
  70. </choice>
  71. </element>
  72. </define>
  73. </div>
  74. <!-- ====================================================================== -->
  75. <div>
  76. <db:refname>msgentry</db:refname>
  77. <db:refpurpose>A wrapper for an entry in a message set</db:refpurpose>
  78. <define name="db.msgentry.role.attribute">
  79. <attribute name="role"/>
  80. </define>
  81. <define name="db.msgentry.attlist">
  82. <interleave>
  83. <optional>
  84. <ref name="db.msgentry.role.attribute"/>
  85. </optional>
  86. <ref name="db.common.attributes"/>
  87. <ref name="db.common.linking.attributes"/>
  88. </interleave>
  89. </define>
  90. <define name="db.msgentry">
  91. <element name="msgentry">
  92. <ref name="db.msgentry.attlist"/>
  93. <oneOrMore>
  94. <ref name="db.msg"/>
  95. </oneOrMore>
  96. <optional>
  97. <ref name="db.msginfo"/>
  98. </optional>
  99. <zeroOrMore>
  100. <ref name="db.msgexplan"/>
  101. </zeroOrMore>
  102. </element>
  103. </define>
  104. </div>
  105. <!-- ====================================================================== -->
  106. <div>
  107. <db:refname>simplemsgentry</db:refname>
  108. <db:refpurpose>A wrapper for a simpler entry in a message set</db:refpurpose>
  109. <define name="db.simplemsgentry.role.attribute">
  110. <attribute name="role"/>
  111. </define>
  112. <define name="db.simplemsgentry.msgaud.attribute">
  113. <attribute name="msgaud">
  114. <db:refpurpose>The audience to which the message relevant</db:refpurpose>
  115. </attribute>
  116. </define>
  117. <define name="db.simplemsgentry.msgorig.attribute">
  118. <attribute name="msgorig">
  119. <db:refpurpose>The origin of the message</db:refpurpose>
  120. </attribute>
  121. </define>
  122. <define name="db.simplemsgentry.msglevel.attribute">
  123. <attribute name="msglevel">
  124. <db:refpurpose>The level of importance or severity of a message</db:refpurpose>
  125. </attribute>
  126. </define>
  127. <define name="db.simplemsgentry.attlist">
  128. <interleave>
  129. <optional>
  130. <ref name="db.simplemsgentry.role.attribute"/>
  131. </optional>
  132. <ref name="db.common.attributes"/>
  133. <ref name="db.common.linking.attributes"/>
  134. <optional>
  135. <ref name="db.simplemsgentry.msgaud.attribute"/>
  136. </optional>
  137. <optional>
  138. <ref name="db.simplemsgentry.msgorig.attribute"/>
  139. </optional>
  140. <optional>
  141. <ref name="db.simplemsgentry.msglevel.attribute"/>
  142. </optional>
  143. </interleave>
  144. </define>
  145. <define name="db.simplemsgentry">
  146. <element name="simplemsgentry">
  147. <ref name="db.simplemsgentry.attlist"/>
  148. <ref name="db.msgtext"/>
  149. <oneOrMore>
  150. <ref name="db.msgexplan"/>
  151. </oneOrMore>
  152. </element>
  153. </define>
  154. </div>
  155. <!-- ====================================================================== -->
  156. <div>
  157. <db:refname>msg</db:refname>
  158. <db:refpurpose>A message in a message set</db:refpurpose>
  159. <define name="db.msg.role.attribute">
  160. <attribute name="role"/>
  161. </define>
  162. <define name="db.msg.attlist">
  163. <interleave>
  164. <optional>
  165. <ref name="db.msg.role.attribute"/>
  166. </optional>
  167. <ref name="db.common.attributes"/>
  168. <ref name="db.common.linking.attributes"/>
  169. </interleave>
  170. </define>
  171. <define name="db.msg.info">
  172. <ref name="db._info.title.only"/>
  173. </define>
  174. <define name="db.msg">
  175. <element name="msg">
  176. <ref name="db.msg.attlist"/>
  177. <ref name="db.msg.info"/>
  178. <ref name="db.msgmain"/>
  179. <zeroOrMore>
  180. <choice>
  181. <ref name="db.msgsub"/>
  182. <ref name="db.msgrel"/>
  183. </choice>
  184. </zeroOrMore>
  185. </element>
  186. </define>
  187. </div>
  188. <!-- ====================================================================== -->
  189. <div>
  190. <db:refname>msgmain</db:refname>
  191. <db:refpurpose>The primary component of a message in a message set </db:refpurpose>
  192. <define name="db.msgmain.role.attribute">
  193. <attribute name="role"/>
  194. </define>
  195. <define name="db.msgmain.attlist">
  196. <interleave>
  197. <optional>
  198. <ref name="db.msgmain.role.attribute"/>
  199. </optional>
  200. <ref name="db.common.attributes"/>
  201. <ref name="db.common.linking.attributes"/>
  202. </interleave>
  203. </define>
  204. <define name="db.msgmain.info">
  205. <ref name="db._info.title.only"/>
  206. </define>
  207. <define name="db.msgmain">
  208. <element name="msgmain">
  209. <ref name="db.msgmain.attlist"/>
  210. <ref name="db.msgmain.info"/>
  211. <ref name="db.msgtext"/>
  212. </element>
  213. </define>
  214. </div>
  215. <!-- ====================================================================== -->
  216. <div>
  217. <db:refname>msgsub</db:refname>
  218. <db:refpurpose>A subcomponent of a message in a message set</db:refpurpose>
  219. <define name="db.msgsub.role.attribute">
  220. <attribute name="role"/>
  221. </define>
  222. <define name="db.msgsub.attlist">
  223. <interleave>
  224. <optional>
  225. <ref name="db.msgsub.role.attribute"/>
  226. </optional>
  227. <ref name="db.common.attributes"/>
  228. <ref name="db.common.linking.attributes"/>
  229. </interleave>
  230. </define>
  231. <define name="db.msgsub.info">
  232. <ref name="db._info.title.only"/>
  233. </define>
  234. <define name="db.msgsub">
  235. <element name="msgsub">
  236. <ref name="db.msgsub.attlist"/>
  237. <ref name="db.msgsub.info"/>
  238. <ref name="db.msgtext"/>
  239. </element>
  240. </define>
  241. </div>
  242. <!-- ====================================================================== -->
  243. <div>
  244. <db:refname>msgrel</db:refname>
  245. <db:refpurpose>A related component of a message in a message set</db:refpurpose>
  246. <define name="db.msgrel.role.attribute">
  247. <attribute name="role"/>
  248. </define>
  249. <define name="db.msgrel.attlist">
  250. <interleave>
  251. <optional>
  252. <ref name="db.msgrel.role.attribute"/>
  253. </optional>
  254. <ref name="db.common.attributes"/>
  255. <ref name="db.common.linking.attributes"/>
  256. </interleave>
  257. </define>
  258. <define name="db.msgrel.info">
  259. <ref name="db._info.title.only"/>
  260. </define>
  261. <define name="db.msgrel">
  262. <element name="msgrel">
  263. <ref name="db.msgrel.attlist"/>
  264. <ref name="db.msgrel.info"/>
  265. <ref name="db.msgtext"/>
  266. </element>
  267. </define>
  268. </div>
  269. <!-- ====================================================================== -->
  270. <div>
  271. <db:refname>msgtext</db:refname>
  272. <db:refpurpose>The actual text of a message component in a message set</db:refpurpose>
  273. <define name="db.msgtext.role.attribute">
  274. <attribute name="role"/>
  275. </define>
  276. <define name="db.msgtext.attlist">
  277. <interleave>
  278. <optional>
  279. <ref name="db.msgtext.role.attribute"/>
  280. </optional>
  281. <ref name="db.common.attributes"/>
  282. <ref name="db.common.linking.attributes"/>
  283. </interleave>
  284. </define>
  285. <define name="db.msgtext">
  286. <element name="msgtext">
  287. <ref name="db.msgtext.attlist"/>
  288. <oneOrMore>
  289. <ref name="db.all.blocks"/>
  290. </oneOrMore>
  291. </element>
  292. </define>
  293. </div>
  294. <!-- ====================================================================== -->
  295. <div>
  296. <db:refname>msginfo</db:refname>
  297. <db:refpurpose>Information about a message in a message set</db:refpurpose>
  298. <define name="db.msginfo.role.attribute">
  299. <attribute name="role"/>
  300. </define>
  301. <define name="db.msginfo.attlist">
  302. <interleave>
  303. <optional>
  304. <ref name="db.msginfo.role.attribute"/>
  305. </optional>
  306. <ref name="db.common.attributes"/>
  307. <ref name="db.common.linking.attributes"/>
  308. </interleave>
  309. </define>
  310. <define name="db.msginfo">
  311. <element name="msginfo">
  312. <ref name="db.msginfo.attlist"/>
  313. <zeroOrMore>
  314. <choice>
  315. <ref name="db.msglevel"/>
  316. <ref name="db.msgorig"/>
  317. <ref name="db.msgaud"/>
  318. </choice>
  319. </zeroOrMore>
  320. </element>
  321. </define>
  322. </div>
  323. <!-- ====================================================================== -->
  324. <div>
  325. <db:refname>msglevel</db:refname>
  326. <db:refpurpose>The level of importance or severity of a message in a message set</db:refpurpose>
  327. <define name="db.msglevel.role.attribute">
  328. <attribute name="role"/>
  329. </define>
  330. <define name="db.msglevel.attlist">
  331. <interleave>
  332. <optional>
  333. <ref name="db.msglevel.role.attribute"/>
  334. </optional>
  335. <ref name="db.common.attributes"/>
  336. <ref name="db.common.linking.attributes"/>
  337. </interleave>
  338. </define>
  339. <define name="db.msglevel">
  340. <element name="msglevel">
  341. <ref name="db.msglevel.attlist"/>
  342. <ref name="db._text"/>
  343. </element>
  344. </define>
  345. </div>
  346. <!-- ====================================================================== -->
  347. <div>
  348. <db:refname>msgorig</db:refname>
  349. <db:refpurpose>The origin of a message in a message set</db:refpurpose>
  350. <define name="db.msgorig.role.attribute">
  351. <attribute name="role"/>
  352. </define>
  353. <define name="db.msgorig.attlist">
  354. <interleave>
  355. <optional>
  356. <ref name="db.msgorig.role.attribute"/>
  357. </optional>
  358. <ref name="db.common.attributes"/>
  359. <ref name="db.common.linking.attributes"/>
  360. </interleave>
  361. </define>
  362. <define name="db.msgorig">
  363. <element name="msgorig">
  364. <ref name="db.msgorig.attlist"/>
  365. <ref name="db._text"/>
  366. </element>
  367. </define>
  368. </div>
  369. <!-- ====================================================================== -->
  370. <div>
  371. <db:refname>msgaud</db:refname>
  372. <db:refpurpose>The audience to which a message in a message set is relevant</db:refpurpose>
  373. <define name="db.msgaud.role.attribute">
  374. <attribute name="role"/>
  375. </define>
  376. <define name="db.msgaud.attlist">
  377. <interleave>
  378. <optional>
  379. <ref name="db.msgaud.role.attribute"/>
  380. </optional>
  381. <ref name="db.common.attributes"/>
  382. <ref name="db.common.linking.attributes"/>
  383. </interleave>
  384. </define>
  385. <define name="db.msgaud">
  386. <element name="msgaud">
  387. <ref name="db.msgaud.attlist"/>
  388. <ref name="db._text"/>
  389. </element>
  390. </define>
  391. </div>
  392. <!-- ====================================================================== -->
  393. <div>
  394. <db:refname>msgexplan</db:refname>
  395. <db:refpurpose>Explanatory material relating to a message in a message set</db:refpurpose>
  396. <define name="db.msgexplan.role.attribute">
  397. <attribute name="role"/>
  398. </define>
  399. <define name="db.msgexplan.attlist">
  400. <interleave>
  401. <optional>
  402. <ref name="db.msgexplan.role.attribute"/>
  403. </optional>
  404. <ref name="db.common.attributes"/>
  405. <ref name="db.common.linking.attributes"/>
  406. </interleave>
  407. </define>
  408. <define name="db.msgexplan.info">
  409. <ref name="db._info.title.only"/>
  410. </define>
  411. <define name="db.msgexplan">
  412. <element name="msgexplan">
  413. <ref name="db.msgexplan.attlist"/>
  414. <ref name="db.msgexplan.info"/>
  415. <oneOrMore>
  416. <ref name="db.all.blocks"/>
  417. </oneOrMore>
  418. </element>
  419. </define>
  420. </div>
  421. </grammar>