| <?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> |