technical.rng 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  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" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
  27. <define name="db.technical.inlines" combine="choice">
  28. <choice>
  29. <ref name="db.systemitem"/>
  30. <ref name="db.option"/>
  31. <ref name="db.optional"/>
  32. <ref name="db.property"/>
  33. </choice>
  34. </define>
  35. <!-- ====================================================================== -->
  36. <define name="db.systemitem.inlines">
  37. <ref name="db._text"/>
  38. </define>
  39. <!-- ====================================================================== -->
  40. <div>
  41. <db:refname>systemitem</db:refname>
  42. <db:refpurpose>A system-related item or term</db:refpurpose>
  43. <define name="db.systemitem.class.enumeration">
  44. <choice>
  45. <value>daemon</value>
  46. <a:documentation>A daemon or other system process (syslogd)</a:documentation>
  47. <value>domainname</value>
  48. <a:documentation>A domain name (example.com)</a:documentation>
  49. <value>etheraddress</value>
  50. <a:documentation>An ethernet address (00:05:4E:49:FD:8E)</a:documentation>
  51. <value>event</value>
  52. <a:documentation>An event of some sort (SIGHUP)</a:documentation>
  53. <value>eventhandler</value>
  54. <a:documentation>An event handler of some sort (hangup)</a:documentation>
  55. <value>filesystem</value>
  56. <a:documentation>A filesystem (ext3)</a:documentation>
  57. <value>fqdomainname</value>
  58. <a:documentation>A fully qualified domain name (my.example.com)</a:documentation>
  59. <value>groupname</value>
  60. <a:documentation>A group name (wheel)</a:documentation>
  61. <value>ipaddress</value>
  62. <a:documentation>An IP address (127.0.0.1)</a:documentation>
  63. <value>library</value>
  64. <a:documentation>A library (libncurses)</a:documentation>
  65. <value>macro</value>
  66. <a:documentation>A macro</a:documentation>
  67. <value>netmask</value>
  68. <a:documentation>A netmask (255.255.255.192)</a:documentation>
  69. <value>newsgroup</value>
  70. <a:documentation>A newsgroup (comp.text.xml)</a:documentation>
  71. <value>osname</value>
  72. <a:documentation>An operating system name (Hurd)</a:documentation>
  73. <value>process</value>
  74. <a:documentation>A process (gnome-cups-icon)</a:documentation>
  75. <value>protocol</value>
  76. <a:documentation>A protocol (ftp)</a:documentation>
  77. <value>resource</value>
  78. <a:documentation>A resource</a:documentation>
  79. <value>securitycontext</value>
  80. <a:documentation>A security context (a role, permission, or security token, for example)</a:documentation>
  81. <value>server</value>
  82. <a:documentation>A server (mail.example.com)</a:documentation>
  83. <value>service</value>
  84. <a:documentation>A service (ppp)</a:documentation>
  85. <value>systemname</value>
  86. <a:documentation>A system name (hephaistos)</a:documentation>
  87. <value>username</value>
  88. <a:documentation>A user name (ndw)</a:documentation>
  89. </choice>
  90. </define>
  91. <define name="db.systemitem.class-enum.attribute">
  92. <optional>
  93. <attribute name="class">
  94. <db:refpurpose>Identifies the nature of the system item</db:refpurpose>
  95. <ref name="db.systemitem.class.enumeration"/>
  96. </attribute>
  97. </optional>
  98. </define>
  99. <define name="db.systemitem.class-other.attribute">
  100. <attribute name="otherclass">
  101. <db:refpurpose>Identifies the nature of the non-standard system item</db:refpurpose>
  102. <data type="NMTOKEN"/>
  103. </attribute>
  104. </define>
  105. <define name="db.systemitem.class-other.attributes">
  106. <interleave>
  107. <attribute name="class">
  108. <db:refpurpose>Identifies the kind of systemitemgraphic identifier</db:refpurpose>
  109. <value>other</value>
  110. <a:documentation>Indicates that the system item is some 'other' kind.</a:documentation>
  111. </attribute>
  112. <ref name="db.systemitem.class-other.attribute"/>
  113. </interleave>
  114. </define>
  115. <define name="db.systemitem.class.attribute">
  116. <choice>
  117. <ref name="db.systemitem.class-enum.attribute"/>
  118. <ref name="db.systemitem.class-other.attributes"/>
  119. </choice>
  120. </define>
  121. <define name="db.systemitem.role.attribute">
  122. <attribute name="role"/>
  123. </define>
  124. <define name="db.systemitem.attlist">
  125. <interleave>
  126. <optional>
  127. <ref name="db.systemitem.role.attribute"/>
  128. </optional>
  129. <ref name="db.common.attributes"/>
  130. <ref name="db.common.linking.attributes"/>
  131. <optional>
  132. <ref name="db.systemitem.class.attribute"/>
  133. </optional>
  134. </interleave>
  135. </define>
  136. <define name="db.systemitem">
  137. <element name="systemitem">
  138. <ref name="db.systemitem.attlist"/>
  139. <zeroOrMore>
  140. <ref name="db.systemitem.inlines"/>
  141. </zeroOrMore>
  142. </element>
  143. </define>
  144. </div>
  145. <!-- ====================================================================== -->
  146. <div>
  147. <db:refname>option</db:refname>
  148. <db:refpurpose>An option for a software command</db:refpurpose>
  149. <define name="db.option.role.attribute">
  150. <attribute name="role"/>
  151. </define>
  152. <define name="db.option.attlist">
  153. <interleave>
  154. <optional>
  155. <ref name="db.option.role.attribute"/>
  156. </optional>
  157. <ref name="db.common.attributes"/>
  158. <ref name="db.common.linking.attributes"/>
  159. </interleave>
  160. </define>
  161. <define name="db.option">
  162. <element name="option">
  163. <ref name="db.option.attlist"/>
  164. <ref name="db._text"/>
  165. </element>
  166. </define>
  167. </div>
  168. <!-- ====================================================================== -->
  169. <div>
  170. <db:refname>optional</db:refname>
  171. <db:refpurpose>Optional information</db:refpurpose>
  172. <define name="db.optional.role.attribute">
  173. <attribute name="role"/>
  174. </define>
  175. <define name="db.optional.attlist">
  176. <interleave>
  177. <optional>
  178. <ref name="db.optional.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.optional">
  185. <element name="optional">
  186. <ref name="db.optional.attlist"/>
  187. <ref name="db._text"/>
  188. </element>
  189. </define>
  190. </div>
  191. <!-- ====================================================================== -->
  192. <div>
  193. <db:refname>property</db:refname>
  194. <db:refpurpose>A unit of data associated with some part of a computer system</db:refpurpose>
  195. <define name="db.property.role.attribute">
  196. <attribute name="role"/>
  197. </define>
  198. <define name="db.property.attlist">
  199. <interleave>
  200. <optional>
  201. <ref name="db.property.role.attribute"/>
  202. </optional>
  203. <ref name="db.common.attributes"/>
  204. <ref name="db.common.linking.attributes"/>
  205. </interleave>
  206. </define>
  207. <define name="db.property">
  208. <element name="property">
  209. <ref name="db.property.attlist"/>
  210. <ref name="db._text"/>
  211. </element>
  212. </define>
  213. </div>
  214. </grammar>