product.rng 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  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:a="http://relaxng.org/ns/compatibility/annotations/1.0" 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.info.elements" combine="choice">
  28. <choice>
  29. <ref name="db.productname"/>
  30. <ref name="db.productnumber"/>
  31. </choice>
  32. </define>
  33. <define name="db.product.inlines" combine="choice">
  34. <choice>
  35. <ref name="db.productnumber"/>
  36. <ref name="db.productname"/>
  37. <ref name="db.database"/>
  38. <ref name="db.application"/>
  39. <ref name="db.hardware"/>
  40. </choice>
  41. </define>
  42. <!-- ====================================================================== -->
  43. <div>
  44. <db:refname>productname</db:refname>
  45. <db:refpurpose>The formal name of a product</db:refpurpose>
  46. <define name="db.productname.role.attribute">
  47. <attribute name="role"/>
  48. </define>
  49. <define name="db.productname.class.enumeration">
  50. <choice>
  51. <value>copyright</value>
  52. <a:documentation>A name with a copyright</a:documentation>
  53. <value>registered</value>
  54. <a:documentation>A name with a registered copyright</a:documentation>
  55. <value>service</value>
  56. <a:documentation>A name of a service</a:documentation>
  57. <value>trade</value>
  58. <a:documentation>A name which is trademarked</a:documentation>
  59. </choice>
  60. </define>
  61. <define name="db.productname.class.attribute">
  62. <attribute name="class">
  63. <db:refpurpose>Specifies the class of product name</db:refpurpose>
  64. <ref name="db.productname.class.enumeration"/>
  65. </attribute>
  66. </define>
  67. <define name="db.productname.attlist">
  68. <interleave>
  69. <optional>
  70. <ref name="db.productname.role.attribute"/>
  71. </optional>
  72. <ref name="db.common.attributes"/>
  73. <ref name="db.common.linking.attributes"/>
  74. <optional>
  75. <ref name="db.productname.class.attribute"/>
  76. </optional>
  77. </interleave>
  78. </define>
  79. <define name="db.productname">
  80. <element name="productname">
  81. <ref name="db.productname.attlist"/>
  82. <ref name="db._text"/>
  83. </element>
  84. </define>
  85. </div>
  86. <!-- ====================================================================== -->
  87. <div>
  88. <db:refname>productnumber</db:refname>
  89. <db:refpurpose>A number assigned to a product</db:refpurpose>
  90. <define name="db.productnumber.role.attribute">
  91. <attribute name="role"/>
  92. </define>
  93. <define name="db.productnumber.attlist">
  94. <interleave>
  95. <optional>
  96. <ref name="db.productnumber.role.attribute"/>
  97. </optional>
  98. <ref name="db.common.attributes"/>
  99. <ref name="db.common.linking.attributes"/>
  100. </interleave>
  101. </define>
  102. <define name="db.productnumber">
  103. <element name="productnumber">
  104. <ref name="db.productnumber.attlist"/>
  105. <ref name="db._text"/>
  106. </element>
  107. </define>
  108. </div>
  109. <!-- ====================================================================== -->
  110. <div>
  111. <db:refname>database</db:refname>
  112. <db:refpurpose>The name of a database, or part of a database</db:refpurpose>
  113. <define name="db.database.class.enumeration">
  114. <choice>
  115. <value>altkey</value>
  116. <a:documentation>An alternate or secondary key</a:documentation>
  117. <value>constraint</value>
  118. <a:documentation>A constraint</a:documentation>
  119. <value>datatype</value>
  120. <a:documentation>A data type</a:documentation>
  121. <value>field</value>
  122. <a:documentation>A field</a:documentation>
  123. <value>foreignkey</value>
  124. <a:documentation>A foreign key</a:documentation>
  125. <value>group</value>
  126. <a:documentation>A group</a:documentation>
  127. <value>index</value>
  128. <a:documentation>An index</a:documentation>
  129. <value>key1</value>
  130. <a:documentation>The first or primary key</a:documentation>
  131. <value>key2</value>
  132. <a:documentation>An alternate or secondary key</a:documentation>
  133. <value>name</value>
  134. <a:documentation>A name</a:documentation>
  135. <value>primarykey</value>
  136. <a:documentation>The primary key</a:documentation>
  137. <value>procedure</value>
  138. <a:documentation>A (stored) procedure</a:documentation>
  139. <value>record</value>
  140. <a:documentation>A record</a:documentation>
  141. <value>rule</value>
  142. <a:documentation>A rule</a:documentation>
  143. <value>secondarykey</value>
  144. <a:documentation>The secondary key</a:documentation>
  145. <value>table</value>
  146. <a:documentation>A table</a:documentation>
  147. <value>user</value>
  148. <a:documentation>A user</a:documentation>
  149. <value>view</value>
  150. <a:documentation>A view</a:documentation>
  151. </choice>
  152. </define>
  153. <define name="db.database.class.attribute">
  154. <attribute name="class">
  155. <db:refpurpose>Identifies the class of database artifact</db:refpurpose>
  156. <ref name="db.database.class.enumeration"/>
  157. </attribute>
  158. </define>
  159. <define name="db.database.role.attribute">
  160. <attribute name="role"/>
  161. </define>
  162. <define name="db.database.attlist">
  163. <interleave>
  164. <optional>
  165. <ref name="db.database.role.attribute"/>
  166. </optional>
  167. <ref name="db.common.attributes"/>
  168. <ref name="db.common.linking.attributes"/>
  169. <optional>
  170. <ref name="db.database.class.attribute"/>
  171. </optional>
  172. </interleave>
  173. </define>
  174. <define name="db.database">
  175. <element name="database">
  176. <ref name="db.database.attlist"/>
  177. <ref name="db._text"/>
  178. </element>
  179. </define>
  180. </div>
  181. <!-- ====================================================================== -->
  182. <div>
  183. <db:refname>application</db:refname>
  184. <db:refpurpose>The name of a software program</db:refpurpose>
  185. <define name="db.application.class.enumeration">
  186. <choice>
  187. <value>hardware</value>
  188. <a:documentation>A hardware application</a:documentation>
  189. <value>software</value>
  190. <a:documentation>A software application</a:documentation>
  191. </choice>
  192. </define>
  193. <define name="db.application.class.attribute">
  194. <attribute name="class">
  195. <db:refpurpose>Identifies the class of application</db:refpurpose>
  196. <ref name="db.application.class.enumeration"/>
  197. </attribute>
  198. </define>
  199. <define name="db.application.role.attribute">
  200. <attribute name="role"/>
  201. </define>
  202. <define name="db.application.attlist">
  203. <interleave>
  204. <optional>
  205. <ref name="db.application.role.attribute"/>
  206. </optional>
  207. <ref name="db.common.attributes"/>
  208. <ref name="db.common.linking.attributes"/>
  209. <optional>
  210. <ref name="db.application.class.attribute"/>
  211. </optional>
  212. </interleave>
  213. </define>
  214. <define name="db.application">
  215. <element name="application">
  216. <ref name="db.application.attlist"/>
  217. <ref name="db._text"/>
  218. </element>
  219. </define>
  220. </div>
  221. <!-- ====================================================================== -->
  222. <div>
  223. <db:refname>hardware</db:refname>
  224. <db:refpurpose>A physical part of a computer system</db:refpurpose>
  225. <define name="db.hardware.role.attribute">
  226. <attribute name="role"/>
  227. </define>
  228. <define name="db.hardware.attlist">
  229. <interleave>
  230. <optional>
  231. <ref name="db.hardware.role.attribute"/>
  232. </optional>
  233. <ref name="db.common.attributes"/>
  234. <ref name="db.common.linking.attributes"/>
  235. </interleave>
  236. </define>
  237. <define name="db.hardware">
  238. <element name="hardware">
  239. <ref name="db.hardware.attlist"/>
  240. <ref name="db._text"/>
  241. </element>
  242. </define>
  243. </div>
  244. </grammar>