tasks.rng 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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: tasks.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="http://relaxng.org/ns/structure/1.0">
  27. <start combine="choice">
  28. <choice>
  29. <ref name="db.task"/>
  30. <ref name="db.taskprerequisites"/>
  31. <ref name="db.taskrelated"/>
  32. <ref name="db.tasksummary"/>
  33. </choice>
  34. </start>
  35. <define name="db.technical.blocks" combine="choice">
  36. <ref name="db.task"/>
  37. </define>
  38. <define name="db.task.info">
  39. <ref name="db._info.title.req"/>
  40. </define>
  41. <!-- ====================================================================== -->
  42. <div>
  43. <db:refname>task</db:refname>
  44. <db:refpurpose>A task to be completed</db:refpurpose>
  45. <define name="db.task.role.attribute">
  46. <attribute name="role"/>
  47. </define>
  48. <define name="db.task.attlist">
  49. <interleave>
  50. <optional>
  51. <ref name="db.task.role.attribute"/>
  52. </optional>
  53. <ref name="db.common.attributes"/>
  54. <ref name="db.common.linking.attributes"/>
  55. </interleave>
  56. </define>
  57. <define name="db.task">
  58. <element name="task">
  59. <ref name="db.task.attlist"/>
  60. <ref name="db.task.info"/>
  61. <optional>
  62. <ref name="db.tasksummary"/>
  63. </optional>
  64. <optional>
  65. <ref name="db.taskprerequisites"/>
  66. </optional>
  67. <ref name="db.procedure"/>
  68. <zeroOrMore>
  69. <ref name="db.example"/>
  70. </zeroOrMore>
  71. <optional>
  72. <ref name="db.taskrelated"/>
  73. </optional>
  74. </element>
  75. </define>
  76. </div>
  77. <!-- ====================================================================== -->
  78. <div>
  79. <db:refname>tasksummary</db:refname>
  80. <db:refpurpose>A summary of a task</db:refpurpose>
  81. <define name="db.tasksummary.role.attribute">
  82. <attribute name="role"/>
  83. </define>
  84. <define name="db.tasksummary.attlist">
  85. <interleave>
  86. <optional>
  87. <ref name="db.tasksummary.role.attribute"/>
  88. </optional>
  89. <ref name="db.common.attributes"/>
  90. <ref name="db.common.linking.attributes"/>
  91. </interleave>
  92. </define>
  93. <define name="db.tasksummary.info">
  94. <ref name="db._info.title.only"/>
  95. </define>
  96. <define name="db.tasksummary">
  97. <element name="tasksummary">
  98. <ref name="db.tasksummary.attlist"/>
  99. <ref name="db.tasksummary.info"/>
  100. <oneOrMore>
  101. <ref name="db.all.blocks"/>
  102. </oneOrMore>
  103. </element>
  104. </define>
  105. </div>
  106. <!-- ====================================================================== -->
  107. <div>
  108. <db:refname>taskprerequisites</db:refname>
  109. <db:refpurpose>The prerequisites for a task</db:refpurpose>
  110. <define name="db.taskprerequisites.role.attribute">
  111. <attribute name="role"/>
  112. </define>
  113. <define name="db.taskprerequisites.attlist">
  114. <interleave>
  115. <optional>
  116. <ref name="db.taskprerequisites.role.attribute"/>
  117. </optional>
  118. <ref name="db.common.attributes"/>
  119. <ref name="db.common.linking.attributes"/>
  120. </interleave>
  121. </define>
  122. <define name="db.taskprerequisites.info">
  123. <ref name="db._info.title.only"/>
  124. </define>
  125. <define name="db.taskprerequisites">
  126. <element name="taskprerequisites">
  127. <ref name="db.taskprerequisites.attlist"/>
  128. <ref name="db.taskprerequisites.info"/>
  129. <oneOrMore>
  130. <ref name="db.all.blocks"/>
  131. </oneOrMore>
  132. </element>
  133. </define>
  134. </div>
  135. <!-- ====================================================================== -->
  136. <div>
  137. <db:refname>taskrelated</db:refname>
  138. <db:refpurpose>Information related to a task</db:refpurpose>
  139. <define name="db.taskrelated.role.attribute">
  140. <attribute name="role"/>
  141. </define>
  142. <define name="db.taskrelated.attlist">
  143. <interleave>
  144. <optional>
  145. <ref name="db.taskrelated.role.attribute"/>
  146. </optional>
  147. <ref name="db.common.attributes"/>
  148. <ref name="db.common.linking.attributes"/>
  149. </interleave>
  150. </define>
  151. <define name="db.taskrelated.info">
  152. <ref name="db._info.title.only"/>
  153. </define>
  154. <define name="db.taskrelated">
  155. <element name="taskrelated">
  156. <ref name="db.taskrelated.attlist"/>
  157. <ref name="db.taskrelated.info"/>
  158. <oneOrMore>
  159. <ref name="db.all.blocks"/>
  160. </oneOrMore>
  161. </element>
  162. </define>
  163. </div>
  164. </grammar>