|
| 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 | +<!-- ==================================================================== --> |
| 14 | +<!-- Schema --> |
| 15 | +<!-- ==================================================================== --> |
| 16 | +<xs:schema |
| 17 | + xmlns:xs="http://www.w3.org/2001/XMLSchema" |
| 18 | + elementFormDefault="unqualified" version="0.5"> |
| 19 | + |
| 20 | + <!-- ============================================================== --> |
| 21 | + <!-- Types --> |
| 22 | + <!-- ============================================================== --> |
| 23 | + <xs:simpleType name="positiveDouble"> |
| 24 | + <xs:restriction base="xs:double"> |
| 25 | + <xs:minExclusive value="0"/> |
| 26 | + </xs:restriction> |
| 27 | + </xs:simpleType> |
| 28 | + |
| 29 | + <xs:simpleType name="dayOfYearDataType"> |
| 30 | + <xs:restriction base="xs:integer"> |
| 31 | + <xs:minInclusive value="1"/> |
| 32 | + <xs:maxInclusive value="366"/> |
| 33 | + </xs:restriction> |
| 34 | + </xs:simpleType> |
| 35 | + |
| 36 | + <xs:simpleType name="decimalLatitudeDataType"> |
| 37 | + <xs:restriction base="xs:double"> |
| 38 | + <xs:minInclusive value="-90"/> |
| 39 | + <xs:maxInclusive value="90"/> |
| 40 | + </xs:restriction> |
| 41 | + </xs:simpleType> |
| 42 | + |
| 43 | + <xs:simpleType name="decimalLongitudeDataType"> |
| 44 | + <xs:restriction base="xs:double"> |
| 45 | + <xs:minInclusive value="-180"/> |
| 46 | + <xs:maxInclusive value="180"/> |
| 47 | + </xs:restriction> |
| 48 | + </xs:simpleType> |
| 49 | + |
| 50 | + <xs:simpleType name="spatialFitDataType"> |
| 51 | + <xs:union> |
| 52 | + <xs:simpleType> |
| 53 | + <xs:restriction base="xs:double"> |
| 54 | + <xs:minInclusive value="0"/> |
| 55 | + <xs:maxInclusive value="0"/> |
| 56 | + </xs:restriction> |
| 57 | + </xs:simpleType> |
| 58 | + <xs:simpleType> |
| 59 | + <xs:restriction base="xs:double"> |
| 60 | + <xs:minInclusive value="1"/> |
| 61 | + </xs:restriction> |
| 62 | + </xs:simpleType> |
| 63 | + <xs:simpleType> |
| 64 | + <xs:restriction base="xs:NMTOKEN"> |
| 65 | + <xs:enumeration value="undefined"/> |
| 66 | + </xs:restriction> |
| 67 | + </xs:simpleType> |
| 68 | + </xs:union> |
| 69 | + </xs:simpleType> |
| 70 | + |
| 71 | + <xs:simpleType name="DateTimeISO"> |
| 72 | + <xs:annotation> |
| 73 | + <xs:documentation xml:lang="en"> |
| 74 | + 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. |
| 75 | + </xs:documentation> |
| 76 | + </xs:annotation> |
| 77 | + <xs:restriction base="xs:string"> |
| 78 | + <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])"> |
| 79 | + </xs:pattern> |
| 80 | + </xs:restriction> |
| 81 | + </xs:simpleType> |
| 82 | + |
| 83 | +</xs:schema> |
0 commit comments