V5_report.xsd 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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, 2014
  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/11.0/" xmlns:rspec="http://developer.cognos.com/schemas/report/11.0/" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://developer.cognos.com/schemas/report/11.0/" 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 maxOccurs="unbounded">
  31. <xs:element ref="query"/>
  32. </xs:sequence>
  33. </xs:complexType>
  34. <xs:unique name="shareNameUniqueness">
  35. <xs:selector xpath="rspec:query/rspec:selection/rspec:dataItemMemberSet/rspec:dataItemSharing"/>
  36. <xs:field xpath="@shareName"/>
  37. </xs:unique>
  38. </xs:element>
  39. <xs:element ref="classStyles" minOccurs="0"/>
  40. <xs:element ref="burst" minOccurs="0"/>
  41. <xs:element ref="reportVariables" minOccurs="0"/>
  42. <xs:element ref="drillBehavior" minOccurs="0"/>
  43. <xs:element ref="XMLAttributes" minOccurs="0"/>
  44. <xs:element name="upgradeInfo" minOccurs="0">
  45. <xs:complexType>
  46. <xs:all>
  47. <xs:element name="upgradedSpec" minOccurs="0">
  48. <xs:simpleType>
  49. <xs:restriction base="xs:string">
  50. <xs:whiteSpace value="preserve"/>
  51. </xs:restriction>
  52. </xs:simpleType>
  53. </xs:element>
  54. <xs:element name="upgradeMessages" minOccurs="0">
  55. <xs:complexType>
  56. <xs:sequence>
  57. <xs:element name="upgradeMessage" maxOccurs="unbounded">
  58. <xs:complexType>
  59. <xs:simpleContent>
  60. <xs:extension base="xs:string">
  61. <xs:attribute name="messageId" type="xs:NMTOKEN">
  62. <xs:annotation>
  63. <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>
  64. </xs:annotation>
  65. </xs:attribute>
  66. <xs:attribute name="type" use="required">
  67. <xs:annotation>
  68. <xs:documentation source="doc_att_type_upgradeMessage"/>
  69. </xs:annotation>
  70. <xs:simpleType>
  71. <xs:restriction base="xs:string">
  72. <xs:enumeration value="error"/>
  73. <xs:enumeration value="warning"/>
  74. <xs:enumeration value="info"/>
  75. </xs:restriction>
  76. </xs:simpleType>
  77. </xs:attribute>
  78. </xs:extension>
  79. </xs:simpleContent>
  80. </xs:complexType>
  81. </xs:element>
  82. </xs:sequence>
  83. </xs:complexType>
  84. <xs:unique name="upgradeMessageId">
  85. <xs:selector xpath="rspec:upgradeMessage"/>
  86. <xs:field xpath="@messageId"/>
  87. </xs:unique>
  88. </xs:element>
  89. </xs:all>
  90. </xs:complexType>
  91. </xs:element>
  92. <xs:element ref="namedConditionalStyles" minOccurs="0"/>
  93. <xs:element ref="drillSetsBehavior" minOccurs="0"/>
  94. <xs:element name="reportName" type="xs:string" minOccurs="0">
  95. <xs:annotation>
  96. <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>
  97. </xs:annotation>
  98. </xs:element>
  99. <xs:element ref="appProperties" minOccurs="0"/>
  100. <xs:element name="excelExportOptions" minOccurs="0">
  101. <xs:annotation>
  102. <xs:documentation>This element is used to define the behavior of exporting report to Excel.</xs:documentation>
  103. </xs:annotation>
  104. <xs:complexType>
  105. <xs:attribute name="excelGrouping" type="xs:boolean" default="true">
  106. <xs:annotation>
  107. <xs:documentation>Determines whether Excel output will group repeated cells as one cell or not group them.</xs:documentation>
  108. </xs:annotation>
  109. </xs:attribute>
  110. </xs:complexType>
  111. </xs:element>
  112. </xs:all>
  113. <xs:attribute name="expressionLocale" type="xs:language" use="required"/>
  114. <xs:attribute name="template" type="xs:boolean" default="false"/>
  115. <xs:attribute name="useStyleVersion">
  116. <xs:simpleType>
  117. <xs:restriction base="xs:string">
  118. <xs:enumeration value="none">
  119. <xs:annotation>
  120. <xs:documentation source="doc_enum_none_useStyleVersion"/>
  121. </xs:annotation>
  122. </xs:enumeration>
  123. <xs:enumeration value="1"/>
  124. <xs:enumeration value="10">
  125. <xs:annotation>
  126. <xs:documentation source="doc_enum_10_useStyleVersion"/>
  127. </xs:annotation>
  128. </xs:enumeration>
  129. </xs:restriction>
  130. </xs:simpleType>
  131. </xs:attribute>
  132. <xs:attribute name="interactivePageBreakByFrame" type="xs:boolean"/>
  133. <xs:attribute name="ignoreFilterContext" type="xs:boolean" default="false">
  134. <xs:annotation>
  135. <xs:documentation>If true then this report will accept a dynamic filter context in a drill through operation.</xs:documentation>
  136. </xs:annotation>
  137. </xs:attribute>
  138. <xs:attribute name="paginateHTMLOutput" type="xs:boolean" default="true">
  139. <xs:annotation>
  140. <xs:documentation>Determines whether batch HTML output will be broken into pages or returned as one document.</xs:documentation>
  141. </xs:annotation>
  142. </xs:attribute>
  143. <xs:attribute name="use1xCSVExport" type="xs:boolean" default="false">
  144. <xs:annotation>
  145. <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>
  146. </xs:annotation>
  147. </xs:attribute>
  148. <xs:attribute name="application" type="xs:boolean" default="false"/>
  149. <xs:attribute name="revision" type="xs:positiveInteger"/>
  150. <xs:attribute name="viewPagesAsTabs">
  151. <xs:annotation>
  152. <xs:documentation>Authored pages will be shown as tabs when viewing the report.</xs:documentation>
  153. </xs:annotation>
  154. <xs:simpleType>
  155. <xs:restriction base="xs:string">
  156. <xs:enumeration value="topLeft"/>
  157. <xs:enumeration value="bottomLeft"/>
  158. </xs:restriction>
  159. </xs:simpleType>
  160. </xs:attribute>
  161. </xs:complexType>
  162. <xs:key name="queryKey">
  163. <xs:selector xpath="rspec:queries/rspec:query"/>
  164. <xs:field xpath="@name"/>
  165. </xs:key>
  166. <xs:keyref name="queryKeyRef" refer="queryKey">
  167. <xs:selector xpath=".//*"/>
  168. <xs:field xpath="@refQuery"/>
  169. </xs:keyref>
  170. <xs:key name="appVariableKey">
  171. <xs:selector xpath="rspec:appProperties/rspec:appVariables/rspec:appVariable"/>
  172. <xs:field xpath="@name"/>
  173. </xs:key>
  174. <xs:keyref name="appVariableKeyRef" refer="appVariableKey">
  175. <xs:selector xpath=".//*"/>
  176. <xs:field xpath="@refAppVariable"/>
  177. </xs:keyref>
  178. </xs:element>
  179. </xs:schema>