Jump to: navigation, search

Difference between revisions of "Eclipse Build Available RSS Schema"

 
m (build.xsd)
Line 64: Line 64:
 
== build.xsd ==
 
== build.xsd ==
  
<pre>
+
For the latest, see [http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/schema/?only_with_tag=releng_test /cvsroot/eclipse/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/schema]
<?xml version="1.0" encoding="UTF-8"?>
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
+
  targetNamespace="http://www.eclipse.org/2006/BuildFeed"
+
  xmlns="http://www.eclipse.org/2006/BuildFeed">
+
 
+
  <xs:element name="build">
+
    <xs:complexType>
+
      <xs:sequence>
+
        <xs:element minOccurs="0" maxOccurs="1" ref="update"/>
+
        <xs:element minOccurs="0" maxOccurs="1" ref="downloads"/>
+
        <xs:element minOccurs="0" maxOccurs="1" ref="releasenotes"/>
+
       
+
        <xs:element minOccurs="0" maxOccurs="1" ref="releases"/>
+
       
+
        <xs:element minOccurs="0" maxOccurs="1" ref="tests"/>
+
       
+
        <xs:element minOccurs="0" maxOccurs="1" ref="dependencies"/>
+
      </xs:sequence>
+
      <xs:attribute name="callisto" use="optional" type="xs:NCName"/>
+
      <xs:attribute name="jars" use="optional" type="xs:NCName"/>
+
      <xs:attribute name="type" use="required" type="xs:NCName"/>
+
      <xs:attribute name="href" use="required" type="xs:anyURI"/>
+
    </xs:complexType>
+
  </xs:element>
+
 
+
  <xs:element name="update" type="xs:anyURI"/>
+
  <xs:element name="downloads" type="xs:anyURI"/>
+
  <xs:element name="releasenotes" type="xs:anyURI"/>
+
 
+
  <xs:element name="releases">
+
    <xs:complexType>
+
      <xs:sequence>
+
        <xs:element minOccurs="1" maxOccurs="unbounded" ref="release"/>
+
      </xs:sequence>
+
    </xs:complexType>
+
  </xs:element>
+
  <xs:element name="release">
+
    <xs:complexType>
+
      <xs:simpleContent>
+
        <xs:extension base="xs:anyURI">
+
          <xs:attribute name="os" use="required" type="xs:NCName"/>
+
          <xs:attribute name="ws" use="required" type="xs:NCName"/>
+
          <xs:attribute name="type" use="required" type="xs:NCName"/>
+
        </xs:extension>
+
      </xs:simpleContent>
+
    </xs:complexType>
+
  </xs:element>
+
 
+
  <xs:element name="tests">
+
    <xs:complexType>
+
      <xs:sequence>
+
        <xs:element minOccurs="1" maxOccurs="unbounded" ref="test"/>
+
      </xs:sequence>
+
    </xs:complexType>
+
  </xs:element>
+
  <xs:element name="test">
+
    <xs:complexType>
+
      <xs:sequence>
+
        <xs:element minOccurs="1" maxOccurs="unbounded" ref="result"/>
+
      </xs:sequence>
+
      <xs:attribute name="href" use="optional" type="xs:anyURI"/>
+
      <xs:attribute name="type" use="required" type="xs:NCName"/>
+
    </xs:complexType>
+
  </xs:element>
+
  <xs:element name="result">
+
    <xs:complexType>
+
      <xs:simpleContent>
+
        <xs:extension base="xs:NCName">
+
          <xs:attribute name="os" use="required" type="xs:NCName"/>
+
          <xs:attribute name="ws" use="required" type="xs:NCName"/>
+
        </xs:extension>
+
      </xs:simpleContent>
+
    </xs:complexType>
+
  </xs:element>
+
 
+
  <xs:element name="dependencies">
+
    <xs:complexType>
+
      <xs:sequence>
+
        <xs:element minOccurs="1" maxOccurs="unbounded" ref="dependency"/>
+
      </xs:sequence>
+
    </xs:complexType>
+
  </xs:element>
+
  <xs:element name="dependency" type="xs:anyURI"/>
+
 
+
</xs:schema>
+
</pre>
+

Revision as of 16:01, 31 May 2006

Latest XML Schema for the Eclipse.org RSS feeds for announcing available builds:

atom10_build.xsd

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:atom="http://www.w3.org/2005/Atom" xmlns:bf="http://www.eclipse.org/2006/BuildFeed" 
  xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" 
  targetNamespace="http://www.w3.org/2005/Atom">
  <xs:import namespace="http://www.eclipse.org/2006/BuildFeed" schemaLocation="build.xsd"/>

  <xs:element name="feed">
    <xs:complexType>
      <xs:sequence>
        <xs:element ref="atom:title"/>
        <xs:element ref="atom:link"/>
        <xs:element ref="atom:updated"/>
        <xs:element ref="atom:author"/>
        <xs:element ref="atom:id"/>
        <xs:element maxOccurs="unbounded" ref="atom:entry"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="author">
    <xs:complexType>
      <xs:sequence>
        <xs:element ref="atom:name"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="name" type="xs:string"/>
  <xs:element name="entry">
    <xs:complexType>
      <xs:sequence>
        <xs:element ref="atom:title"/>
        <xs:element ref="atom:link"/>
        <xs:element ref="atom:id"/>
        <xs:element ref="atom:updated"/>
        <xs:element ref="atom:summary"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="summary">
    <xs:complexType>
      <xs:sequence>
        <xs:element maxOccurs="1" minOccurs="1" ref="bf:build"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>

  <xs:element name="title" type="xs:string"/>
  <xs:element name="link">
    <xs:complexType>
      <xs:attribute name="href" type="xs:anyURI" use="required"/>
      <xs:attribute name="rel" type="xs:NCName"/>
      <xs:attribute name="type"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="updated" type="xs:NMTOKEN"/>
  <xs:element name="id" type="xs:anyURI"/>
</xs:schema>

build.xsd

For the latest, see /cvsroot/eclipse/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/schema