[tdwg-tapir] Schema modification: r523 - trunk/protocol
Author: markus Date: 2006-05-04 16:42:12 +0200 (Thu, 04 May 2006) New Revision: 523
Modified: trunk/protocol/tapir.xsd Log: created 2x2 new simpleTypes for entityRoles and contactRoles. For each of them a simple type with an enumeration is created and another simple type that extends this list with a union of xsd:string, thus allowing any other string too.
Modified: trunk/protocol/tapir.xsd =================================================================== --- trunk/protocol/tapir.xsd 2006-05-04 14:10:04 UTC (rev 522) +++ trunk/protocol/tapir.xsd 2006-05-04 14:42:12 UTC (rev 523) @@ -1485,7 +1485,7 @@ <xsd:element name="title" type="languageAwareElementType" minOccurs="0"/> <xsd:element name="email" type="xsd:string"/> <xsd:element name="phone" type="xsd:string" minOccurs="0"/> - <xsd:element name="role" type="xsd:string" maxOccurs="unbounded"> + <xsd:element name="role" type="contactRoleExtensionType" maxOccurs="unbounded"> xsd:annotation xsd:documentationUsed to specify the roles of a contact, such as "data administrator", "system administrator", etc.</xsd:documentation> @@ -1494,6 +1494,24 @@ </xsd:sequence> <xsd:attribute ref="lang"/> </xsd:complexType> + <xsd:simpleType name="contactRoleType"> + <xsd:restriction base="xsd:string"> + <xsd:enumeration value="data administrator"/> + <xsd:enumeration value="system administrator"/> + </xsd:restriction> + </xsd:simpleType> + <xsd:simpleType name="contactRoleExtensionType"> + <xsd:union memberTypes="contactRoleType xsd:string"/> + </xsd:simpleType> + <xsd:simpleType name="entityRoleType"> + <xsd:restriction base="xsd:string"> + <xsd:enumeration value="data supplier"/> + <xsd:enumeration value="technical host"/> + </xsd:restriction> + </xsd:simpleType> + <xsd:simpleType name="entityRoleExtensionType"> + <xsd:union memberTypes="entityRoleType xsd:string"/> + </xsd:simpleType> <xsd:complexType name="entityInformationType"> xsd:annotation xsd:documentationEntity information.</xsd:documentation> @@ -1546,7 +1564,7 @@ xsd:complexContent <xsd:extension base="entityInformationType"> xsd:sequence - <xsd:element name="role" type="xsd:string" maxOccurs="unbounded"> + <xsd:element name="role" type="entityRoleExtensionType" maxOccurs="unbounded"> xsd:annotation xsd:documentationUsed to specify the roles of a related entity, such as "data supplier", "technical host", etc.</xsd:documentation>
participants (1)
-
tdwg-tapir@lists.tdwg.org