V5_report.xsd 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  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, 2019
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <xs:schema xmlns="http://developer.cognos.com/schemas/report/15.2/" xmlns:rspec="http://developer.cognos.com/schemas/report/15.2/" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://developer.cognos.com/schemas/report/15.2/" elementFormDefault="qualified" attributeFormDefault="unqualified">
  9. <xs:include schemaLocation="V5_base.xsd"/>
  10. <xs:include schemaLocation="V5_layoutbase.xsd"/>
  11. <xs:include schemaLocation="V5_format.xsd"/>
  12. <xs:include schemaLocation="V5_style.xsd"/>
  13. <xs:include schemaLocation="V5_prompt.xsd"/>
  14. <xs:include schemaLocation="V5_chart.xsd"/>
  15. <xs:include schemaLocation="V5_layout.xsd"/>
  16. <xs:element name="report">
  17. <xs:annotation>
  18. <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>
  19. </xs:annotation>
  20. <xs:complexType>
  21. <xs:all>
  22. <xs:element ref="modelPath" minOccurs="0"/>
  23. <xs:element ref="layouts"/>
  24. <xs:element name="queries" minOccurs="0">
  25. <xs:complexType>
  26. <xs:sequence>
  27. <xs:choice maxOccurs="unbounded">
  28. <xs:element ref="query"/>
  29. </xs:choice>
  30. </xs:sequence>
  31. </xs:complexType>
  32. <xs:unique name="shareNameUniqueness">
  33. <xs:selector xpath="rspec:query/rspec:selection/rspec:dataItemMemberSet/rspec:dataItemSharing"/>
  34. <xs:field xpath="@shareName"/>
  35. </xs:unique>
  36. </xs:element>
  37. <xs:element ref="classStyles" minOccurs="0"/>
  38. <xs:element ref="burst" minOccurs="0"/>
  39. <xs:element ref="reportVariables" minOccurs="0"/>
  40. <xs:element ref="drillBehavior" minOccurs="0"/>
  41. <xs:element ref="XMLAttributes" minOccurs="0"/>
  42. <xs:element name="upgradeInfo" minOccurs="0">
  43. <xs:complexType>
  44. <xs:all>
  45. <xs:element name="upgradedSpec" minOccurs="0">
  46. <xs:simpleType>
  47. <xs:restriction base="xs:string">
  48. <xs:whiteSpace value="preserve"/>
  49. </xs:restriction>
  50. </xs:simpleType>
  51. </xs:element>
  52. <xs:element name="upgradeMessages" minOccurs="0">
  53. <xs:complexType>
  54. <xs:sequence>
  55. <xs:element name="upgradeMessage" maxOccurs="unbounded">
  56. <xs:complexType>
  57. <xs:simpleContent>
  58. <xs:extension base="xs:string">
  59. <xs:attribute name="messageId" type="xs:NMTOKEN">
  60. <xs:annotation>
  61. <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>
  62. </xs:annotation>
  63. </xs:attribute>
  64. <xs:attribute name="type" use="required">
  65. <xs:annotation>
  66. <xs:documentation source="doc_att_type_upgradeMessage"/>
  67. </xs:annotation>
  68. <xs:simpleType>
  69. <xs:restriction base="xs:string">
  70. <xs:enumeration value="error"/>
  71. <xs:enumeration value="warning"/>
  72. <xs:enumeration value="info"/>
  73. </xs:restriction>
  74. </xs:simpleType>
  75. </xs:attribute>
  76. </xs:extension>
  77. </xs:simpleContent>
  78. </xs:complexType>
  79. </xs:element>
  80. </xs:sequence>
  81. </xs:complexType>
  82. <xs:unique name="upgradeMessageId">
  83. <xs:selector xpath="rspec:upgradeMessage"/>
  84. <xs:field xpath="@messageId"/>
  85. </xs:unique>
  86. </xs:element>
  87. </xs:all>
  88. </xs:complexType>
  89. </xs:element>
  90. <xs:element ref="namedConditionalStyles" minOccurs="0"/>
  91. <xs:element ref="drillSetsBehavior" minOccurs="0"/>
  92. <xs:element name="reportName" type="xs:string" minOccurs="0">
  93. <xs:annotation>
  94. <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>
  95. </xs:annotation>
  96. </xs:element>
  97. <xs:element ref="appProperties" minOccurs="0"/>
  98. <xs:element name="reportStylesRef" minOccurs="0">
  99. <xs:annotation>
  100. <xs:documentation>Indicates that this report will pickup as a default, the classStyles and useStyleVersion from the report referenced.</xs:documentation>
  101. </xs:annotation>
  102. <xs:complexType>
  103. <xs:all>
  104. <xs:element ref="reportPath"/>
  105. <xs:element ref="classStyles" minOccurs="0"/>
  106. </xs:all>
  107. <xs:attribute name="inclusion" default="designTime">
  108. <xs:simpleType>
  109. <xs:restriction base="xs:string">
  110. <xs:enumeration value="designTime"/>
  111. <xs:enumeration value="runTime"/>
  112. </xs:restriction>
  113. </xs:simpleType>
  114. </xs:attribute>
  115. </xs:complexType>
  116. </xs:element>
  117. <xs:element name="excelExportOptions" minOccurs="0">
  118. <xs:annotation>
  119. <xs:documentation>This element is used to define the behavior of exporting report to Excel.</xs:documentation>
  120. </xs:annotation>
  121. <xs:complexType>
  122. <xs:attribute name="excelGrouping" type="xs:boolean" default="true">
  123. <xs:annotation>
  124. <xs:documentation>Determines whether Excel output will group repeated cells as one cell or not group them.</xs:documentation>
  125. </xs:annotation>
  126. </xs:attribute>
  127. </xs:complexType>
  128. </xs:element>
  129. <xs:element ref="appDrillTos" minOccurs="0"/>
  130. <xs:element ref="reportDataStores" minOccurs="0"/>
  131. </xs:all>
  132. <xs:attribute name="expressionLocale" type="xs:language" use="required"/>
  133. <xs:attribute name="template" type="xs:boolean" default="false"/>
  134. <xs:attribute name="useStyleVersion">
  135. <xs:simpleType>
  136. <xs:restriction base="xs:string">
  137. <xs:enumeration value="none">
  138. <xs:annotation>
  139. <xs:documentation source="doc_enum_none_useStyleVersion"/>
  140. </xs:annotation>
  141. </xs:enumeration>
  142. <xs:enumeration value="1"/>
  143. <xs:enumeration value="10">
  144. <xs:annotation>
  145. <xs:documentation source="doc_enum_10_useStyleVersion"/>
  146. </xs:annotation>
  147. </xs:enumeration>
  148. <xs:enumeration value="11"/>
  149. <xs:enumeration value="11.4"/>
  150. <xs:enumeration value="11.5"/>
  151. </xs:restriction>
  152. </xs:simpleType>
  153. </xs:attribute>
  154. <xs:attribute name="interactivePageBreakByFrame" type="xs:boolean"/>
  155. <xs:attribute name="ignoreFilterContext" type="xs:boolean" default="false">
  156. <xs:annotation>
  157. <xs:documentation>If true then this report will accept a dynamic filter context in a drill through operation.</xs:documentation>
  158. </xs:annotation>
  159. </xs:attribute>
  160. <xs:attribute name="paginateHTMLOutput" type="xs:boolean" default="true">
  161. <xs:annotation>
  162. <xs:documentation>Determines whether batch HTML output will break data containers into logical pages or keep the entire container on a single page.</xs:documentation>
  163. </xs:annotation>
  164. </xs:attribute>
  165. <xs:attribute name="use1xCSVExport" type="xs:boolean" default="false">
  166. <xs:annotation>
  167. <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>
  168. </xs:annotation>
  169. </xs:attribute>
  170. <xs:attribute name="application" type="xs:boolean" default="false"/>
  171. <xs:attribute name="revision" type="xs:positiveInteger"/>
  172. <xs:attribute name="viewPagesAsTabs">
  173. <xs:annotation>
  174. <xs:documentation>Authored pages will be shown as tabs when viewing the report.</xs:documentation>
  175. </xs:annotation>
  176. <xs:simpleType>
  177. <xs:restriction base="xs:string">
  178. <xs:enumeration value="topLeft"/>
  179. <xs:enumeration value="bottomLeft"/>
  180. </xs:restriction>
  181. </xs:simpleType>
  182. </xs:attribute>
  183. <xs:attribute name="stubbed" type="xs:boolean" default="false">
  184. <xs:annotation>
  185. <xs:documentation>Indicates this is a partial specification that must be expanded on the server before it can be processed. This is not intended to be modified by the user.</xs:documentation>
  186. </xs:annotation>
  187. </xs:attribute>
  188. </xs:complexType>
  189. <xs:key name="queryKey">
  190. <xs:selector xpath="rspec:queries/*"/>
  191. <xs:field xpath="@name"/>
  192. </xs:key>
  193. <xs:keyref name="queryKeyRef" refer="queryKey">
  194. <xs:selector xpath=".//*"/>
  195. <xs:field xpath="@refQuery"/>
  196. </xs:keyref>
  197. <xs:key name="appVariableKey">
  198. <xs:selector xpath="rspec:appProperties/rspec:appVariables/rspec:appVariable"/>
  199. <xs:field xpath="@name"/>
  200. </xs:key>
  201. <xs:keyref name="appVariableKeyRef" refer="appVariableKey">
  202. <xs:selector xpath=".//*"/>
  203. <xs:field xpath="@refAppVariable"/>
  204. </xs:keyref>
  205. <xs:key name="appDrillToKey">
  206. <xs:selector xpath="rspec:appDrillTos/rspec:appDrillTo"/>
  207. <xs:field xpath="@name"/>
  208. </xs:key>
  209. <xs:keyref name="appDrillToKeyRef" refer="appDrillToKey">
  210. <xs:selector xpath=".//*"/>
  211. <xs:field xpath="@refAppDrillTo"/>
  212. </xs:keyref>
  213. </xs:element>
  214. </xs:schema>