You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by do...@apache.org on 2001/02/24 05:20:19 UTC

cvs commit: jakarta-avalon-phoenix/src/schema blockinfo.dtd blockinfo.xsd

donaldp     01/02/23 20:20:18

  Added:       src/schema blockinfo.dtd blockinfo.xsd
  Log:
  Added in schemas
  
  Revision  Changes    Path
  1.1                  jakarta-avalon-phoenix/src/schema/blockinfo.dtd
  
  Index: blockinfo.dtd
  ===================================================================
  
  <!-- 
      ===============================================================
      Document Type Definition 
      =============================================================== 
  -->
  
  <!ELEMENT blockinfo (meta?, services?, dependencies?)>
  
    <!ELEMENT meta          (version, icon?, large-icon?, update?, documentation?, license?, contributors*)>
  
      <!ELEMENT version       (#PCDATA) >
      <!ELEMENT icon          (#PCDATA) >
      <!ELEMENT large-icon    (#PCDATA) >
      <!ELEMENT update        (#PCDATA) >
      <!ELEMENT documentation (#PCDATA) >
      <!ELEMENT license       (#PCDATA) >
  
      <!ELEMENT contributors (author|patcher)* >
  
        <!ELEMENT author    EMPTY >    
        <!ATTLIST author    name    CDATA  #REQUIRED
                            email   CDATA  #REQUIRED >
  
        <!ELEMENT patcher   EMPTY >    
        <!ATTLIST patcher   name    CDATA  #REQUIRED
                            email   CDATA  #REQUIRED >
  
    <!ELEMENT services    (service*)>
  
      <!ELEMENT service   EMPTY >
      <!ATTLIST service   name      CDATA  #REQUIRED >
      <!ATTLIST service   version   CDATA  #REQUIRED >
  
   <!ELEMENT dependencies    (dependency*)>
  
      <!ELEMENT dependency  (annotation*,role,service,signers?) >    
  
      <!ELEMENT annotation  (#PCDATA) >
      <!ATTLIST annotation  language  CDATA #REQUIRED >
  
      <!ELEMENT role        (#PCDATA) >
      <!ELEMENT signers     (#PCDATA) >
  
  
  
  1.1                  jakarta-avalon-phoenix/src/schema/blockinfo.xsd
  
  Index: blockinfo.xsd
  ===================================================================
  <?xml version="1.0"?>
  
  <xsd:schema xmlns:xsd="http://www.w3.org/1999/XMLSchema">
  
    <xsd:annotation>
      <xsd:documentation>
        Schema for BlockInfo xml files.
        Copyright 2000 Apache.org. All Rights reserved.
        By Peter Donald
      </xsd:documentation>
    </xsd:annotation>
  
    <xsd:element name="blockinfo" type="BlockInfoType" />
  
    <xsd:complexType name="BlockInfoType">
      <xsd:element name="meta" type="MetaType" minOccurs="0" maxOccurs="1"/>
      <xsd:element name="services" type="ServicesType" minOccurs="0" maxOccurs="1"  />
      <xsd:element name="dependencies" type="DependenciesType" minOccurs="0" maxOccurs="1" />
    </xsd:complexType>
  
    <xsd:complexType name="MetaType">
      <xsd:element name="version" type="VersionType" minOccurs="0" maxOccurs="1"/>
      <xsd:element name="icon" type="IconType" minOccurs="0" maxOccurs="1"/>
      <xsd:element name="large-icon" type="LargeIconType" minOccurs="0" maxOccurs="1"/>
      <xsd:element name="update" type="UpdateType" minOccurs="0" maxOccurs="1"/>
      <xsd:element name="documentation" type="DocumentationType" minOccurs="0" maxOccurs="1"/>
      <xsd:element name="license" type="LicenseType" minOccurs="1" maxOccurs="1"  />
      <xsd:element name="contributors" type="ContributorsType" minOccurs="0" maxOccurs="1" />
    </xsd:complexType>
  
    <xsd:complexType name="VersionType" content="textOnly" />
    <xsd:complexType name="IconType" content="textOnly" />
    <xsd:complexType name="LargeIconType" content="textOnly" />
    <xsd:complexType name="UpdateType" content="textOnly" />
    <xsd:complexType name="DocumentationType" content="textOnly" />
    <xsd:complexType name="LicenseType" content="textOnly" />
  
    <xsd:complexType name="ServicesType" >
      <xsd:element name="service" type="ServiceType" minOccurs="1" maxOccurs="unbounded"/>
    </xsd:complexType>
  
    <xsd:complexType name="DependenciesType" >
      <xsd:element name="dependency" type="DependencyType" minOccurs="1" maxOccurs="unbounded"/>
    </xsd:complexType>
  
    <xsd:complexType name="WebPageType" >
      <xsd:attribute name="href" type="xsd:string" />
    </xsd:complexType>
  
    <xsd:complexType name="DocsType" >
      <xsd:attribute name="href" type="xsd:string" />
      <xsd:attribute name="type" type="xsd:string" value="text/html" />
    </xsd:complexType>
  
    <xsd:complexType name="LicenseType" >
      <xsd:attribute name="href" type="xsd:string" />
    </xsd:complexType>
  
    <xsd:complexType name="ContributorsType" >
      <xsd:element name="author" type="PersonType" minOccurs="0" maxOccurs="unbounded"/>
      <xsd:element name="patcher" type="PersonType" minOccurs="0" maxOccurs="unbounded"/>
    </xsd:complexType>
  
    <xsd:complexType name="PersonType" >
      <xsd:attribute name="name" type="xsd:string" />
      <xsd:attribute name="email" type="xsd:string" />
    </xsd:complexType>
  
    <xsd:complexType name="ServiceType" >
      <xsd:attribute name="name" type="xsd:string" />
      <xsd:attribute name="version" type="xsd:string" />
    </xsd:complexType>
  
    <xsd:complexType name="DependancyType" >
      <xsd:element name="annotation" type="AnnotationType" minOccurs="1" maxOccurs="unbounded"/>
      <xsd:element name="role" type="RoleType" />
      <xsd:element name="service" type="ServiceType" />
      <xsd:element name="signers" type="SignersType" />
    </xsd:complexType>
  
    <xsd:complexType name="SignersType" content="textOnly" />
  
    <xsd:complexType name="RoleType" content="textOnly" />
  
  </xsd:schema>