taverna-xml-schemas -> taverna-osgi-schemas

Project: http://git-wip-us.apache.org/repos/asf/incubator-taverna-osgi/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-taverna-osgi/commit/db7080df
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-taverna-osgi/tree/db7080df
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-taverna-osgi/diff/db7080df

Branch: refs/heads/master
Commit: db7080dfc538ebda7701004b5d05c3c90a9226ff
Parents: fea3650
Author: Stian Soiland-Reyes <soiland-re...@cs.manchester.ac.uk>
Authored: Thu Dec 18 22:30:57 2014 -0600
Committer: Stian Soiland-Reyes <soiland-re...@cs.manchester.ac.uk>
Committed: Thu Dec 18 22:30:57 2014 -0600

----------------------------------------------------------------------
 taverna-osgi-schemas/pom.xml                    | 49 +++++++++++++
 .../src/main/resources/ApplicationPlugin.xsd    | 67 +++++++++++++++++
 .../src/main/resources/ApplicationProfile.xsd   | 75 ++++++++++++++++++++
 .../src/main/resources/ApplicationVersions.xsd  | 44 ++++++++++++
 taverna-xml-schemas/pom.xml                     | 49 -------------
 .../src/main/resources/ApplicationPlugin.xsd    | 67 -----------------
 .../src/main/resources/ApplicationProfile.xsd   | 75 --------------------
 .../src/main/resources/ApplicationVersions.xsd  | 44 ------------
 8 files changed, 235 insertions(+), 235 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-taverna-osgi/blob/db7080df/taverna-osgi-schemas/pom.xml
----------------------------------------------------------------------
diff --git a/taverna-osgi-schemas/pom.xml b/taverna-osgi-schemas/pom.xml
new file mode 100644
index 0000000..8b193cc
--- /dev/null
+++ b/taverna-osgi-schemas/pom.xml
@@ -0,0 +1,49 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
+       <modelVersion>4.0.0</modelVersion>
+       <parent>
+               <artifactId>taverna-commons</artifactId>
+               <groupId>uk.org.taverna.commons</groupId>
+               <version>1.0.0-SNAPSHOT</version>
+       </parent>
+       <artifactId>taverna-xml-schemas</artifactId>
+       <version>0.1.0-SNAPSHOT</version>
+       <name>Taverna XML Schemas</name>
+       <packaging>bundle</packaging>
+       <build>
+               <plugins>
+                       <plugin>
+                               <groupId>org.jvnet.jaxb2.maven2</groupId>
+                               <artifactId>maven-jaxb2-plugin</artifactId>
+                               <executions>
+                                       <execution>
+                                               <goals>
+                                                       <goal>generate</goal>
+                                               </goals>
+                                       </execution>
+                               </executions>
+                       </plugin>
+               </plugins>
+       </build>
+       <repositories>
+               <repository>
+                       <releases />
+                       <snapshots>
+                               <enabled>false</enabled>
+                       </snapshots>
+                       <id>mygrid-repository</id>
+                       <name>myGrid Repository</name>
+                       <url>http://www.mygrid.org.uk/maven/repository
+                       </url>
+               </repository>
+               <repository>
+                       <releases>
+                               <enabled>false</enabled>
+                       </releases>
+                       <snapshots />
+                       <id>mygrid-snapshot-repository</id>
+                       <name>myGrid Snapshot Repository</name>
+                       
<url>http://www.mygrid.org.uk/maven/snapshot-repository</url>
+               </repository>
+       </repositories>
+</project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-taverna-osgi/blob/db7080df/taverna-osgi-schemas/src/main/resources/ApplicationPlugin.xsd
----------------------------------------------------------------------
diff --git a/taverna-osgi-schemas/src/main/resources/ApplicationPlugin.xsd 
b/taverna-osgi-schemas/src/main/resources/ApplicationPlugin.xsd
new file mode 100644
index 0000000..180c8c2
--- /dev/null
+++ b/taverna-osgi-schemas/src/main/resources/ApplicationPlugin.xsd
@@ -0,0 +1,67 @@
+<?xml version="1.0"?>
+<xs:schema xmlns="http://ns.taverna.org.uk/2013/application/plugin";
+       xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
xmlns:versions="http://ns.taverna.org.uk/2013/application/versions";
+       xmlns:ap="http://ns.taverna.org.uk/2013/application/profile";
+       xmlns:plugin="http://ns.taverna.org.uk/2013/application/plugin";
+       xmlns:jxb="http://java.sun.com/xml/ns/jaxb"; jxb:version="1.0"
+       targetNamespace="http://ns.taverna.org.uk/2013/application/plugin";
+       elementFormDefault="qualified">
+
+       <xs:annotation>
+               <xs:appinfo>
+                       <jxb:schemaBindings>
+                               <jxb:package 
name="uk.org.taverna.commons.plugin.xml.jaxb" />
+                       </jxb:schemaBindings>
+               </xs:appinfo>
+       </xs:annotation>
+
+       <xs:import 
namespace="http://ns.taverna.org.uk/2013/application/versions";
+               schemaLocation="ApplicationVersions.xsd" />
+
+       <xs:import namespace="http://ns.taverna.org.uk/2013/application/profile";
+               schemaLocation="ApplicationProfile.xsd" />
+
+       <xs:element name="pluginInfo">
+               <xs:complexType>
+                       <xs:sequence>
+                               <xs:element name="id" type="xs:string" />
+                               <xs:element name="name" type="xs:string" />
+                               <xs:element name="description" type="xs:string" 
/>
+                               <xs:element name="organization" 
type="xs:string" />
+                               <xs:element name="version" 
type="versions:semanticVersion" />
+                               <xs:element name="bundle" type="ap:bundleInfo" 
minOccurs="0" maxOccurs="unbounded" />
+                       </xs:sequence>
+               </xs:complexType>
+       </xs:element>
+
+       <xs:complexType name="pluginVersions">
+               <xs:complexContent>
+                       <xs:extension base="versions:versions">
+                               <xs:sequence>
+                                       <xs:element name="organization" 
type="xs:string" />
+                                       <xs:element name="pluginSiteUrl" 
type="xs:string" minOccurs="0" />
+                               </xs:sequence>
+                       </xs:extension>
+               </xs:complexContent>
+       </xs:complexType>
+
+       <xs:element name="plugins">
+               <xs:complexType>
+                       <xs:sequence>
+                               <xs:element name="plugin" type="pluginVersions"
+                                       minOccurs="1" maxOccurs="unbounded">
+                                       <xs:unique name="versionUnique">
+                                               <xs:selector
+                                                       
xpath="versions:previousVersion/versions:version|versions:latestVersion/versions:version"
 />
