Subversion Repositories Sites.tela-botanica.org

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
592 jpm 1
<?xml version="1.0" encoding="UTF-8"?>
2
<!-- ==================================================================== -->
3
<!-- Introduction                                                         -->
4
<!-- ==================================================================== -->
5
<!-- Schema for a type library for darwin and extension data types.       -->
6
<!-- History:                                                             -->
7
<!--   version 0.5 2007-02-14 John Wieczorek                              -->
8
<!-- Status:                                                              -->
9
<!--   Ready for testing.                                                 -->
10
<!--   Should be placed in a tdwg shared data types library.              -->
11
<!--   See http://wiki.tdwg.org for current status of this standard       -->
12
<!-- ==================================================================== -->
13
<!-- Schema                                                               -->
14
<!-- ==================================================================== -->
15
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="unqualified" version="0.5">
16
 
17
	<!-- ============================================================== -->
18
	<!-- Types                                                          -->
19
	<!-- ============================================================== -->
20
	<xs:simpleType name="positiveDouble">
21
	  <xs:restriction base="xs:double">
22
	    <xs:minExclusive value="0"/>
23
	  </xs:restriction>
24
	</xs:simpleType>
25
 
26
	<xs:simpleType name="dayOfYearDataType">
27
	  <xs:restriction base="xs:integer">
28
	    <xs:minInclusive value="1"/>
29
	    <xs:maxInclusive value="366"/>
30
	  </xs:restriction>
31
	</xs:simpleType>
32
 
33
	<xs:simpleType name="decimalLatitudeDataType">
34
	  <xs:restriction base="xs:double">
35
	    <xs:minInclusive value="-90"/>
36
	    <xs:maxInclusive value="90"/>
37
	  </xs:restriction>
38
	</xs:simpleType>
39
 
40
	<xs:simpleType name="decimalLongitudeDataType">
41
	  <xs:restriction base="xs:double">
42
	    <xs:minInclusive value="-180"/>
43
	    <xs:maxInclusive value="180"/>
44
	  </xs:restriction>
45
	</xs:simpleType>
46
 
47
	<xs:simpleType name="spatialFitDataType">
48
	  <xs:union>
49
	    <xs:simpleType>
50
	      <xs:restriction base="xs:double">
51
		<xs:minInclusive value="0"/>
52
		<xs:maxInclusive value="0"/>
53
	      </xs:restriction>
54
	    </xs:simpleType>
55
	    <xs:simpleType>
56
	      <xs:restriction base="xs:double">
57
		<xs:minInclusive value="1"/>
58
	      </xs:restriction>
59
	    </xs:simpleType>
60
	    <xs:simpleType>
61
	      <xs:restriction base="xs:NMTOKEN">
62
		<xs:enumeration value="undefined"/>
63
	      </xs:restriction>
64
	    </xs:simpleType>
65
	  </xs:union>
66
	</xs:simpleType>
67
 
68
        <xs:simpleType name="DateTimeISO">
69
          <xs:annotation>
70
            <xs:documentation xml:lang="en">
71
              The date and time expressed in a way conforming to a subset of ISO 8601. Meant to be exactly the same as DateTimeISO defined in ABCD.
72
            </xs:documentation>
73
          </xs:annotation>
74
          <xs:restriction base="xs:string">
75
            <xs:pattern value="\d\d\d\d(\-(0[1-9]|1[012])(\-((0[1-9])|1\d|2\d|3[01])(T(0\d|1\d|2[0-3])(:[0-5]\d){0,2})?)?)?|\-\-(0[1-9]|1[012])(\-(0[1-9]|1\d|2\d|3[01]))?|\-\-\-(0[1-9]|1\d|2\d|3[01])">
76
            </xs:pattern>
77
          </xs:restriction>
78
       </xs:simpleType>
79
 
80
</xs:schema>