Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cosmos-dev] updated sdd registry schema

Here is the updated schema with the changes that we talked about today, please review it and let me know what you think.

Thanks,

-Josh


<?xml version="1.0" encoding="UTF-8"?>

<xsd:schema 
  xmlns:xsd="http://www.w3.org/2001/XMLSchema";
  elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0">
  
  <xsd:complexType name="RegistryType">
    <xsd:sequence>
      <xsd:element name="product" type="ProductType" minOccurs="0" maxOccurs="unbounded"/>      
    </xsd:sequence>    
    <xsd:attribute name="version" type="xsd:string" use="optional"/>
  </xsd:complexType>
  
  <xsd:complexType name="ProductType">
    <xsd:sequence>
      <xsd:element name="version" type="VersionType" minOccurs="1" maxOccurs="1"/>
      <xsd:element name="other" type="OtherType" minOccurs="0" maxOccurs="unbounded"/>
    </xsd:sequence>
    <xsd:attribute name="id" type="xsd:string" use="required"/>    
    <xsd:attribute name="name" type="xsd:string" use="optional"/>
    <xsd:attribute name="path" type="xsd:anyURI" use="optional"/>
    <xsd:attribute name="platform" type="xsd:string" use="required"/>		
  </xsd:complexType>
  
  <xsd:complexType name="OtherType">    
    <xsd:attribute name="name" type="xsd:string" use="required"/>
    <xsd:attribute name="value" type="xsd:string" use="required"/>
  </xsd:complexType>  
  
  <xsd:complexType name="VersionType">    
      <xsd:attribute name="major" type="xsd:string" use="required"/>
      <xsd:attribute name="minor" type="xsd:string" use="optional"/>
      <xsd:attribute name="patch" type="xsd:string" use="optional"/>
      <xsd:attribute name="fix" type="xsd:string" use="optional"/>
  </xsd:complexType>
  
</xsd:schema>

Back to the top