+                                               <xs:field xpath="." />
+                                       </xs:unique>
+                               </xs:element>
+                       </xs:sequence>
+               </xs:complexType>
+               <xs:unique name="versionsIdUnique">
+                       <xs:selector xpath="plugin:versions/versions:id" />
+                       <xs:field xpath="." />
+               </xs:unique>
+       </xs:element>
+
+</xs:schema>

http://git-wip-us.apache.org/repos/asf/incubator-taverna-osgi/blob/db7080df/taverna-osgi-schemas/src/main/resources/ApplicationProfile.xsd
----------------------------------------------------------------------
diff --git a/taverna-osgi-schemas/src/main/resources/ApplicationProfile.xsd 
b/taverna-osgi-schemas/src/main/resources/ApplicationProfile.xsd
new file mode 100644
index 0000000..78073a2
--- /dev/null
+++ b/taverna-osgi-schemas/src/main/resources/ApplicationProfile.xsd
@@ -0,0 +1,75 @@
+<?xml version="1.0"?>
+<xs:schema xmlns="http://ns.taverna.org.uk/2013/application/profile";
+       xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
xmlns:versions="http://ns.taverna.org.uk/2013/application/versions";
+       xmlns:ap="http://ns.taverna.org.uk/2013/application/profile"; 
xmlns:jxb="http://java.sun.com/xml/ns/jaxb";
+       jxb:version="1.0" 
targetNamespace="http://ns.taverna.org.uk/2013/application/profile";
+       elementFormDefault="qualified">
+
+       <xs:annotation>
+               <xs:appinfo>
+                       <jxb:schemaBindings>
+                               <jxb:package 
name="uk.org.taverna.commons.profile.xml.jaxb" />
+                       </jxb:schemaBindings>
+               </xs:appinfo>
+       </xs:annotation>
+
+       <xs:import 
namespace="http://ns.taverna.org.uk/2013/application/versions";
+               schemaLocation="ApplicationVersions.xsd" />
+
+       <xs:complexType name="frameworkConfiguration">
+               <xs:attribute name="name" type="xs:string" use="required" />
+               <xs:attribute name="value" type="xs:string" use="required" />
+       </xs:complexType>
+
+       <xs:complexType name="bundleInfo">
+               <xs:sequence>
+                       <xs:element name="fileName" type="xs:anyURI" 
minOccurs="0" />
+               </xs:sequence>
+               <xs:attribute name="symbolicName" type="xs:string" 
use="required" />
+               <xs:attribute name="version" type="versions:semanticVersion"
+                       use="required" />
+       </xs:complexType>
+
+       <xs:complexType name="updates">
+               <xs:sequence>
+                       <xs:element name="updateSite" type="xs:anyURI" />
+                       <xs:element name="updatesFile" type="xs:string" />
+                       <xs:element name="libDirectory" type="xs:string" />
+                       <xs:element name="pluginSite" type="xs:string" />
+                       <xs:element name="pluginsFile" type="xs:string" />
+               </xs:sequence>
+       </xs:complexType>
+
+       <xs:element name="applicationProfile">
+               <xs:complexType>
+                       <xs:sequence>
+                               <xs:element name="id" type="xs:string" />
+                               <xs:element name="name" type="xs:string" />
+                               <xs:element name="version" 
type="versions:semanticVersion" />
+                               <xs:element name="updates" type="updates" />
+                               <xs:element name="frameworkConfiguration" 
type="frameworkConfiguration"
+                                       minOccurs="0" maxOccurs="unbounded" />
+                               <xs:element name="bundle" type="bundleInfo" 
minOccurs="0" maxOccurs="unbounded" />
+                       </xs:sequence>
+               </xs:complexType>
+               <xs:unique name="symbolicNameUnique">
+                       <xs:selector xpath="ap:bundles/ap:bundle"></xs:selector>
+                       <xs:field xpath="@symbolicName"></xs:field>
+               </xs:unique>
+       </xs:element>
+
+       <xs:element name="updateSite">
+               <xs:complexType>
+                       <xs:sequence>
+                               <xs:element name="versions" 
type="versions:versions">
+                                       <xs:unique name="versionUnique">
+                                               <xs:selector
+                                                       
xpath="versions:previousVersion/versions:version|versions:latestVersion/versions:version"
 />
