Skip to content
Permalink
9a7d6419a0
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
…ntain the CMDLINE from the template or otherwise unreasonable values
1 contributor

Users who have contributed to this file

109 lines (103 sloc) 3.45 KB
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="author_type">
<xs:sequence>
<xs:element name="name" type="xs:string"/>
<xs:element name="email" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="file_type">
<xs:sequence>
<xs:element name="identifier" type="xs:string" />
<xs:element name="format" type="xs:string" default="see file extension" />
<xs:element name="quantity">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="single" />
<xs:enumeration value="collection" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="comment" type="xs:string" default="no comment" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="tool_type">
<xs:sequence>
<xs:element name="name">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="2" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="version">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="command_line">
<xs:simpleType>
<xs:restriction base="xs:string">
<!-- the following minLength restriction takes the <![CDATA[ CMDLINE ]]> enclosure
from the Process template file into account (= fails) -->
<xs:minLength value="15" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="loop" type="xs:string" default="no looping" />
<xs:element name="comment" type="xs:string" default="no comment" />
</xs:sequence>
</xs:complexType>
<xs:element name="process">
<xs:complexType>
<xs:sequence>
<xs:element name="name">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="[A-Z][A-Z][A-Z]"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="version">
<xs:simpleType>
<xs:restriction base="xs:nonNegativeInteger">
<xs:pattern value="[0-9]"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="author" type="author_type"/>
<xs:element name="description" type="xs:string"/>
<xs:element name="inputs">
<xs:complexType>
<xs:sequence>
<xs:element name="filetype" type="file_type" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="references">
<xs:complexType>
<xs:sequence>
<xs:element name="filetype" type="file_type" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="outputs">
<xs:complexType>
<xs:sequence>
<xs:element name="filetype" type="file_type" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="software">
<xs:complexType>
<xs:sequence>
<xs:element name="tool" type="tool_type" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>