Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

197 lines
6.9 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- **********************************************************************-->
  3. <!-- -->
  4. <!-- Copyright (c) 2000-2001 Microsoft Corporation -->
  5. <!-- -->
  6. <!-- This is the schema for the KB -->
  7. <!-- -->
  8. <!-- **********************************************************************-->
  9. <!-- **********************************************************************-->
  10. <!-- -->
  11. <!-- Revision History (remove this before shipping): -->
  12. <!-- -->
  13. <!-- 10/25/2001 - First Draft KB schema (vishnup) -->
  14. <!-- -->
  15. <!-- **********************************************************************-->
  16. <xsd:schema
  17. xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  18. <!-- schema for SSR Knowledge Base -->
  19. <!-- definition of simple types for SSR Knowledge Base -->
  20. <xsd:simpleType name="SsrDataTypeBooleanEnum" base="NMTOKEN">
  21. <enumeration value="True"/>
  22. <enumeration value="False"/>
  23. <enumeration value="TRUE"/>
  24. <enumeration value="FALSE"/>
  25. </xsd:simpleType>
  26. <xsd:simpleType name="SsrDataTypeModeEnum" base="NMTOKEN">
  27. <enumeration value="True"/>
  28. <enumeration value="False"/>
  29. <enumeration value="TRUE"/>
  30. <enumeration value="FALSE"/>
  31. <enumeration value="DEFAULT"/>
  32. <enumeration value="CUSTOM"/>
  33. </xsd:simpleType>
  34. <xsd:simpleType name="SsrTypeRoleTypeEnum" base="NMTOKEN">
  35. <enumeration value="Independent"/>
  36. <enumeration value="Client"/>
  37. <enumeration value="Server"/>
  38. </xsd:simpleType>
  39. <xsd:simpleType name="SsrDataTypeName">
  40. <xsd:restriction base="xsd:string">
  41. <xsd:pattern value="xsd:string"/>
  42. </xsd:restriction>
  43. </xsd:simpleType>
  44. <xsd:simpleType name="SsrDataTypeDisplayName">
  45. <xsd:restriction base="xsd:string">
  46. <xsd:pattern value="xsd:string"/>
  47. </xsd:restriction>
  48. </xsd:simpleType>
  49. <xsd:simpleType name="SsrDataTypeDisplayText">
  50. <xsd:restriction base="xsd:string">
  51. <xsd:pattern value="xsd:string"/>
  52. </xsd:restriction>
  53. </xsd:simpleType>
  54. <xsd:simpleType name="SsrDataTypeRequired">
  55. <xsd:restriction base="xsd:string">
  56. <xsd:pattern value="xsd:string"/>
  57. </xsd:restriction>
  58. </xsd:simpleType>
  59. <xsd:simpleType name="SsrDataTypeMode">
  60. <xsd:restriction base="xsd:string">
  61. <xsd:pattern value="xsd:string"/>
  62. </xsd:restriction>
  63. </xsd:simpleType>
  64. <!-- TODO to define simple type for <Maximum Value="TRUE"/> -->
  65. <!-- definition of complex types for SSR Knowledge Base -->
  66. <xsd:complexType name="SsrDataTypeDescription">
  67. <xsd:sequence>
  68. <xsd:element name="Name" type="SsrDataTypeName" minOccurs="1" maxOccurs="1"/>
  69. <xsd:element name="DisplayName" type="SsrDataTypeDisplayName" minOccurs="1" maxOccurs="1"/>
  70. </xsd:sequence>
  71. </xsd:complexType>
  72. <xsd:complexType name="SsrDataTypeLevel">
  73. <xsd:sequence>
  74. <xsd:element name="Name" type="SsrDataTypeName" minOccurs="1" maxOccurs="1"/>
  75. <xsd:element name="DisplayName" type="SsrDataTypeDisplayName" minOccurs="1" maxOccurs="1"/>
  76. <xsd:element name="DisplayText" type="SsrDataTypeDisplayText" minOccurs="1" maxOccurs="1"/>
  77. </xsd:sequence>
  78. </xsd:complexType>
  79. <xsd:complexType name="SsrDataTypeSecurityLevels">
  80. <xsd:sequence>
  81. <xsd:element name="Level" type="SsrDataTypeLevel" minOccurs="1" maxOccurs="unbounded"/>
  82. </xsd:sequence>
  83. </xsd:complexType>
  84. <xsd:complexType name="SsrDataTypeMaximum">
  85. <xsd:sequence>
  86. <xsd:attribute name="Value" type="SsrDataTypeModeEnum" use="required"/>
  87. <xsd:attribute name="FunctionName" type="SsrDataTypeName" use="optional"/>
  88. <xsd:attribute name="DllName" type="SsrDataTypeName" use="optional"/>
  89. </xsd:sequence>
  90. </xsd:complexType>
  91. <xsd:complexType name="SsrDataTypeTypical">
  92. <xsd:sequence>
  93. <xsd:attribute name="Value" type="SsrDataTypeModeEnum" use="required"/>
  94. <xsd:attribute name="FunctionName" type="SsrDataTypeName" use="optional"/>
  95. <xsd:attribute name="DllName" type="SsrDataTypeName" use="optional"/>
  96. </xsd:sequence>
  97. </xsd:complexType>
  98. <xsd:complexType name="SsrDataTypeSelect">
  99. <xsd:sequence>
  100. <xsd:element name="Maximum" type="SsrDataTypeMaximum" minOccurs="1" maxOccurs="1"/>
  101. <xsd:element name="Typical" type="SsrDataTypeTypical" minOccurs="1" maxOccurs="1"/>
  102. </xsd:sequence>
  103. </xsd:complexType>
  104. <xsd:complexType name="SsrDataTypeService">
  105. <xsd:sequence>
  106. <xsd:element name="Name" type="SsrDataTypeName" minOccurs="1" maxOccurs="1"/>
  107. <xsd:element name="Required" type="SsrDataTypeRequired" minOccurs="1" maxOccurs="1"/>
  108. <xsd:element name="Select" type="SsrDataTypeSelect" minOccurs="1" maxOccurs="1"/>
  109. </xsd:sequence>
  110. </xsd:complexType>
  111. <xsd:complexType name="SsrDataTypeServices">
  112. <xsd:sequence>
  113. <xsd:element name="Name" type="SsrDataTypeService" minOccurs="0" maxOccurs="unbounded"/>
  114. </xsd:sequence>
  115. </xsd:complexType>
  116. <xsd:complexType name="SsrDataTypeRole">
  117. <xsd:sequence>
  118. <xsd:element name="Name" type="SsrDataTypeName" minOccurs="0" maxOccurs="unbounded"/>
  119. <xsd:element name="Selected" type="SsrDataTypeSelect" minOccurs="1" maxOccurs="1"/>
  120. <xsd:element name="Services" type="SsrDataTypeServices" minOccurs="1" maxOccurs="1"/>
  121. <xsd:attribute name="Type" type="SsrTypeRoleTypeEnum"/>
  122. </xsd:sequence>
  123. </xsd:complexType>
  124. <xsd:complexType name="SsrDataTypeRoles">
  125. <xsd:sequence>
  126. <xsd:element name="Role" type="SsrDataTypeRole" minOccurs="0" maxOccurs="unbounded"/>
  127. </xsd:sequence>
  128. </xsd:complexType>
  129. <xsd:complexType name="SsrDataTypeQuestionService">
  130. <xsd:sequence>
  131. <xsd:element name="Name" type="SsrDataTypeName" minOccurs="1" maxOccurs="1"/>
  132. </xsd:sequence>
  133. </xsd:complexType>
  134. <xsd:complexType name="SsrDataTypeQuestionServices">
  135. <xsd:sequence>
  136. <xsd:element name="Service" type="SsrDataTypeQuestionService" minOccurs="1" maxOccurs="unbounded"/>
  137. </xsd:sequence>
  138. </xsd:complexType>
  139. <xsd:complexType name="SsrDataTypeQuestion">
  140. <xsd:sequence>
  141. <xsd:element name="Name" type="SsrDataTypeName" minOccurs="1" maxOccurs="1"/>
  142. <xsd:element name="Services" type="SsrDataTypeQuestionServices" minOccurs="1" maxOccurs="1"/>
  143. </xsd:sequence>
  144. </xsd:complexType>
  145. <xsd:complexType name="SsrDataTypeQuestions">
  146. <xsd:sequence>
  147. <xsd:element name="Question" type="SsrDataTypeQuestion" minOccurs="1" maxOccurs="unbounded"/>
  148. </xsd:sequence>
  149. </xsd:complexType>
  150. <!-- definition of the highest level complex type for SSR Knowledge Base -->
  151. <xsd:element name="SSRKnowledgeBase">
  152. <xsd:complexType>
  153. <xsd:sequence>
  154. <xsd:element name="Description" type="SsrDataTypeDescription" minOccurs="1" maxOccurs="1"/>
  155. <xsd:element name="SecurityLevels" type="SsrDataTypeSecurityLevels" minOccurs="1" maxOccurs="1"/>
  156. <xsd:element name="Roles" type="SsrDataTypeRoles" minOccurs="1" maxOccurs="1"/>
  157. <xsd:element name="Questions" type="SsrDataTypeQuestions" minOccurs="1" maxOccurs="1"/>
  158. </xsd:sequence>
  159. </xsd:complexType>
  160. </xsd:element>
  161. </xsd:schema>