+                                               <xs:field xpath="." />
+                                       </xs:unique>
+                               </xs:element>
+                       </xs:sequence>
+               </xs:complexType>
+       </xs:element>
+
+</xs:schema>

http://git-wip-us.apache.org/repos/asf/incubator-taverna-osgi/blob/db7080df/taverna-osgi-schemas/src/main/resources/ApplicationVersions.xsd
----------------------------------------------------------------------
diff --git a/taverna-osgi-schemas/src/main/resources/ApplicationVersions.xsd 
b/taverna-osgi-schemas/src/main/resources/ApplicationVersions.xsd
new file mode 100644
index 0000000..706423c
--- /dev/null
+++ b/taverna-osgi-schemas/src/main/resources/ApplicationVersions.xsd
@@ -0,0 +1,44 @@
+<?xml version="1.0"?>
+<xs:schema xmlns="http://ns.taverna.org.uk/2013/application/versions";
+       xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
xmlns:versions="http://ns.taverna.org.uk/2013/application/versions";
+       xmlns:jxb="http://java.sun.com/xml/ns/jaxb"; jxb:version="1.0"
+       targetNamespace="http://ns.taverna.org.uk/2013/application/versions";
+       elementFormDefault="qualified">
+
+       <xs:annotation>
+               <xs:appinfo>
+                       <jxb:schemaBindings>
+                               <jxb:package 
name="uk.org.taverna.commons.versions.xml.jaxb" />
+                       </jxb:schemaBindings>
+               </xs:appinfo>
+       </xs:annotation>
+
+       <xs:simpleType name="semanticVersion">
+               <xs:annotation>
+                       <xs:documentation>A semantic version.</xs:documentation>
+               </xs:annotation>
+               <xs:restriction base="xs:string">
+                       <xs:pattern 
value="[0-9]+\.[0-9]+(\.[0-9]+(\.[0-9A-Za-z_-]+)?)?" />
+               </xs:restriction>
+       </xs:simpleType>
+
+       <xs:complexType name="version">
+               <xs:sequence>
+                       <xs:element name="version" type="semanticVersion" />
+                       <xs:element name="file" type="xs:string" />
+               </xs:sequence>
+       </xs:complexType>
+
+       <xs:complexType name="versions">
+               <xs:sequence>
+                       <xs:element name="id" type="xs:string" />
+                       <xs:element name="name" type="xs:string" />
+                       <xs:element name="description" type="xs:string" />
+                       <xs:element name="latestVersion" type="version" 
minOccurs="1"
+                               maxOccurs="1" />
+                       <xs:element name="previousVersion" type="version"
+                               minOccurs="0" maxOccurs="unbounded" />
+               </xs:sequence>
+       </xs:complexType>
+
+</xs:schema>

