Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Eclipse Build Available RSS Schema"

m (build.xsd)
m
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
Latest XML Schema for the Eclipse.org RSS feeds for announcing available builds:
+
Latest XML Schema for the Eclipse.org RSS feeds for announcing available builds consists of two files:
  
== atom10_build.xsd ==
+
* Atom 1.0 spec, enhanced to include a build feed in its <code style="color:DarkGreen">&lt;summary/&gt;</code>: [http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/schema/?only_with_tag=releng_test atom10_build.xsd]
 +
* The <code style="color:DarkGreen">&lt;build/&gt;</code> node's addition to the above schema, including restrictive vocabulary for status codes and ids: [http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/schema/?only_with_tag=releng_test build.xsd] 
  
<pre>
+
From these two files you can easily generate an EMF editor to quickly validate your feed document against the latest spec. For details, see [http://dev.eclipse.org/viewcvs/indextools.cgi/*checkout*/org.eclipse.emf/doc/org.eclipse.emf.doc/tutorials/xlibmod/xlibmod.html generating an EMF editor from XML Schema].  
<?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">
+
[[Category:RSS]]
    <xs:complexType>
+
[[Category:Releng]]
      <xs:sequence>
+
[[Category:Modeling]]
        <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>
+
</pre>
+
 
+
== build.xsd ==
+
 
+
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]
+

Latest revision as of 14:03, 13 December 2006

Latest XML Schema for the Eclipse.org RSS feeds for announcing available builds consists of two files:

  • Atom 1.0 spec, enhanced to include a build feed in its <summary/>: atom10_build.xsd
  • The <build/> node's addition to the above schema, including restrictive vocabulary for status codes and ids: build.xsd

From these two files you can easily generate an EMF editor to quickly validate your feed document against the latest spec. For details, see generating an EMF editor from XML Schema.

Back to the top