cogstartup.xsd 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: cclmcf
  5. (C) Copyright IBM Corp. 2009, 2012
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <xs:schema targetNamespace="http://developer.cognos.com/schemas/crconfig/1/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://developer.cognos.com/schemas/crconfig/1/" elementFormDefault="qualified" attributeFormDefault="unqualified">
  9. <xs:element name="parameters">
  10. <xs:annotation>
  11. <xs:documentation>root element of a configuration file.</xs:documentation>
  12. </xs:annotation>
  13. <xs:complexType>
  14. <xs:sequence>
  15. <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"/>
  16. </xs:sequence>
  17. <xs:attribute name="version" use="required">
  18. <xs:simpleType>
  19. <xs:restriction base="xs:string">
  20. <xs:pattern value="\d+(\.\d+)*"/>
  21. </xs:restriction>
  22. </xs:simpleType>
  23. </xs:attribute>
  24. </xs:complexType>
  25. </xs:element>
  26. <xs:complexType name="parameterType">
  27. <xs:annotation>
  28. <xs:documentation>Defines a parameter type</xs:documentation>
  29. </xs:annotation>
  30. <xs:sequence>
  31. <xs:element name="value" nillable="true" minOccurs="0">
  32. <xs:annotation>
  33. <xs:documentation>The value of the parameter.</xs:documentation>
  34. </xs:annotation>
  35. <xs:complexType mixed="true">
  36. <xs:choice minOccurs="0">
  37. <xs:choice minOccurs="0" maxOccurs="unbounded">
  38. <xs:element name="instances" type="instancesType"/>
  39. <xs:element name="parameter" type="parameterType" nillable="true"/>
  40. <xs:any/>
  41. </xs:choice>
  42. <xs:element name="item" maxOccurs="unbounded">
  43. <xs:complexType>
  44. <xs:simpleContent>
  45. <xs:extension base="xs:anySimpleType">
  46. <xs:attribute name="order" type="xs:int" use="optional"/>
  47. </xs:extension>
  48. </xs:simpleContent>
  49. </xs:complexType>
  50. </xs:element>
  51. </xs:choice>
  52. <xs:attribute name="encrypted" type="xs:boolean" use="optional" default="false"/>
  53. </xs:complexType>
  54. </xs:element>
  55. </xs:sequence>
  56. <xs:attribute name="name" type="xs:NMTOKEN" use="required"/>
  57. <xs:attribute name="encrypted" type="xs:boolean" use="optional" default="false"/>
  58. <xs:attribute name="opaque" type="xs:boolean" use="optional" default="false"/>
  59. <xs:attribute name="disabled" type="xs:boolean" use="optional" default="false"/>
  60. </xs:complexType>
  61. <xs:complexType name="instancesType">
  62. <xs:annotation>
  63. <xs:documentation>Defines an instance type</xs:documentation>
  64. </xs:annotation>
  65. <xs:sequence>
  66. <xs:element name="instance" minOccurs="0" maxOccurs="unbounded">
  67. <xs:annotation>
  68. <xs:documentation>Multiple occurences of instance.</xs:documentation>
  69. </xs:annotation>
  70. <xs:complexType>
  71. <xs:sequence>
  72. <xs:element name="parameter" type="parameterType" minOccurs="0" maxOccurs="unbounded"/>
  73. <xs:element name="instances" type="instancesType" minOccurs="0"/>
  74. </xs:sequence>
  75. <xs:attribute name="name" type="xs:string" use="required"/>
  76. <xs:attribute name="class" type="xs:NMTOKEN" use="required"/>
  77. <xs:attribute name="disabled" type="xs:boolean" use="optional" default="false"/>
  78. </xs:complexType>
  79. </xs:element>
  80. </xs:sequence>
  81. <xs:attribute name="name" type="xs:string" use="required"/>
  82. <xs:attribute name="disabled" type="xs:boolean" use="optional" default="false"/>
  83. </xs:complexType>
  84. </xs:schema>