http://git-wip-us.apache.org/repos/asf/incubator-taverna-osgi/blob/db7080df/taverna-xml-schemas/pom.xml
----------------------------------------------------------------------
diff --git a/taverna-xml-schemas/pom.xml b/taverna-xml-schemas/pom.xml
deleted file mode 100644
index 8b193cc..0000000
--- a/taverna-xml-schemas/pom.xml
+++ /dev/null
@@ -1,49 +0,0 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
-       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
-       <modelVersion>4.0.0</modelVersion>
-       <parent>
-               <artifactId>taverna-commons</artifactId>
-               <groupId>uk.org.taverna.commons</groupId>
-               <version>1.0.0-SNAPSHOT</version>
-       </parent>
-       <artifactId>taverna-xml-schemas</artifactId>
-       <version>0.1.0-SNAPSHOT</version>
-       <name>Taverna XML Schemas</name>
-       <packaging>bundle</packaging>
-       <build>
-               <plugins>
-                       <plugin>
-                               <groupId>org.jvnet.jaxb2.maven2</groupId>
-                               <artifactId>maven-jaxb2-plugin</artifactId>
-                               <executions>
-                                       <execution>
-                                               <goals>
-                                                       <goal>generate</goal>
-                                               </goals>
-                                       </execution>
-                               </executions>
-                       </plugin>
-               </plugins>
-       </build>
-       <repositories>
-               <repository>
-                       <releases />
-                       <snapshots>
-                               <enabled>false</enabled>
-                       </snapshots>
-                       <id>mygrid-repository</id>
-                       <name>myGrid Repository</name>
-                       <url>http://www.mygrid.org.uk/maven/repository
-                       </url>
-               </repository>
-               <repository>
-                       <releases>
-                               <enabled>false</enabled>
-                       </releases>
-                       <snapshots />
-                       <id>mygrid-snapshot-repository</id>
-                       <name>myGrid Snapshot Repository</name>
-                       
<url>http://www.mygrid.org.uk/maven/snapshot-repository</url>
-               </repository>
-       </repositories>
-</project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-taverna-osgi/blob/db7080df/taverna-xml-schemas/src/main/resources/ApplicationPlugin.xsd
----------------------------------------------------------------------
diff --git a/taverna-xml-schemas/src/main/resources/ApplicationPlugin.xsd 
b/taverna-xml-schemas/src/main/resources/ApplicationPlugin.xsd
deleted file mode 100644
index 180c8c2..0000000
--- a/taverna-xml-schemas/src/main/resources/ApplicationPlugin.xsd
+++ /dev/null
@@ -1,67 +0,0 @@
-<?xml version="1.0"?>
-<xs:schema xmlns="http://ns.taverna.org.uk/2013/application/plugin";
-       xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
xmlns:versions="http://ns.taverna.org.uk/2013/application/versions";
-       xmlns:ap="http://ns.taverna.org.uk/2013/application/profile";
-       xmlns:plugin="http://ns.taverna.org.uk/2013/application/plugin";
-       xmlns:jxb="http://java.sun.com/xml/ns/jaxb"; jxb:version="1.0"
-       targetNamespace="http://ns.taverna.org.uk/2013/application/plugin";
-       elementFormDefault="qualified">
-
-       <xs:annotation>
-               <xs:appinfo>
-                       <jxb:schemaBindings>
-                               <jxb:package 
name="uk.org.taverna.commons.plugin.xml.jaxb" />
-                       </jxb:schemaBindings>
-               </xs:appinfo>
-       </xs:annotation>
-
-       <xs:import 
namespace="http://ns.taverna.org.uk/2013/application/versions";
-               schemaLocation="ApplicationVersions.xsd" />
-
-       <xs:import namespace="http://ns.taverna.org.uk/2013/application/profile";
-               schemaLocation="ApplicationProfile.xsd" />
-
-       <xs:element name="pluginInfo">
-               <xs:complexType>
-                       <xs:sequence>
-                               <xs:element name="id" type="xs:string" />
-                               <xs:element name="name" type="xs:string" />
-                               <xs:element name="description" type="xs:string" 
/>
-                               <xs:element name="organization" 
type="xs:string" />
-                               <xs:element name="version" 
type="versions:semanticVersion" />
-                               <xs:element name="bundle" type="ap:bundleInfo" 
minOccurs="0" maxOccurs="unbounded" />
-                       </xs:sequence>
-               </xs:complexType>
-       </xs:element>
-
-       <xs:complexType name="pluginVersions">
-               <xs:complexContent>
-                       <xs:extension base="versions:versions">
-                               <xs:sequence>
-                                       <xs:element name="organization" 
type="xs:string" />
-                                       <xs:element name="pluginSiteUrl" 
type="xs:string" minOccurs="0" />
-                               </xs:sequence>
-                       </xs:extension>
-               </xs:complexContent>
-       </xs:complexType>
-
-       <xs:element name="plugins">
-               <xs:complexType>
-                       <xs:sequence>
-                               <xs:element name="plugin" type="pluginVersions"
-                                       minOccurs="1" maxOccurs="unbounded">
-                                       <xs:unique name="versionUnique">
-                                               <xs:selector
-                                                       
xpath="versions:previousVersion/versions:version|versions:latestVersion/versions:version"
 />
