V5_report.xsd 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: rspec
  5. (C) Copyright IBM Corp. 2003, 2017
  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="http://developer.cognos.com/schemas/report/14.2/" xmlns:rspec="http://developer.cognos.com/schemas/report/14.2/" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://developer.cognos.com/schemas/report/14.2/" elementFormDefault="qualified" attributeFormDefault="unqualified">
  13. <xs:include schemaLocation="V5_base.xsd"/>
  14. <xs:include schemaLocation="V5_layoutbase.xsd"/>
  15. <xs:include schemaLocation="V5_format.xsd"/>
  16. <xs:include schemaLocation="V5_style.xsd"/>
  17. <xs:include schemaLocation="V5_prompt.xsd"/>
  18. <xs:include schemaLocation="V5_chart.xsd"/>
  19. <xs:include schemaLocation="V5_layout.xsd"/>
  20. <xs:element name="report">
  21. <xs:annotation>
  22. <xs:documentation>This element contains the entire report specification. The expressionLocale attribute indicates the locale of all report and query expressions in the report. </xs:documentation>
  23. </xs:annotation>
  24. <xs:complexType>
  25. <xs:all>
  26. <xs:element ref="modelPath" minOccurs="0"/>
  27. <xs:element ref="layouts"/>
  28. <xs:element name="queries" minOccurs="0">
  29. <xs:complexType>
  30. <xs:sequence>
  31. <xs:choice maxOccurs="unbounded">
  32. <xs:element ref="query"/>
  33. </xs:choice>
  34. </xs:sequence>
  35. </xs:complexType>
  36. <xs:unique name="shareNameUniqueness">
  37. <xs:selector xpath="rspec:query/rspec:selection/rspec:dataItemMemberSet/rspec:dataItemSharing"/>
  38. <xs:field xpath="@shareName"/>
  39. </xs:unique>
  40. </xs:element>
  41. <xs:element ref="classStyles" minOccurs="0"/>
  42. <xs:element ref="burst" minOccurs="0"/>
  43. <xs:element ref="reportVariables" minOccurs="0"/>
  44. <xs:element ref="drillBehavior" minOccurs="0"/>
  45. <xs:element ref="XMLAttributes" minOccurs="0"/>
  46. <xs:element name="upgradeInfo" minOccurs="0">
  47. <xs:complexType>
  48. <xs:all>
  49. <xs:element name="upgradedSpec" minOccurs="0">
  50. <xs:simpleType>
  51. <xs:restriction base="xs:string">
  52. <xs:whiteSpace value="preserve"/>
  53. </xs:restriction>
  54. </xs:simpleType>
  55. </xs:element>
  56. <xs:element name="upgradeMessages" minOccurs="0">
  57. <xs:complexType>
  58. <xs:sequence>
  59. <xs:element name="upgradeMessage" maxOccurs="unbounded">
  60. <xs:complexType>
  61. <xs:simpleContent>
  62. <xs:extension base="xs:string">
  63. <xs:attribute name="messageId" type="xs:NMTOKEN">
  64. <xs:annotation>
  65. <xs:documentation>A unique id for the message. This is used so that the message can be referenced from parts of the spec that contain the error.</xs:documentation>
  66. </xs:annotation>
  67. </xs:attribute>
  68. <xs:attribute name="type" use="required">
  69. <xs:annotation>
  70. <xs:documentation source="doc_att_type_upgradeMessage"/>
  71. </xs:annotation>
  72. <xs:simpleType>
  73. <xs:restriction base="xs:string">
  74. <xs:enumeration value="error"/>
  75. <xs:enumeration value="warning"/>
  76. <xs:enumeration value="info"/>
  77. </xs:restriction>
  78. </xs:simpleType>
  79. </xs:attribute>
  80. </xs:extension>
  81. </xs:simpleContent>
  82. </xs:complexType>
  83. </xs:element>
  84. </xs:sequence>
  85. </xs:complexType>
  86. <xs:unique name="upgradeMessageId">
  87. <xs:selector xpath="rspec:upgradeMessage"/>
  88. <xs:field xpath="@messageId"/>
  89. </xs:unique>
  90. </xs:element>
  91. </xs:all>
  92. </xs:complexType>
  93. </xs:element>
  94. <xs:element ref="namedConditionalStyles" minOccurs="0"/>
  95. <xs:element ref="drillSetsBehavior" minOccurs="0"/>
  96. <xs:element name="reportName" type="xs:string" minOccurs="0">
  97. <xs:annotation>
  98. <xs:documentation>This element is used to capture the name of report in content manager. It is captured here so that when the report is run from a studio which passes an inline spec to the server it will have access to the report name.</xs:documentation>
  99. </xs:annotation>
  100. </xs:element>
  101. <xs:element ref="appProperties" minOccurs="0"/>
  102. <xs:element name="reportStylesRef" minOccurs="0">
  103. <xs:annotation>
  104. <xs:documentation>Indicates that this report will pickup as a default, the classStyles and useStyleVersion from the report referenced.</xs:documentation>
  105. </xs:annotation>
  106. <xs:complexType>
  107. <xs:all>
  108. <xs:element ref="reportPath"/>
  109. <xs:element ref="classStyles" minOccurs="0"/>
  110. </xs:all>
  111. <xs:attribute name="inclusion" default="designTime">
  112. <xs:simpleType>
  113. <xs:restriction base="xs:string">
  114. <xs:enumeration value="designTime"/>
  115. <xs:enumeration value="runTime"/>
  116. </xs:restriction>
  117. </xs:simpleType>
  118. </xs:attribute>
  119. </xs:complexType>
  120. </xs:element>
  121. <xs:element name="excelExportOptions" minOccurs="0">
  122. <xs:annotation>
  123. <xs:documentation>This element is used to define the behavior of exporting report to Excel.</xs:documentation>
  124. </xs:annotation>
  125. <xs:complexType>
  126. <xs:attribute name="excelGrouping" type="xs:boolean" default="true">
  127. <xs:annotation>
  128. <xs:documentation>Determines whether Excel output will group repeated cells as one cell or not group them.</xs:documentation>
  129. </xs:annotation>
  130. </xs:attribute>
  131. </xs:complexType>
  132. </xs:element>
  133. <xs:element ref="appDrillTos" minOccurs="0"/>
  134. <xs:element ref="reportDataStores" minOccurs="0"/>
  135. </xs:all>
  136. <xs:attribute name="expressionLocale" type="xs:language" use="required"/>
  137. <xs:attribute name="template" type="xs:boolean" default="false"/>
  138. <xs:attribute name="useStyleVersion">
  139. <xs:simpleType>
  140. <xs:restriction base="xs:string">
  141. <xs:enumeration value="none">
  142. <xs:annotation>
  143. <xs:documentation source="doc_enum_none_useStyleVersion"/>
  144. </xs:annotation>
  145. </xs:enumeration>
  146. <xs:enumeration value="1"/>
  147. <xs:enumeration value="10">
  148. <xs:annotation>
  149. <xs:documentation source="doc_enum_10_useStyleVersion"/>
  150. </xs:annotation>
  151. </xs:enumeration>
  152. <xs:enumeration value="11"/>
  153. <xs:enumeration value="11.4"/>
  154. </xs:restriction>
  155. </xs:simpleType>
  156. </xs:attribute>
  157. <xs:attribute name="interactivePageBreakByFrame" type="xs:boolean"/>
  158. <xs:attribute name="ignoreFilterContext" type="xs:boolean" default="false">
  159. <xs:annotation>
  160. <xs:documentation>If true then this report will accept a dynamic filter context in a drill through operation.</xs:documentation>
  161. </xs:annotation>
  162. </xs:attribute>
  163. <xs:attribute name="paginateHTMLOutput" type="xs:boolean" default="true">
  164. <xs:annotation>
  165. <xs:documentation>Determines whether batch HTML output will be broken into pages or returned as one document.</xs:documentation>
  166. </xs:annotation>
  167. </xs:attribute>
  168. <xs:attribute name="use1xCSVExport" type="xs:boolean" default="false">
  169. <xs:annotation>
  170. <xs:documentation>Exports to CSV as the product did in version 1.x. This ensures that all of the query columns are exported.</xs:documentation>
  171. </xs:annotation>
  172. </xs:attribute>
  173. <xs:attribute name="application" type="xs:boolean" default="false"/>
  174. <xs:attribute name="revision" type="xs:positiveInteger"/>
  175. <xs:attribute name="viewPagesAsTabs">
  176. <xs:annotation>
  177. <xs:documentation>Authored pages will be shown as tabs when viewing the report.</xs:documentation>
  178. </xs:annotation>
  179. <xs:simpleType>
  180. <xs:restriction base="xs:string">
  181. <xs:enumeration value="topLeft"/>
  182. <xs:enumeration value="bottomLeft"/>
  183. </xs:restriction>
  184. </xs:simpleType>
  185. </xs:attribute>
  186. </xs:complexType>
  187. <xs:key name="queryKey">
  188. <xs:selector xpath="rspec:queries/*"/>
  189. <xs:field xpath="@name"/>
  190. </xs:key>
  191. <xs:keyref name="queryKeyRef" refer="queryKey">
  192. <xs:selector xpath=".//*"/>
  193. <xs:field xpath="@refQuery"/>
  194. </xs:keyref>
  195. <xs:key name="appVariableKey">
  196. <xs:selector xpath="rspec:appProperties/rspec:appVariables/rspec:appVariable"/>
  197. <xs:field xpath="@name"/>
  198. </xs:key>
  199. <xs:keyref name="appVariableKeyRef" refer="appVariableKey">
  200. <xs:selector xpath=".//*"/>
  201. <xs:field xpath="@refAppVariable"/>
  202. </xs:keyref>
  203. <xs:key name="appDrillToKey">
  204. <xs:selector xpath="rspec:appDrillTos/rspec:appDrillTo"/>
  205. <xs:field xpath="@name"/>
  206. </xs:key>
  207. <xs:keyref name="appDrillToKeyRef" refer="appDrillToKey">
  208. <xs:selector xpath=".//*"/>
  209. <xs:field xpath="@refAppDrillTo"/>
  210. </xs:keyref>
  211. </xs:element>
  212. </xs:schema>