cognoslaunch.xsd 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: ps
  5. (C) Copyright IBM Corp. 2005, 2011
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <!--
  9. Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
  10. Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
  11. -->
  12. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
  13. <xs:element name="userInterface">
  14. <xs:annotation>
  15. <xs:documentation>User interface name of studio.</xs:documentation>
  16. </xs:annotation>
  17. <xs:complexType mixed="true">
  18. <xs:attribute name="mustExist" type="xs:boolean" use="optional" default="false"/>
  19. </xs:complexType>
  20. </xs:element>
  21. <xs:element name="launchComponent">
  22. <xs:annotation>
  23. <xs:documentation>Description of parameters a component uses on launch.</xs:documentation>
  24. </xs:annotation>
  25. <xs:complexType>
  26. <xs:sequence>
  27. <xs:element ref="capability" minOccurs="0"/>
  28. <xs:element ref="userInterface" minOccurs="0"/>
  29. <xs:element ref="URLStructure" minOccurs="0"/>
  30. <xs:element ref="param" maxOccurs="unbounded"/>
  31. </xs:sequence>
  32. <xs:attribute name="name" type="xs:string" use="required"/>
  33. <xs:attribute name="launchType" type="launchTypes" use="required"/>
  34. <xs:attribute name="formMethod" type="formMethod" use="optional"/>
  35. <xs:attribute name="URL" type="xs:string" use="optional"/>
  36. <xs:attribute name="URLStructure" type="xs:boolean" use="optional" default="false"/>
  37. <xs:attribute name="jsObject" type="xs:string" use="optional"/>
  38. </xs:complexType>
  39. </xs:element>
  40. <xs:element name="URLStructure">
  41. <xs:annotation>
  42. <xs:documentation>Description of URL to generate.</xs:documentation>
  43. </xs:annotation>
  44. <xs:complexType>
  45. <xs:sequence>
  46. <xs:element ref="uriParam" maxOccurs="unbounded"/>
  47. </xs:sequence>
  48. </xs:complexType>
  49. </xs:element>
  50. <xs:element name="uriParam">
  51. <xs:annotation>
  52. <xs:documentation>Address segment in the generated URL.</xs:documentation>
  53. </xs:annotation>
  54. <xs:complexType mixed="true">
  55. <xs:attribute name="refparam" type="xs:string" use="optional"/>
  56. <xs:attribute name="refnode" type="xs:string" use="optional"/>
  57. <xs:attribute name="refattr" type="xs:string" use="optional"/>
  58. </xs:complexType>
  59. </xs:element>
  60. <xs:simpleType name="launchTypes">
  61. <xs:restriction base="xs:string">
  62. <xs:enumeration value="form"/>
  63. <xs:enumeration value="javascript"/>
  64. <xs:enumeration value="url"/>
  65. </xs:restriction>
  66. </xs:simpleType>
  67. <xs:simpleType name="formMethod">
  68. <xs:restriction base="xs:string">
  69. <xs:enumeration value="GET"/>
  70. <xs:enumeration value="PUT"/>
  71. </xs:restriction>
  72. </xs:simpleType>
  73. <xs:element name="param">
  74. <xs:annotation>
  75. <xs:documentation>Parameter values.</xs:documentation>
  76. </xs:annotation>
  77. <xs:complexType>
  78. <xs:sequence>
  79. <xs:sequence minOccurs="0" maxOccurs="unbounded">
  80. <xs:element ref="alias"/>
  81. </xs:sequence>
  82. <xs:sequence minOccurs="0">
  83. <xs:element ref="defaultValue"/>
  84. </xs:sequence>
  85. <xs:sequence minOccurs="0">
  86. <xs:element ref="valueRule"/>
  87. </xs:sequence>
  88. <xs:sequence minOccurs="0" maxOccurs="unbounded">
  89. <xs:element ref="prompt"/>
  90. </xs:sequence>
  91. </xs:sequence>
  92. <xs:attribute name="name" type="xs:string" use="required"/>
  93. <xs:attribute name="forceRender" type="xs:boolean" use="optional" default="true"/>
  94. <xs:attribute name="mandatory" type="xs:boolean" use="optional" default="false"/>
  95. </xs:complexType>
  96. </xs:element>
  97. <xs:element name="alias">
  98. <xs:annotation>
  99. <xs:documentation>Provides aliases for parameter names.</xs:documentation>
  100. </xs:annotation>
  101. <xs:complexType mixed="true">
  102. <xs:attributeGroup ref="conditionSpecOptional"/>
  103. </xs:complexType>
  104. </xs:element>
  105. <xs:element name="prompt">
  106. <xs:annotation>
  107. <xs:documentation>Points to a prompt morphlet to be used when the parameter is not specified.</xs:documentation>
  108. </xs:annotation>
  109. <xs:complexType mixed="true">
  110. <xs:attributeGroup ref="conditionSpecOptional"/>
  111. <xs:attribute name="forcePrompt" type="xs:boolean" use="optional" default="false"/>
  112. <xs:attribute name="type" type="promptTypes" use="optional" default="xts"/>
  113. <xs:attribute name="subType" type="xs:string" use="optional"/>
  114. </xs:complexType>
  115. </xs:element>
  116. <xs:element name="defaultValue">
  117. <xs:annotation>
  118. <xs:documentation>Default value for a parameter</xs:documentation>
  119. </xs:annotation>
  120. <xs:complexType mixed="true">
  121. <xs:choice>
  122. <xs:sequence>
  123. <xs:element ref="cafValue"/>
  124. </xs:sequence>
  125. <xs:sequence minOccurs="0" maxOccurs="unbounded">
  126. <xs:element ref="conditionalValue"/>
  127. </xs:sequence>
  128. </xs:choice>
  129. <xs:attribute name="forceDefault" type="xs:boolean" use="optional" default="false"/>
  130. <xs:attribute name="forceWhenParamBlank" type="xs:boolean" use="optional" default="false"/>
  131. </xs:complexType>
  132. </xs:element>
  133. <xs:element name="referenceValue">
  134. <xs:annotation>
  135. <xs:documentation>Default value from referenced source</xs:documentation>
  136. </xs:annotation>
  137. <xs:complexType mixed="true">
  138. <xs:attribute name="refNode" type="xs:string" use="required"/>
  139. <xs:attribute name="refName" type="xs:string" use="required"/>
  140. <xs:attribute name="refItem" type="xs:string" use="optional"/>
  141. </xs:complexType>
  142. </xs:element>
  143. <xs:element name="conditionalValue">
  144. <xs:annotation>
  145. <xs:documentation>Conditional default value</xs:documentation>
  146. </xs:annotation>
  147. <xs:complexType mixed="true">
  148. <xs:sequence minOccurs="0">
  149. <xs:element ref="referenceValue"/>
  150. </xs:sequence>
  151. <xs:attribute name="conditionNode" type="xs:string" use="optional"/>
  152. <xs:attributeGroup ref="conditionSpecRequired"/>
  153. </xs:complexType>
  154. </xs:element>
  155. <xs:attributeGroup name="conditionSpecOptional">
  156. <xs:attribute name="conditionParam" type="xs:string" use="optional"/>
  157. <xs:attribute name="conditionValue" type="xs:string" use="optional"/>
  158. </xs:attributeGroup>
  159. <xs:attributeGroup name="conditionSpecRequired">
  160. <xs:attribute name="conditionParam" type="xs:string" use="required"/>
  161. <xs:attribute name="conditionValue" type="xs:string" use="required"/>
  162. </xs:attributeGroup>
  163. <xs:element name="valueRule">
  164. <xs:annotation>
  165. <xs:documentation>Transformational rule applied to the parameter value before use.</xs:documentation>
  166. </xs:annotation>
  167. <xs:complexType>
  168. <xs:sequence minOccurs="0" maxOccurs="unbounded">
  169. <xs:element ref="valueAlias"/>
  170. </xs:sequence>
  171. <xs:attribute name="headConstant" type="xs:string" use="optional"/>
  172. <xs:attribute name="tailConstant" type="xs:string" use="optional"/>
  173. </xs:complexType>
  174. </xs:element>
  175. <xs:element name="valueAlias">
  176. <xs:annotation>
  177. <xs:documentation>Alias applied to a parameter value.</xs:documentation>
  178. </xs:annotation>
  179. <xs:complexType mixed="true">
  180. <xs:attribute name="value" type="xs:string" use="required"/>
  181. </xs:complexType>
  182. </xs:element>
  183. <xs:element name="cafValue">
  184. <xs:annotation>
  185. <xs:documentation>CAF Supplied Value</xs:documentation>
  186. </xs:annotation>
  187. <xs:complexType>
  188. <xs:attribute name="type" type="cafValueTypes" use="required"/>
  189. <xs:attribute name="component" type="xs:string" use="optional"/>
  190. </xs:complexType>
  191. </xs:element>
  192. <xs:simpleType name="cafValueTypes">
  193. <xs:annotation>
  194. <xs:documentation>Allowable CAF Value types.</xs:documentation>
  195. </xs:annotation>
  196. <xs:restriction base="xs:string">
  197. <xs:enumeration value="contextid"/>
  198. <xs:enumeration value="signedreporturls"/>
  199. </xs:restriction>
  200. </xs:simpleType>
  201. <xs:element name="capability">
  202. <xs:annotation>
  203. <xs:documentation>Values used to determine if the user has the capability to launch the studio.</xs:documentation>
  204. </xs:annotation>
  205. <xs:complexType>
  206. <xs:choice minOccurs="0">
  207. <xs:element ref="allowBrowsers"/>
  208. <xs:element ref="denyBrowsers"/>
  209. <xs:element ref="userProfiles"/>
  210. </xs:choice>
  211. <xs:attribute name="name" type="xs:string" use="optional"/>
  212. <xs:attribute name="value" type="xs:string" use="optional"/>
  213. </xs:complexType>
  214. </xs:element>
  215. <xs:element name="userProfiles">
  216. <xs:annotation>
  217. <xs:documentation>User Profile required for capability</xs:documentation>
  218. </xs:annotation>
  219. <xs:complexType>
  220. <xs:sequence maxOccurs="unbounded">
  221. <xs:element ref="profile"/>
  222. </xs:sequence>
  223. </xs:complexType>
  224. </xs:element>
  225. <!-- <xs:element name="profile">
  226. <xs:annotation>
  227. <xs:documentation>User Profile(s) associated with the capability</xs:documentation>
  228. </xs:annotation>
  229. <xs:complexType>
  230. <xs:sequence>
  231. <xs:sequence maxOccurs="1">
  232. <xs:element ref="mapsToKeyValues"/>
  233. </xs:sequence>
  234. <xs:sequence maxOccurs="1">
  235. <xs:element ref="allow-profile-values"/>
  236. </xs:sequence>
  237. </xs:sequence>
  238. <xs:attribute name="name" type="xs:string" use="required"/>
  239. </xs:complexType>
  240. </xs:element> -->
  241. <xs:element name="profile">
  242. <xs:annotation>
  243. <xs:documentation>User Profile(s) associated with the capability</xs:documentation>
  244. </xs:annotation>
  245. <xs:complexType>
  246. <xs:sequence maxOccurs="unbounded">
  247. <xs:element ref="mapsToKeyValues"/>
  248. </xs:sequence>
  249. <xs:attribute name="name" type="xs:string" use="required"/>
  250. </xs:complexType>
  251. </xs:element>
  252. <xs:element name="allow-profile-values">
  253. <xs:annotation>
  254. <xs:documentation>Profiles supported for this particular named profile</xs:documentation>
  255. </xs:annotation>
  256. <xs:complexType>
  257. <xs:sequence maxOccurs="unbounded">
  258. <xs:element ref="value"/>
  259. </xs:sequence>
  260. </xs:complexType>
  261. </xs:element>
  262. <xs:element name="mapsToKeyValues">
  263. <xs:annotation>
  264. <xs:documentation>The session key and expected supported values</xs:documentation>
  265. </xs:annotation>
  266. <xs:complexType>
  267. <xs:sequence maxOccurs="unbounded">
  268. <xs:element ref="value"/>
  269. </xs:sequence>
  270. <xs:attribute name="key" type="xs:string" use="required"/>
  271. </xs:complexType>
  272. </xs:element>
  273. <xs:element name="value">
  274. <xs:annotation>
  275. <xs:documentation>a leaf node containing a value</xs:documentation>
  276. </xs:annotation>
  277. </xs:element>
  278. <xs:element name="denyBrowsers">
  279. <xs:annotation>
  280. <xs:documentation>List of browsers which cannot use the studio. Cannot be used with allowBrowsers.</xs:documentation>
  281. </xs:annotation>
  282. <xs:complexType>
  283. <xs:sequence>
  284. <xs:element ref="browser" maxOccurs="unbounded"/>
  285. </xs:sequence>
  286. </xs:complexType>
  287. </xs:element>
  288. <xs:element name="allowBrowsers">
  289. <xs:annotation>
  290. <xs:documentation>List of browsers which can use the studio. Cannot be used with denyBrowsers.</xs:documentation>
  291. </xs:annotation>
  292. <xs:complexType>
  293. <xs:sequence>
  294. <xs:element ref="browser" maxOccurs="unbounded"/>
  295. </xs:sequence>
  296. </xs:complexType>
  297. </xs:element>
  298. <xs:element name="browser" type="xs:string"/>
  299. <xs:simpleType name="promptTypes">
  300. <xs:annotation>
  301. <xs:documentation>Currently supported prompt types are 'internal' and 'xts'. The xts prompt type invokes the specified morphlet to set the parameters. The internal prompt type invokes the prompts stored in launch.xts.</xs:documentation>
  302. </xs:annotation>
  303. <xs:restriction base="xs:string">
  304. <xs:enumeration value="internal"/>
  305. <xs:enumeration value="xts"/>
  306. </xs:restriction>
  307. </xs:simpleType>
  308. </xs:schema>