V5_report.xsd 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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/9.0/" xmlns:rspec="http://developer.cognos.com/schemas/report/9.0/" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://developer.cognos.com/schemas/report/9.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:documentation source="rn_added_5.0"/>
  65. </xs:annotation>
  66. </xs:attribute>
  67. <xs:attribute name="type" use="required">
  68. <xs:annotation>
  69. <xs:documentation source="doc_att_type_upgradeMessage"/>
  70. </xs:annotation>
  71. <xs:simpleType>
  72. <xs:restriction base="xs:string">
  73. <xs:enumeration value="error"/>
  74. <xs:enumeration value="warning"/>
  75. <xs:enumeration value="info"/>
  76. </xs:restriction>
  77. </xs:simpleType>
  78. </xs:attribute>
  79. </xs:extension>
  80. </xs:simpleContent>
  81. </xs:complexType>
  82. </xs:element>
  83. </xs:sequence>
  84. </xs:complexType>
  85. <xs:unique name="upgradeMessageId">
  86. <xs:selector xpath="rspec:upgradeMessage"/>
  87. <xs:field xpath="@messageId"/>
  88. </xs:unique>
  89. </xs:element>
  90. </xs:all>
  91. </xs:complexType>
  92. </xs:element>
  93. <xs:element ref="namedConditionalStyles" minOccurs="0"/>
  94. <xs:element ref="drillSetsBehavior" minOccurs="0"/>
  95. <xs:element name="reportName" type="xs:string" minOccurs="0">
  96. <xs:annotation>
  97. <xs:documentation source="rn_added_7.0"/>
  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="excelExportOptions" minOccurs="0">
  103. <xs:annotation>
  104. <xs:documentation>This element is used to define the behavior of exporting report to Excel.</xs:documentation>
  105. </xs:annotation>
  106. <xs:complexType>
  107. <xs:attribute name="excelGrouping" type="xs:boolean" default="true">
  108. <xs:annotation>
  109. <xs:documentation>Determines whether Excel output will group repeated cells as one cell or not group them.</xs:documentation>
  110. </xs:annotation>
  111. </xs:attribute>
  112. </xs:complexType>
  113. </xs:element>
  114. </xs:all>
  115. <xs:attribute name="expressionLocale" type="xs:language" use="required"/>
  116. <xs:attribute name="template" type="xs:boolean" default="false"/>
  117. <xs:attribute name="useStyleVersion">
  118. <xs:simpleType>
  119. <xs:restriction base="xs:string">
  120. <xs:enumeration value="none">
  121. <xs:annotation>
  122. <xs:documentation source="doc_enum_none_useStyleVersion"/>
  123. </xs:annotation>
  124. </xs:enumeration>
  125. <xs:enumeration value="1"/>
  126. <xs:enumeration value="10">
  127. <xs:annotation>
  128. <xs:documentation source="doc_enum_10_useStyleVersion"/>
  129. </xs:annotation>
  130. </xs:enumeration>
  131. </xs:restriction>
  132. </xs:simpleType>
  133. </xs:attribute>
  134. <xs:attribute name="interactivePageBreakByFrame" type="xs:boolean"/>
  135. <xs:attribute name="ignoreFilterContext" type="xs:boolean" default="false">
  136. <xs:annotation>
  137. <xs:documentation>If true then this report will accept a dynamic filter context in a drill through operation.</xs:documentation>
  138. <xs:documentation source="rn_added_5.0"/>
  139. </xs:annotation>
  140. </xs:attribute>
  141. <xs:attribute name="paginateHTMLOutput" type="xs:boolean" default="true">
  142. <xs:annotation>
  143. <xs:documentation>Determines whether batch HTML output will be broken into pages or returned as one document.</xs:documentation>
  144. <xs:documentation source="rn_added_5.0"/>
  145. </xs:annotation>
  146. </xs:attribute>
  147. <xs:attribute name="use1xCSVExport" type="xs:boolean" default="false">
  148. <xs:annotation>
  149. <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>
  150. <xs:documentation source="rn_added_5.0"/>
  151. </xs:annotation>
  152. </xs:attribute>
  153. <xs:attribute name="application" type="xs:boolean" default="false"/>
  154. <xs:attribute name="revision" type="xs:positiveInteger"/>
  155. </xs:complexType>
  156. <xs:key name="queryKey">
  157. <xs:selector xpath="rspec:queries/rspec:query"/>
  158. <xs:field xpath="@name"/>
  159. </xs:key>
  160. <xs:keyref name="queryKeyRef" refer="queryKey">
  161. <xs:selector xpath=".//*"/>
  162. <xs:field xpath="@refQuery"/>
  163. </xs:keyref>
  164. <xs:key name="appVariableKey">
  165. <xs:selector xpath="rspec:appProperties/rspec:appVariables/rspec:appVariable"/>
  166. <xs:field xpath="@name"/>
  167. </xs:key>
  168. <xs:keyref name="appVariableKeyRef" refer="appVariableKey">
  169. <xs:selector xpath=".//*"/>
  170. <xs:field xpath="@refAppVariable"/>
  171. </xs:keyref>
  172. </xs:element>
  173. </xs:schema>