ntation>Top level container for Diagnostic Packages expressed in the index.  
      Contains one or more sub-elements.</xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence minOccurs="1" maxOccurs="1">
        <xs:element name="DiagnosticPackage" minOccurs="0" maxOccurs="unbounded">
          <xs:annotation>
            <xs:documentation>A representation of the attributes and meta data for a single Diagnostic Package.</xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence minOccurs="1" maxOccurs="1">
              <!-- Metadata supported by Scripted Diagnostic Engine schema -->
              <!-- Begin Identification Data -->
              <xs:element name="Id" minOccurs="1" maxOccurs="1">
                <xs:annotation>
                  <xs:documentation>The identifier for this Diagnostic Package.</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="256" />
                    <xs:minLength value="1" />
                    <xs:pattern value="[^\']+" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <!-- End Identification Data -->
              <!-- Begin UI Language Information -->
              <xs:element name="Language" minOccurs="1" maxOccurs="1">
                <xs:annotation>
                  <xs:documentation>The MUI Language string for Diagnostic Package display information, category and keywords.</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:token">
                    <xs:pattern value="\w{2}(\w?\-\w{2,4}([\-_]\w{2,6})?)?" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <!-- End UI Language Information -->
              <!-- Begin Display Data -->
              <xs:element name="Title" minOccurs="1" maxOccurs="1">
                <xs:annotation>
                  <xs:documentation>Text that represents the name of the Diagnostic Package which can be displayed to end users.</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="1024" />
                    <xs:minLength value="1" />
                    <xs:pattern value=".+" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Description" minOccurs="1" maxOccurs="1">
                <xs:annotation>
                  <xs:documentation>Text that represents a description of the Diagnostic Package which can be displayed to end users.</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="1024" />
                    <xs:minLength value="1" />
                    <xs:pattern value=".+" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <!-- End Display Data -->
              <!-- Begin Execution Information -->
              <xs:element name="RequiresAdminPrivileges" type="xs:boolean" minOccurs="0" maxOccurs="1">
                <xs:annotation>
                  <xs:documentation>Denotes whether the Diagnostic Package requires adming privileges to run.</xs:documentation>
                </xs:annotation>
              </xs:element>
              <!-- End Execution Information -->

              <!-- Extended Metadata not supported by Scripted Diagnostic Engine schema -->
              <xs:element name="Url" type="httpURI" minOccurs="1" maxOccurs="1">
                <xs:annotation>
                  <xs:documentation>The resouce location for this Diagnostic Package.</xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name="PrivacyUrl" type="httpURI" minOccurs="1" maxOccurs="1">
                <xs:annotation>
                  <xs:documentation>The resource location for privacy policy surrounding this Diagnostic Package.</xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name="Version" minOccurs="1" maxOccurs="1">
                <xs:annotation>
                  <xs:documentation>The version of this Diagnostic Package.  Used to distinguish between instances of Diagnostic package with the same PublisherName and Id.</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="256" />
                    <xs:minLength value="1" />
                    <xs:pattern value="[0-9]+([.][0-9]+)+" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PublisherName" minOccurs="1" maxOccurs="1">
                <xs:annotation>
                  <xs:documentation>Text that represents name of the publisher of the Diagnostic Package which can be displayed to end users.</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:minLength value="1" />
                    <xs:maxLength value="256" />
                    <xs:pattern value=".+" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="PublisherCertificateHash" type="xs:base64Binary" minOccurs="1" maxOccurs="1">
                <xs:annotation>
                  <xs:documentation>Base64 encoding of the SHA1 Hash of the certificate used to sign the Diagnostic Package.</xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name="DiagnosticIcon" type="iconResource" minOccurs="0" maxOccurs="1">
                <xs:annotation>
                  <xs:documentation>Icon for the Diagnostic Package which can be displayed to end users.</xs:documentation>
                </xs:annotation>
              </xs:element>
              <!-- Begin General Specification Data -->
              <xs:element name="Category" minOccurs="1" maxOccurs="1">
                <xs:annotation>
                  <xs:documentation>The general group of diagnostics to which this diagnostic package belongs to.</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:minLength value="1" />
                    <xs:maxLength value="512" />
                    <xs:pattern value=".+" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Keyword" minOccurs="0" maxOccurs="unbounded">
                <xs:annotation>
                  <xs:documentation>A tag which describes the diagnostic package.</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:minLength value="1" />
                    <xs:maxLength value="512" />
                    <xs:pattern value=".+" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <!-- End General Specification Data -->
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:simpleType name="httpURI">
    <xs:annotation>
      <xs:documentation>A URI which matches the pattern of an HTTP/S URL.</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:anyURI">
      <xs:pattern value="https?://.+" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="iconResource">
    <xs:annotation>
      <xs:documentation>A string which matches the pattern for a resource stored in a DLL. {@filename.dll,-resource id}</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:pattern value="^@[^,]+,\-[1-9][0-9]*" />
    </xs:restriction>
  </xs:simpleType>
</xs:schema>