-                                               <xs:field xpath="." />
-                                       </xs:unique>
-                               </xs:element>
-                       </xs:sequence>
-               </xs:complexType>
-               <xs:unique name="versionsIdUnique">
-                       <xs:selector xpath="plugin:versions/versions:id" />
-                       <xs:field xpath="." />
-               </xs:unique>
-       </xs:element>
-
-</xs:schema>

http://git-wip-us.apache.org/repos/asf/incubator-taverna-osgi/blob/db7080df/taverna-xml-schemas/src/main/resources/ApplicationProfile.xsd
----------------------------------------------------------------------
diff --git a/taverna-xml-schemas/src/main/resources/ApplicationProfile.xsd 
b/taverna-xml-schemas/src/main/resources/ApplicationProfile.xsd
deleted file mode 100644
index 78073a2..0000000
--- a/taverna-xml-schemas/src/main/resources/ApplicationProfile.xsd
+++ /dev/null
@@ -1,75 +0,0 @@
-<?xml version="1.0"?>
-<xs:schema xmlns="http://ns.taverna.org.uk/2013/application/profile";
-       xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
xmlns:versions="http://ns.taverna.org.uk/2013/application/versions";
-       xmlns:ap="http://ns.taverna.org.uk/2013/application/profile"; 
xmlns:jxb="http://java.sun.com/xml/ns/jaxb";
-       jxb:version="1.0" 
targetNamespace="http://ns.taverna.org.uk/2013/application/profile";
-       elementFormDefault="qualified">
-
-       <xs:annotation>
-               <xs:appinfo>
-                       <jxb:schemaBindings>
-                               <jxb:package 
name="uk.org.taverna.commons.profile.xml.jaxb" />
-                       </jxb:schemaBindings>
-               </xs:appinfo>
-       </xs:annotation>
-
-       <xs:import 
namespace="http://ns.taverna.org.uk/2013/application/versions";
-               schemaLocation="ApplicationVersions.xsd" />
-
-       <xs:complexType name="frameworkConfiguration">
-               <xs:attribute name="name" type="xs:string" use="required" />
-               <xs:attribute name="value" type="xs:string" use="required" />
-       </xs:complexType>
-
-       <xs:complexType name="bundleInfo">
-               <xs:sequence>
-                       <xs:element name="fileName" type="xs:anyURI" 
minOccurs="0" />
-               </xs:sequence>
-               <xs:attribute name="symbolicName" type="xs:string" 
use="required" />
-               <xs:attribute name="version" type="versions:semanticVersion"
-                       use="required" />
-       </xs:complexType>
-
-       <xs:complexType name="updates">
-               <xs:sequence>
-                       <xs:element name="updateSite" type="xs:anyURI" />
-                       <xs:element name="updatesFile" type="xs:string" />
-                       <xs:element name="libDirectory" type="xs:string" />
-                       <xs:element name="pluginSite" type="xs:string" />
-                       <xs:element name="pluginsFile" type="xs:string" />
-               </xs:sequence>
-       </xs:complexType>
-
-       <xs:element name="applicationProfile">
-               <xs:complexType>
-                       <xs:sequence>
-                               <xs:element name="id" type="xs:string" />
-                               <xs:element name="name" type="xs:string" />
-                               <xs:element name="version" 
type="versions:semanticVersion" />
-                               <xs:element name="updates" type="updates" />
-                               <xs:element name="frameworkConfiguration" 
type="frameworkConfiguration"
-                                       minOccurs="0" maxOccurs="unbounded" />
-                               <xs:element name="bundle" type="bundleInfo" 
minOccurs="0" maxOccurs="unbounded" />
-                       </xs:sequence>
-               </xs:complexType>
-               <xs:unique name="symbolicNameUnique">
-                       <xs:selector xpath="ap:bundles/ap:bundle"></xs:selector>
-                       <xs:field xpath="@symbolicName"></xs:field>
-               </xs:unique>
-       </xs:element>
-
-       <xs:element name="updateSite">
-               <xs:complexType>
-                       <xs:sequence>
-                               <xs:element name="versions" 
type="versions:versions">
-                                       <xs:unique name="versionUnique">
-                                               <xs:selector
-                                                       
xpath="versions:previousVersion/versions:version|versions:latestVersion/versions:version"
 />
