Advertisement
Guest User

Untitled

a guest
Mar 10th, 2013
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.86 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  3. <xs:annotation>
  4. <xs:documentation>Direct Connect Hublist XSD.</xs:documentation>
  5. </xs:annotation>
  6.  
  7. <xs:simpleType name="columnType">
  8. <xs:annotation>
  9. <xs:documentation>Enumeration of the column type that may be used.</xs:documentation>
  10. </xs:annotation>
  11. <xs:restriction base="xs:string">
  12. <xs:enumeration value="string">
  13. <xs:annotation>
  14. <xs:documentation>A column should be interpreted as a string.</xs:documentation>
  15. </xs:annotation>
  16. </xs:enumeration>
  17. <xs:enumeration value="int">
  18. <xs:annotation>
  19. <xs:documentation>A column should be interpreted as an integer.</xs:documentation>
  20. </xs:annotation>
  21. </xs:enumeration>
  22. <xs:enumeration value="bytes">
  23. <xs:annotation>
  24. <xs:documentation>A column should be interpreted as a sequence of bytes.</xs:documentation>
  25. </xs:annotation>
  26. </xs:enumeration>
  27. </xs:restriction>
  28. </xs:simpleType>
  29.  
  30. <xs:simpleType name="statusType">
  31. <xs:annotation>
  32. <xs:documentation>Enumeration of the status of the hub.</xs:documentation>
  33. </xs:annotation>
  34. <xs:restriction base="xs:string">
  35. <xs:enumeration value="Online">
  36. <xs:annotation>
  37. <xs:documentation>The hub is online.</xs:documentation>
  38. </xs:annotation>
  39. </xs:enumeration>
  40. <xs:enumeration value="">
  41. <xs:annotation>
  42. <xs:documentation>No status.</xs:documentation>
  43. </xs:annotation>
  44. </xs:enumeration>
  45. </xs:restriction>
  46. </xs:simpleType>
  47.  
  48. <xs:simpleType name="EMPTY_STR">
  49. <xs:restriction base="xs:string">
  50. <xs:enumeration value=""/>
  51. </xs:restriction>
  52. </xs:simpleType>
  53.  
  54. <xs:simpleType name="extended_long">
  55. <xs:union memberTypes="xs:long EMPTY_STR"/>
  56. </xs:simpleType>
  57.  
  58. <xs:simpleType name="extended_float">
  59. <xs:union memberTypes="xs:float EMPTY_STR"/>
  60. </xs:simpleType>
  61.  
  62. <xs:attribute name="Name" type="xs:string">
  63. <xs:annotation>
  64. <xs:documentation>Name of the element.</xs:documentation>
  65. </xs:annotation>
  66. </xs:attribute>
  67. <xs:attribute name="Address" type="xs:string">
  68. <xs:annotation>
  69. <xs:documentation>Address of the hub or hublist, specified in the URI form (http://example.com, dchub://example.com, adc://example.com etc).</xs:documentation>
  70. </xs:annotation>
  71. </xs:attribute>
  72. <xs:attribute name="Description" type="xs:string">
  73. <xs:annotation>
  74. <xs:documentation>Description of the hub.</xs:documentation>
  75. </xs:annotation>
  76. </xs:attribute>
  77. <xs:attribute name="Country" type="xs:string">
  78. <xs:annotation>
  79. <xs:documentation>Country the hub reside in.</xs:documentation>
  80. </xs:annotation>
  81. </xs:attribute>
  82. <xs:attribute name="Users" type="extended_long">
  83. <xs:annotation>
  84. <xs:documentation>Amount of users.</xs:documentation>
  85. </xs:annotation>
  86. </xs:attribute>
  87. <xs:attribute name="Shared" type="extended_long">
  88. <xs:annotation>
  89. <xs:documentation>Amount of shared bytes.</xs:documentation>
  90. </xs:annotation>
  91. </xs:attribute>
  92. <xs:attribute name="Status" type="statusType">
  93. <xs:annotation>
  94. <xs:documentation>The status of the hub.</xs:documentation>
  95. </xs:annotation>
  96. </xs:attribute>
  97. <xs:attribute name="Minshare" type="extended_long">
  98. <xs:annotation>
  99. <xs:documentation>The minimum share requirement of the hub.</xs:documentation>
  100. </xs:annotation>
  101. </xs:attribute>
  102. <xs:attribute name="Minslots" type="extended_long">
  103. <xs:annotation>
  104. <xs:documentation>The minimum slot requirement of the hub.</xs:documentation>
  105. </xs:annotation>
  106. </xs:attribute>
  107. <xs:attribute name="Maxslots" type="extended_long">
  108. <xs:annotation>
  109. <xs:documentation>The maximum slot requirement of the hub.</xs:documentation>
  110. </xs:annotation>
  111. </xs:attribute>
  112. <xs:attribute name="Maxhubs" type="extended_long">
  113. <xs:annotation>
  114. <xs:documentation>The maximum hubs requirement of the hub.</xs:documentation>
  115. </xs:annotation>
  116. </xs:attribute>
  117. <xs:attribute name="Maxusers" type="extended_long">
  118. <xs:annotation>
  119. <xs:documentation>The maximum users of the hub.</xs:documentation>
  120. </xs:annotation>
  121. </xs:attribute>
  122. <xs:attribute name="Reliability" type="extended_float">
  123. <xs:annotation>
  124. <xs:documentation>The reliability of the hub.</xs:documentation>
  125. </xs:annotation>
  126. </xs:attribute>
  127. <xs:attribute name="Rating" type="xs:string">
  128. <xs:annotation>
  129. <xs:documentation>The rating of the hub.</xs:documentation>
  130. </xs:annotation>
  131. </xs:attribute>
  132. <xs:attribute name="Type" type="columnType">
  133. <xs:annotation>
  134. <xs:documentation>Column type, see the type columnType.</xs:documentation>
  135. </xs:annotation>
  136. </xs:attribute>
  137.  
  138. <xs:element name="Hublist">
  139. <xs:annotation>
  140. <xs:documentation>Hublist element specifying the hubs a hublists has pinged.</xs:documentation>
  141. </xs:annotation>
  142. <xs:complexType>
  143. <xs:sequence minOccurs="0" maxOccurs="unbounded">
  144. <xs:element ref="Hubs"></xs:element>
  145. </xs:sequence>
  146.  
  147. <xs:attribute ref="Name" use="optional">
  148. <xs:annotation>
  149. <xs:documentation>The name of the hublist.</xs:documentation>
  150. </xs:annotation>
  151. </xs:attribute>
  152. <xs:attribute ref="Address" use="optional">
  153. <xs:annotation>
  154. <xs:documentation>The address of the hublist.</xs:documentation>
  155. </xs:annotation>
  156. </xs:attribute>
  157.  
  158. <xs:anyAttribute processContents="lax"></xs:anyAttribute>
  159. </xs:complexType>
  160. </xs:element>
  161.  
  162. <xs:element name="Hubs">
  163. <xs:annotation>
  164. <xs:documentation>Hubs element specifying the columns that the document lists and the hubs within.</xs:documentation>
  165. </xs:annotation>
  166. <xs:complexType>
  167. <xs:sequence>
  168. <xs:element ref="Columns"></xs:element>
  169. <xs:element ref="Hub" maxOccurs="unbounded" minOccurs="0"></xs:element>
  170. </xs:sequence>
  171.  
  172. <xs:anyAttribute processContents="lax"></xs:anyAttribute>
  173. </xs:complexType>
  174. </xs:element>
  175.  
  176. <xs:element name="Columns">
  177. <xs:annotation>
  178. <xs:documentation>Columns element specifying a list of columns.</xs:documentation>
  179. </xs:annotation>
  180. <xs:complexType>
  181. <xs:sequence minOccurs="0" maxOccurs="unbounded">
  182. <xs:element ref="Column"></xs:element>
  183. </xs:sequence>
  184.  
  185. <xs:anyAttribute processContents="lax"></xs:anyAttribute>
  186. </xs:complexType>
  187. </xs:element>
  188.  
  189. <xs:element name="Column">
  190. <xs:annotation>
  191. <xs:documentation>Column element specifying a column to be displayed for the user.</xs:documentation>
  192. </xs:annotation>
  193. <xs:complexType>
  194. <xs:sequence minOccurs="0" maxOccurs="unbounded">
  195. <xs:any processContents="lax"></xs:any>
  196. </xs:sequence>
  197.  
  198. <xs:attribute ref="Name" use="optional">
  199. <xs:annotation>
  200. <xs:documentation>The name of the column.</xs:documentation>
  201. </xs:annotation>
  202. </xs:attribute>
  203. <xs:attribute ref="Type" use="optional">
  204. <xs:annotation>
  205. <xs:documentation>The type of the column.</xs:documentation>
  206. </xs:annotation>
  207. </xs:attribute>
  208.  
  209. <xs:anyAttribute processContents="lax"></xs:anyAttribute>
  210. </xs:complexType>
  211. </xs:element>
  212.  
  213. <xs:element name="Hub">
  214. <xs:annotation>
  215. <xs:documentation>Hub element specifying a hub.</xs:documentation>
  216. </xs:annotation>
  217. <xs:complexType>
  218. <xs:sequence minOccurs="0" maxOccurs="unbounded">
  219. <xs:any processContents="lax"></xs:any>
  220. </xs:sequence>
  221.  
  222. <xs:attribute ref="Name" use="optional">
  223. <xs:annotation>
  224. <xs:documentation>See the reference attribute.</xs:documentation>
  225. </xs:annotation>
  226. </xs:attribute>
  227. <xs:attribute ref="Address" use="optional">
  228. <xs:annotation>
  229. <xs:documentation>See the reference attribute.</xs:documentation>
  230. </xs:annotation>
  231. </xs:attribute>
  232. <xs:attribute ref="Description" use="optional">
  233. <xs:annotation>
  234. <xs:documentation>See the reference attribute.</xs:documentation>
  235. </xs:annotation>
  236. </xs:attribute>
  237. <xs:attribute ref="Country" use="optional">
  238. <xs:annotation>
  239. <xs:documentation>See the reference attribute.</xs:documentation>
  240. </xs:annotation>
  241. </xs:attribute>
  242. <xs:attribute ref="Users" use="optional">
  243. <xs:annotation>
  244. <xs:documentation>See the reference attribute.</xs:documentation>
  245. </xs:annotation>
  246. </xs:attribute>
  247. <xs:attribute ref="Shared" use="optional">
  248. <xs:annotation>
  249. <xs:documentation>See the reference attribute.</xs:documentation>
  250. </xs:annotation>
  251. </xs:attribute>
  252. <xs:attribute ref="Status" use="optional">
  253. <xs:annotation>
  254. <xs:documentation>See the reference attribute.</xs:documentation>
  255. </xs:annotation>
  256. </xs:attribute>
  257. <xs:attribute ref="Minshare" use="optional">
  258. <xs:annotation>
  259. <xs:documentation>See the reference attribute.</xs:documentation>
  260. </xs:annotation>
  261. </xs:attribute>
  262. <xs:attribute ref="Minslots" use="optional">
  263. <xs:annotation>
  264. <xs:documentation>See the reference attribute.</xs:documentation>
  265. </xs:annotation>
  266. </xs:attribute>
  267. <xs:attribute ref="Maxslots" use="optional">
  268. <xs:annotation>
  269. <xs:documentation>See the reference attribute.</xs:documentation>
  270. </xs:annotation>
  271. </xs:attribute>
  272. <xs:attribute ref="Maxhubs" use="optional">
  273. <xs:annotation>
  274. <xs:documentation>See the reference attribute.</xs:documentation>
  275. </xs:annotation>
  276. </xs:attribute>
  277. <xs:attribute ref="Maxusers" use="optional">
  278. <xs:annotation>
  279. <xs:documentation>See the reference attribute.</xs:documentation>
  280. </xs:annotation>
  281. </xs:attribute>
  282. <xs:attribute ref="Reliability" use="optional">
  283. <xs:annotation>
  284. <xs:documentation>See the reference attribute.</xs:documentation>
  285. </xs:annotation>
  286. </xs:attribute>
  287. <xs:attribute ref="Rating" use="optional">
  288. <xs:annotation>
  289. <xs:documentation>See the reference attribute.</xs:documentation>
  290. </xs:annotation>
  291. </xs:attribute>
  292.  
  293. <xs:anyAttribute processContents="lax"></xs:anyAttribute>
  294. </xs:complexType>
  295. </xs:element>
  296.  
  297. </xs:schema>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement