V5Query.xsd 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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:xs="http://www.w3.org/2001/XMLSchema" xmlns:rspec="http://developer.cognos.com/schemas/report/6.0/" elementFormDefault="qualified" attributeFormDefault="unqualified">
  13. <xs:include schemaLocation="V5_base.xsd"/>
  14. <xs:include schemaLocation="V5_queryBase.xsd"/>
  15. <xs:element name="query" type="queryType">
  16. <xs:annotation>
  17. <xs:documentation>A query defines the data to be retrieved from the database. It consists of a source, a selection, detailed and summary filters, and a dimension Information. Query hints can be supplied. A query does not define the structure or presentation of the retrieved data.</xs:documentation>
  18. </xs:annotation>
  19. </xs:element>
  20. <xs:element name="selection">
  21. <xs:annotation>
  22. <xs:documentation>The selection identifies the metadata elements upon which the query is based. This is analogous to a projection from the source.</xs:documentation>
  23. </xs:annotation>
  24. <xs:complexType>
  25. <xs:sequence>
  26. <xs:element ref="dataItem" minOccurs="0" maxOccurs="unbounded"/>
  27. </xs:sequence>
  28. <xs:attribute name="autoSummary" type="xs:boolean" use="optional" default="true"/>
  29. </xs:complexType>
  30. <xs:unique name="dataItemUniqueness">
  31. <xs:selector xpath="*"/>
  32. <xs:field xpath="@name"/>
  33. </xs:unique>
  34. </xs:element>
  35. <xs:element name="slicer">
  36. <xs:annotation>
  37. <xs:documentation>a list of member expressions. the list is interpreted as a tuple of members.</xs:documentation>
  38. </xs:annotation>
  39. <xs:complexType>
  40. <xs:sequence>
  41. <xs:element ref="slicerMemberSet" maxOccurs="unbounded"/>
  42. </xs:sequence>
  43. </xs:complexType>
  44. </xs:element>
  45. </xs:schema>