-                                               <xs:field xpath="." />
-                                       </xs:unique>
-                               </xs:element>
-                       </xs:sequence>
-               </xs:complexType>
-       </xs:element>
-
-</xs:schema>

http://git-wip-us.apache.org/repos/asf/incubator-taverna-osgi/blob/db7080df/taverna-xml-schemas/src/main/resources/ApplicationVersions.xsd
----------------------------------------------------------------------
diff --git a/taverna-xml-schemas/src/main/resources/ApplicationVersions.xsd 
b/taverna-xml-schemas/src/main/resources/ApplicationVersions.xsd
deleted file mode 100644
index 706423c..0000000
--- a/taverna-xml-schemas/src/main/resources/ApplicationVersions.xsd
+++ /dev/null
@@ -1,44 +0,0 @@
-<?xml version="1.0"?>
-<xs:schema xmlns="http://ns.taverna.org.uk/2013/application/versions";
-       xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
xmlns:versions="http://ns.taverna.org.uk/2013/application/versions";
-       xmlns:jxb="http://java.sun.com/xml/ns/jaxb"; jxb:version="1.0"
-       targetNamespace="http://ns.taverna.org.uk/2013/application/versions";
-       elementFormDefault="qualified">
-
-       <xs:annotation>
-               <xs:appinfo>
-                       <jxb:schemaBindings>
-                               <jxb:package 
name="uk.org.taverna.commons.versions.xml.jaxb" />
-                       </jxb:schemaBindings>
-               </xs:appinfo>
-       </xs:annotation>
-
-       <xs:simpleType name="semanticVersion">
-               <xs:annotation>
-                       <xs:documentation>A semantic version.</xs:documentation>
-               </xs:annotation>
-               <xs:restriction base="xs:string">
-                       <xs:pattern 
value="[0-9]+\.[0-9]+(\.[0-9]+(\.[0-9A-Za-z_-]+)?)?" />
-               </xs:restriction>
-       </xs:simpleType>
-
-       <xs:complexType name="version">
-               <xs:sequence>
-                       <xs:element name="version" type="semanticVersion" />
-                       <xs:element name="file" type="xs:string" />
-               </xs:sequence>
-       </xs:complexType>
-
-       <xs:complexType name="versions">
-               <xs:sequence>
-                       <xs:element name="id" type="xs:string" />
-                       <xs:element name="name" type="xs:string" />
-                       <xs:element name="description" type="xs:string" />
-                       <xs:element name="latestVersion" type="version" 
minOccurs="1"
-                               maxOccurs="1" />
-                       <xs:element name="previousVersion" type="version"
-                               minOccurs="0" maxOccurs="unbounded" />
-               </xs:sequence>
-       </xs:complexType>
-
-</xs:schema>

Reply via email to