MAResponse.xsd 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: mqp
  5. (C) Copyright IBM Corp. 2003, 2010
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  9. <xs:element name="ResponseRoot">
  10. <xs:annotation>
  11. <xs:documentation>The top level element</xs:documentation>
  12. </xs:annotation>
  13. <xs:complexType>
  14. <xs:sequence>
  15. <xs:element name="folder" type="folderType" minOccurs="0" maxOccurs="unbounded"/>
  16. <xs:element name="functionsRoot" type="functionsRootType" minOccurs="0"/>
  17. <xs:element name="queryItem" type="queryItemType" minOccurs="0" maxOccurs="unbounded"/>
  18. <xs:element name="queryItemFolder" type="queryItemFolderType" minOccurs="0" maxOccurs="unbounded"/>
  19. <xs:element name="querySubject" type="querySubjectType" minOccurs="0" maxOccurs="unbounded"/>
  20. <xs:element name="dimension" type="dimensionType" minOccurs="0" maxOccurs="unbounded"/>
  21. <xs:element name="measure" type="measureType" minOccurs="0" maxOccurs="unbounded"/>
  22. <xs:element name="member" type="memberType" minOccurs="0" maxOccurs="unbounded"/>
  23. <xs:element name="level" type="levelType" minOccurs="0" maxOccurs="unbounded"/>
  24. <xs:element name="hierarchy" type="hierarchyType" minOccurs="0" maxOccurs="unbounded"/>
  25. <xs:sequence>
  26. <xs:element ref="defaultLocale" minOccurs="0"/>
  27. <xs:element name="locales" type="localesType" minOccurs="0"/>
  28. <xs:element name="package" type="packageType" minOccurs="0">
  29. <xs:annotation>
  30. <xs:documentation>Package Name</xs:documentation>
  31. </xs:annotation>
  32. </xs:element>
  33. <xs:element name="decimalSeparator" type="decimalSeparatorType" minOccurs="0"/>
  34. <xs:element name="listSeparator" type="listSeparatorType" minOccurs="0"/>
  35. <xs:element name="modelSearchPath" type="modelSearchPathType" minOccurs="0">
  36. <xs:annotation>
  37. <xs:documentation>CM Model search path - specifies connection to the package</xs:documentation>
  38. </xs:annotation>
  39. </xs:element>
  40. <xs:element ref="effectiveLocale" minOccurs="0"/>
  41. </xs:sequence>
  42. </xs:sequence>
  43. </xs:complexType>
  44. </xs:element>
  45. <xs:complexType name="calculationType">
  46. <xs:annotation>
  47. <xs:documentation>Defines the type used for the Calculation element</xs:documentation>
  48. </xs:annotation>
  49. <xs:attribute name="ID" type="xs:string" use="required"/>
  50. <xs:attribute name="_ref" type="xs:string" use="required"/>
  51. <xs:attribute name="name" type="xs:string" use="required"/>
  52. <xs:attribute name="_path" type="xs:string" use="required"/>
  53. <xs:attribute name="usage" type="xs:boolean"/>
  54. <xs:attribute name="description" type="xs:string"/>
  55. </xs:complexType>
  56. <xs:complexType name="decimalSeparatorType">
  57. <xs:annotation>
  58. <xs:documentation>Defines the type used for the decimalSeparator element. This will be '.' or ',' based on the authoring locale, specified in the request</xs:documentation>
  59. </xs:annotation>
  60. <xs:attribute name="value" type="xs:NMTOKEN" use="required"/>
  61. </xs:complexType>
  62. <xs:element name="defaultLocale" type="xs:string">
  63. <xs:annotation>
  64. <xs:documentation>Default locale specified in the model</xs:documentation>
  65. </xs:annotation>
  66. </xs:element>
  67. <xs:element name="effectiveLocale" type="xs:string">
  68. <xs:annotation>
  69. <xs:documentation>Calculate based on the model supported locales</xs:documentation>
  70. </xs:annotation>
  71. </xs:element>
  72. <xs:complexType name="filterType">
  73. <xs:annotation>
  74. <xs:documentation>Defines the type used for the Filter element</xs:documentation>
  75. </xs:annotation>
  76. <xs:attribute name="ID" type="xs:string" use="required"/>
  77. <xs:attribute name="_ref" type="xs:string" use="required"/>
  78. <xs:attribute name="name" type="xs:string" use="required"/>
  79. <xs:attribute name="_path" type="xs:string" use="required"/>
  80. <xs:attribute name="description" type="xs:string"/>
  81. </xs:complexType>
  82. <xs:complexType name="folderType">
  83. <xs:annotation>
  84. <xs:documentation>Defines the type used for the Folder element</xs:documentation>
  85. </xs:annotation>
  86. <xs:sequence minOccurs="0" maxOccurs="unbounded">
  87. <xs:element name="querySubject" type="querySubjectType" minOccurs="0" maxOccurs="unbounded"/>
  88. <xs:element name="folder" type="folderType" minOccurs="0" maxOccurs="unbounded"/>
  89. <xs:element name="calculation" type="calculationType" minOccurs="0" maxOccurs="unbounded"/>
  90. <xs:element name="filter" type="filterType" minOccurs="0" maxOccurs="unbounded"/>
  91. <xs:element name="dimension" type="dimensionType" minOccurs="0" maxOccurs="unbounded"/>
  92. </xs:sequence>
  93. <xs:attribute name="ID" type="xs:string" use="required"/>
  94. <xs:attribute name="_ref" type="xs:string" use="required"/>
  95. <xs:attribute name="name" type="xs:string" use="required"/>
  96. <xs:attribute name="_path" type="xs:string" use="required"/>
  97. <xs:attribute name="description" type="xs:string"/>
  98. </xs:complexType>
  99. <xs:complexType name="functionType">
  100. <xs:annotation>
  101. <xs:documentation>Defines the type used for the Function element</xs:documentation>
  102. </xs:annotation>
  103. <xs:attribute name="ID" type="xs:string" use="required"/>
  104. <xs:attribute name="tip" type="xs:string"/>
  105. <xs:attribute name="type">
  106. <xs:simpleType>
  107. <xs:restriction base="xs:NMTOKEN">
  108. <xs:enumeration value="function"/>
  109. <xs:enumeration value="literal"/>
  110. <xs:enumeration value="operator"/>
  111. <xs:enumeration value="summary"/>
  112. </xs:restriction>
  113. </xs:simpleType>
  114. </xs:attribute>
  115. <xs:attribute name="syntax" type="xs:string"/>
  116. <xs:attribute name="parameterType">
  117. <xs:simpleType>
  118. <xs:restriction base="xs:NMTOKEN">
  119. <xs:enumeration value="date"/>
  120. <xs:enumeration value="numeric"/>
  121. <xs:enumeration value="string"/>
  122. <xs:enumeration value="time"/>
  123. <xs:enumeration value="unknown"/>
  124. <xs:enumeration value="unlimited"/>
  125. </xs:restriction>
  126. </xs:simpleType>
  127. </xs:attribute>
  128. </xs:complexType>
  129. <xs:complexType name="functionsRootType">
  130. <xs:annotation>
  131. <xs:documentation>Defines the type used for the Function root element.</xs:documentation>
  132. </xs:annotation>
  133. <xs:sequence>
  134. <xs:element name="group" type="groupType" maxOccurs="unbounded"/>
  135. </xs:sequence>
  136. </xs:complexType>
  137. <xs:complexType name="groupType">
  138. <xs:annotation>
  139. <xs:documentation>Defines the type used for the group element.</xs:documentation>
  140. </xs:annotation>
  141. <xs:sequence>
  142. <xs:element name="function" type="functionType" minOccurs="0" maxOccurs="unbounded"/>
  143. <xs:element name="group" type="groupType" minOccurs="0" maxOccurs="unbounded"/>
  144. </xs:sequence>
  145. <xs:attribute name="ID" type="xs:string" use="required"/>
  146. <xs:attribute name="name" type="xs:string" use="required"/>
  147. </xs:complexType>
  148. <xs:complexType name="listSeparatorType">
  149. <xs:annotation>
  150. <xs:documentation>Defines the type used for the listSeparator element. This will be either a comma(,) or semicolon (;). It depends on the authoringLocale that was specified on the request.</xs:documentation>
  151. </xs:annotation>
  152. <xs:attribute name="value" type="xs:string" use="required"/>
  153. </xs:complexType>
  154. <xs:element name="locale">
  155. <xs:annotation>
  156. <xs:documentation>This will be one of the locales that is specified in the model</xs:documentation>
  157. </xs:annotation>
  158. <xs:simpleType>
  159. <xs:restriction base="xs:string">
  160. <xs:enumeration value="en-US"/>
  161. <xs:enumeration value="fr-fr"/>
  162. </xs:restriction>
  163. </xs:simpleType>
  164. </xs:element>
  165. <xs:complexType name="localesType">
  166. <xs:annotation>
  167. <xs:documentation>Defines the type used for the locale element</xs:documentation>
  168. </xs:annotation>
  169. <xs:sequence>
  170. <xs:element ref="locale" maxOccurs="unbounded"/>
  171. </xs:sequence>
  172. </xs:complexType>
  173. <xs:complexType name="modelSearchPathType">
  174. <xs:annotation>
  175. <xs:documentation>Defines the type used for the modelSearchPath element</xs:documentation>
  176. </xs:annotation>
  177. <xs:attribute name="value" type="xs:string" use="required"/>
  178. </xs:complexType>
  179. <xs:complexType name="packageType">
  180. <xs:annotation>
  181. <xs:documentation>Defines the type used for the package Element</xs:documentation>
  182. </xs:annotation>
  183. <xs:attribute name="name" type="xs:string" use="required"/>
  184. </xs:complexType>
  185. <xs:complexType name="queryItemType">
  186. <xs:annotation>
  187. <xs:documentation>Defines the type used for the Query Item element</xs:documentation>
  188. </xs:annotation>
  189. <xs:attribute name="ID" type="xs:string" use="required"/>
  190. <xs:attribute name="bmtId" type="xs:string"/>
  191. <xs:attribute name="usage" use="required">
  192. <xs:simpleType>
  193. <xs:restriction base="xs:NMTOKEN">
  194. <xs:enumeration value="0"/>
  195. <xs:enumeration value="2"/>
  196. <xs:enumeration value="3"/>
  197. <xs:enumeration value="7"/>
  198. <xs:enumeration value="attribute"/>
  199. <xs:enumeration value="fact"/>
  200. <xs:enumeration value="identifier"/>
  201. <xs:enumeration value="unknown"/>
  202. </xs:restriction>
  203. </xs:simpleType>
  204. </xs:attribute>
  205. <xs:attribute name="datatype">
  206. <xs:simpleType>
  207. <xs:restriction base="xs:NMTOKEN">
  208. <xs:enumeration value="characterlength16"/>
  209. <xs:enumeration value="datetime"/>
  210. <xs:enumeration value="decimal"/>
  211. <xs:enumeration value="float64"/>
  212. </xs:restriction>
  213. </xs:simpleType>
  214. </xs:attribute>
  215. <xs:attribute name="promptType" type="xs:string"/>
  216. <xs:attribute name="unSortable" type="xs:boolean"/>
  217. <xs:attribute name="displayType" type="xs:string"/>
  218. <xs:attribute name="regularAggregate">
  219. <xs:simpleType>
  220. <xs:restriction base="xs:NMTOKEN">
  221. <xs:enumeration value="count"/>
  222. <xs:enumeration value="sum"/>
  223. <xs:enumeration value="unsupported"/>
  224. </xs:restriction>
  225. </xs:simpleType>
  226. </xs:attribute>
  227. <xs:attribute name="promptCascadeOnRef" type="xs:string"/>
  228. <xs:attribute name="promptFilterItemRef" type="xs:string"/>
  229. <xs:attribute name="promptDisplayItemRef" type="xs:string"/>
  230. <xs:attribute name="promptUseItemRef" type="xs:string"/>
  231. <xs:attribute name="_ref" type="xs:string"/>
  232. <xs:attribute name="name" type="xs:string"/>
  233. <xs:attribute name="_path" type="xs:string"/>
  234. <xs:attribute name="screenTip" type="xs:string"/>
  235. <xs:attribute name="description" type="xs:string"/>
  236. </xs:complexType>
  237. <xs:complexType name="queryItemFolderType">
  238. <xs:annotation>
  239. <xs:documentation>Defines the type used for the Query Item Folder element</xs:documentation>
  240. </xs:annotation>
  241. <xs:sequence>
  242. <xs:element name="queryItem" type="queryItemType" minOccurs="0" maxOccurs="unbounded"/>
  243. </xs:sequence>
  244. <xs:attribute name="ID" type="xs:string" use="required"/>
  245. <xs:attribute name="_ref" type="xs:string" use="required"/>
  246. <xs:attribute name="name" type="xs:string" use="required"/>
  247. <xs:attribute name="_path" type="xs:string" use="required"/>
  248. </xs:complexType>
  249. <xs:complexType name="querySubjectType">
  250. <xs:annotation>
  251. <xs:documentation>Defines the type used for the Query Subject element</xs:documentation>
  252. </xs:annotation>
  253. <xs:sequence>
  254. <xs:element name="QueryItem" type="queryItemType" minOccurs="0" maxOccurs="unbounded"/>
  255. <xs:element name="defaultLocale"/>
  256. </xs:sequence>
  257. <xs:attribute name="ID" type="xs:string" use="required"/>
  258. <xs:attribute name="_ref" type="xs:string"/>
  259. <xs:attribute name="name" type="xs:string"/>
  260. <xs:attribute name="_path" type="xs:string"/>
  261. <xs:attribute name="description" type="xs:string"/>
  262. <xs:attribute name="bmtId" type="xs:string"/>
  263. </xs:complexType>
  264. <xs:complexType name="measureType">
  265. <xs:annotation>
  266. <xs:documentation>Defines the type used for the Measure element</xs:documentation>
  267. </xs:annotation>
  268. <xs:complexContent>
  269. <xs:extension base="queryItemType">
  270. <xs:sequence>
  271. <xs:element name="measure" type="measureType" minOccurs="0" maxOccurs="unbounded"/>
  272. </xs:sequence>
  273. </xs:extension>
  274. </xs:complexContent>
  275. </xs:complexType>
  276. <xs:complexType name="levelType">
  277. <xs:annotation>
  278. <xs:documentation>Defines the type used for the Level element</xs:documentation>
  279. </xs:annotation>
  280. <xs:complexContent>
  281. <xs:extension base="queryItemFolderType"/>
  282. </xs:complexContent>
  283. </xs:complexType>
  284. <xs:complexType name="memberType">
  285. <xs:annotation>
  286. <xs:documentation>Defines the type used for the member element. Note: for custom properties, the attribute name will be custom property name.</xs:documentation>
  287. </xs:annotation>
  288. <xs:sequence>
  289. <xs:element name="member" type="memberType" minOccurs="0" maxOccurs="unbounded"/>
  290. </xs:sequence>
  291. <xs:attribute name="_ref" type="xs:string" use="optional"/>
  292. <xs:attribute name="_path" type="xs:string" use="optional"/>
  293. <xs:attribute name="memberUniqueName" type="xs:string" use="optional">
  294. <xs:annotation>
  295. <xs:documentation>Unique name of the member.</xs:documentation>
  296. </xs:annotation>
  297. </xs:attribute>
  298. <xs:attribute name="memberCaption" type="xs:string" use="optional">
  299. <xs:annotation>
  300. <xs:documentation>A user-friendly name for display purposes.</xs:documentation>
  301. </xs:annotation>
  302. </xs:attribute>
  303. <xs:attribute name="levelUniqueName" type="xs:string" use="optional">
  304. <xs:annotation>
  305. <xs:documentation>Unique name of the level.</xs:documentation>
  306. </xs:annotation>
  307. </xs:attribute>
  308. <xs:attribute name="levelNumber" type="xs:unsignedInt" use="optional">
  309. <xs:annotation>
  310. <xs:documentation>Number of levels descended from root, starting at zero.</xs:documentation>
  311. </xs:annotation>
  312. </xs:attribute>
  313. <xs:attribute name="parentUniqueName" type="xs:string" use="optional">
  314. <xs:annotation>
  315. <xs:documentation>Name of parent. If null, the member has no parent.</xs:documentation>
  316. </xs:annotation>
  317. </xs:attribute>
  318. <xs:attribute name="levelLabel" type="xs:string" use="optional">
  319. <xs:annotation>
  320. <xs:documentation>Level label for the member.</xs:documentation>
  321. </xs:annotation>
  322. </xs:attribute>
  323. <xs:attribute name="dimensionUniqueName" type="xs:string" use="optional">
  324. <xs:annotation>
  325. <xs:documentation>Unique name of the dimension.</xs:documentation>
  326. </xs:annotation>
  327. </xs:attribute>
  328. <xs:attribute name="hierarchyUniqueName" type="xs:string" use="optional">
  329. <xs:annotation>
  330. <xs:documentation>Unique name of the hierarchy.</xs:documentation>
  331. </xs:annotation>
  332. </xs:attribute>
  333. </xs:complexType>
  334. <xs:complexType name="hierarchyType">
  335. <xs:annotation>
  336. <xs:documentation>Defines the type used for the hierarchy element</xs:documentation>
  337. </xs:annotation>
  338. <xs:complexContent>
  339. <xs:extension base="objectType">
  340. <xs:sequence>
  341. <xs:element name="level" type="levelType" minOccurs="0" maxOccurs="unbounded"/>
  342. <xs:element name="member" type="memberType" minOccurs="0" maxOccurs="unbounded"/>
  343. </xs:sequence>
  344. </xs:extension>
  345. </xs:complexContent>
  346. </xs:complexType>
  347. <xs:complexType name="objectType">
  348. <xs:attribute name="ID" type="xs:string" use="required"/>
  349. <xs:attribute name="_ref" type="xs:string" use="required"/>
  350. <xs:attribute name="name" type="xs:string" use="required"/>
  351. <xs:attribute name="_path" type="xs:string" use="required"/>
  352. <xs:attribute name="description" type="xs:string" use="optional"/>
  353. </xs:complexType>
  354. <xs:complexType name="dimensionType">
  355. <xs:complexContent>
  356. <xs:extension base="querySubjectType">
  357. <xs:sequence>
  358. <xs:element name="member" type="memberType" minOccurs="0" maxOccurs="unbounded"/>
  359. <xs:choice>
  360. <xs:choice minOccurs="0" maxOccurs="unbounded">
  361. <xs:element name="level" type="levelType"/>
  362. <xs:element name="hierarchy" type="hierarchyType"/>
  363. </xs:choice>
  364. <xs:element name="measure" type="measureType" minOccurs="0" maxOccurs="unbounded"/>
  365. </xs:choice>
  366. </xs:sequence>
  367. </xs:extension>
  368. </xs:complexContent>
  369. </xs:complexType>
  370. </xs:schema>