Rational Developer for System z

Project definition schema

The following schema defines tags used to define a project definition file.
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<xsd:element name="PROJECT-STRUCTURE">
  <xsd:annotation>
    <xsd:documentation>
      Top level element of a host-based project definition
      file
    </xsd:documentation>
  </xsd:annotation>
  <xsd:complexType>
    <xsd:sequence>
      <xsd:element ref="WSED-VERSION"></xsd:element>
      <xsd:element ref="PROJECT"></xsd:element>
    </xsd:sequence>
  </xsd:complexType>
</xsd:element>

<xsd:element name="WSED-VERSION" type="xsd:string"></xsd:element>

<xsd:element name="PROJECT">
  <xsd:annotation>
    <xsd:documentation>
      Defines the structure of a host-based project
    </xsd:documentation>
  </xsd:annotation>
  <xsd:complexType>
    <xsd:sequence>
      <xsd:element ref="PROJECT-NAME"></xsd:element>
      <xsd:element ref="PROJECT-TYPE"></xsd:element>
      <xsd:element ref="SUBPROJECT-LIST"></xsd:element>
    </xsd:sequence>
  </xsd:complexType>
</xsd:element>

<xsd:element name="PROJECT-NAME" type="xsd:string"></xsd:element>

<xsd:element name="PROJECT-TYPE" type="projectType">
  <xsd:annotation>
    <xsd:documentation>
      Currently only the zOS project type is defined.
    </xsd:documentation>
  </xsd:annotation>
</xsd:element>

<xsd:simpleType name="projectType">
  <xsd:restriction base="xsd:string">
    <xsd:enumeration value="zos-project"/>
  </xsd:restriction>
</xsd:simpleType>

<xsd:element name="SUBPROJECT-LIST">
  <xsd:annotation>
    <xsd:documentation>
      The list of subprojects contained by this project. All
      subprojects must be associated with this remote system.
    </xsd:documentation>
  </xsd:annotation>
  <xsd:complexType>
    <xsd:sequence>
      <xsd:element maxOccurs="unbounded" ref="SUBPROJECT"></xsd:element>
    </xsd:sequence>
  </xsd:complexType>
</xsd:element>

<xsd:element name="SUBPROJECT">
  <xsd:annotation>
    <xsd:documentation>
      Pointer to a subproject definition file. A possible
      future enhancement would be to allow for overriding the
      project name. Currently, the subproject name must be
      identical to the subproject definition file name.
    </xsd:documentation>
  </xsd:annotation>
  <xsd:complexType>
    <xsd:sequence>
      <xsd:element ref="SUBPROJECT-FULL-PATH"></xsd:element>
    </xsd:sequence>
  </xsd:complexType>
</xsd:element>

<xsd:element name="SUBPROJECT-FULL-PATH" type="xsd:string">
  <xsd:annotation>
    <xsd:documentation>
      The path to the subproject definition file. The path is
      relative to the root project configuration folder on the
      host.
    </xsd:documentation>
  </xsd:annotation>
</xsd:element>

</xsd:schema>

Feedback