V5_report.xsd 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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/5.0/" xmlns:rspec="http://developer.cognos.com/schemas/report/5.0/" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://developer.cognos.com/schemas/report/5.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:element>
  35. <xs:element ref="classStyles" minOccurs="0"/>
  36. <xs:element ref="burst" minOccurs="0"/>
  37. <xs:element ref="reportVariables" minOccurs="0"/>
  38. <xs:element ref="drillBehavior" minOccurs="0"/>
  39. <xs:element ref="XMLAttributes" minOccurs="0"/>
  40. <xs:element name="upgradeInfo" minOccurs="0">
  41. <xs:complexType>
  42. <xs:all>
  43. <xs:element name="upgradedSpec" minOccurs="0">
  44. <xs:simpleType>
  45. <xs:restriction base="xs:string">
  46. <xs:whiteSpace value="preserve"/>
  47. </xs:restriction>
  48. </xs:simpleType>
  49. </xs:element>
  50. <xs:element name="upgradeMessages" minOccurs="0">
  51. <xs:complexType>
  52. <xs:sequence>
  53. <xs:element name="upgradeMessage" maxOccurs="unbounded">
  54. <xs:complexType>
  55. <xs:simpleContent>
  56. <xs:extension base="xs:string">
  57. <xs:attribute name="messageId" type="xs:NMTOKEN">
  58. <xs:annotation>
  59. <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>
  60. <xs:documentation source="rn_added_5.0"/>
  61. </xs:annotation>
  62. </xs:attribute>
  63. <xs:attribute name="type" use="required">
  64. <xs:annotation>
  65. <xs:documentation source="doc_att_type_upgradeMessage"/>
  66. </xs:annotation>
  67. <xs:simpleType>
  68. <xs:restriction base="xs:string">
  69. <xs:enumeration value="error"/>
  70. <xs:enumeration value="warning"/>
  71. <xs:enumeration value="info"/>
  72. </xs:restriction>
  73. </xs:simpleType>
  74. </xs:attribute>
  75. </xs:extension>
  76. </xs:simpleContent>
  77. </xs:complexType>
  78. </xs:element>
  79. </xs:sequence>
  80. </xs:complexType>
  81. <xs:unique name="upgradeMessageId">
  82. <xs:selector xpath="rspec:upgradeMessage"/>
  83. <xs:field xpath="@messageId"/>
  84. </xs:unique>
  85. </xs:element>
  86. </xs:all>
  87. </xs:complexType>
  88. </xs:element>
  89. <xs:element ref="namedConditionalStyles" minOccurs="0"/>
  90. <xs:element ref="drillSetsBehavior" minOccurs="0"/>
  91. </xs:all>
  92. <xs:attribute name="expressionLocale" type="xs:language" use="required"/>
  93. <xs:attribute name="template" type="xs:boolean" default="false"/>
  94. <xs:attribute name="useStyleVersion">
  95. <xs:simpleType>
  96. <xs:restriction base="xs:string">
  97. <xs:enumeration value="none">
  98. <xs:annotation>
  99. <xs:documentation source="doc_enum_none_useStyleVersion"/>
  100. </xs:annotation>
  101. </xs:enumeration>
  102. <xs:enumeration value="1"/>
  103. </xs:restriction>
  104. </xs:simpleType>
  105. </xs:attribute>
  106. <xs:attribute name="interactivePageBreakByFrame" type="xs:boolean"/>
  107. <xs:attribute name="ignoreFilterContext" type="xs:boolean" default="false">
  108. <xs:annotation>
  109. <xs:documentation>If true then this report will accept a dynamic filter context in a drill through operation.</xs:documentation>
  110. <xs:documentation source="rn_added_5.0"/>
  111. </xs:annotation>
  112. </xs:attribute>
  113. <xs:attribute name="paginateHTMLOutput" type="xs:boolean" default="true">
  114. <xs:annotation>
  115. <xs:documentation>Determines whether batch HTML output will be broken into pages or returned as one document.</xs:documentation>
  116. <xs:documentation source="rn_added_5.0"/>
  117. </xs:annotation>
  118. </xs:attribute>
  119. <xs:attribute name="use1xCSVExport" type="xs:boolean" default="false">
  120. <xs:annotation>
  121. <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>
  122. <xs:documentation source="rn_added_5.0"/>
  123. </xs:annotation>
  124. </xs:attribute>
  125. </xs:complexType>
  126. <xs:key name="queryKey">
  127. <xs:selector xpath="rspec:queries/rspec:query"/>
  128. <xs:field xpath="@name"/>
  129. </xs:key>
  130. <xs:keyref name="queryKeyRef" refer="queryKey">
  131. <xs:selector xpath=".//*"/>
  132. <xs:field xpath="@refQuery"/>
  133. </xs:keyref>
  134. </xs:element>
  135. </xs:schema>