<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
	<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/>
    <xs:include schemaLocation="http://zlst.org/schemas/2001/PrincipalType/PrincipalType.xsd"/>
	
	<xs:complexType name="UserType" abstract="true">
		<xs:annotation>
			<xs:documentation>Extends PrincipalType to define a user.</xs:documentation>
		</xs:annotation>
		<xs:complexContent>
			<xs:extension base="PrincipalType">				
				<xs:sequence>
				
					<xs:element name="Image" minOccurs="0" type="xs:anyURI">
						<xs:annotation>
							<xs:documentation>The URI to an image of the user. Must be of MIME type image/jpeg, image/gif, or image/png.</xs:documentation>
						</xs:annotation>
					</xs:element>
					
					<xs:element name="FullName" minOccurs="0">
						<xs:annotation>
							<xs:documentation>The contact information full name.</xs:documentation>
						</xs:annotation>
						<xs:simpleType>
							<xs:restriction base="xs:token">
								<xs:maxLength value="60"/>
							</xs:restriction>
						</xs:simpleType>
					</xs:element>
					
					<xs:element name="Title" minOccurs="0">
						<xs:annotation>
							<xs:documentation>The contact information title.</xs:documentation>
						</xs:annotation>
						<xs:simpleType>
							<xs:restriction base="xs:token">
								<xs:maxLength value="60"/>
							</xs:restriction>
						</xs:simpleType>
					</xs:element>
					
					<xs:element name="OrganizationName" minOccurs="0">
						<xs:annotation>
							<xs:documentation>The contact information organization  name.</xs:documentation>
						</xs:annotation>
						<xs:simpleType>
							<xs:restriction base="xs:token">
								<xs:maxLength value="60"/>
							</xs:restriction>
						</xs:simpleType>
					</xs:element>
					
					<xs:element name="AddressLine" minOccurs="0" maxOccurs="2">
						<xs:annotation>
							<xs:documentation>The contact information address line.</xs:documentation>
						</xs:annotation>
						<xs:simpleType>
							<xs:restriction base="xs:token">
								<xs:maxLength value="60"/>
							</xs:restriction>
						</xs:simpleType>
					</xs:element>
					
					<xs:element name="City" minOccurs="0">
						<xs:annotation>
							<xs:documentation>The contact information city.</xs:documentation>
						</xs:annotation>
						<xs:simpleType>
							<xs:restriction base="xs:token">
								<xs:maxLength value="25"/>
							</xs:restriction>
						</xs:simpleType>
					</xs:element>
					
					<xs:element name="Region" minOccurs="0">
						<xs:annotation>
							<xs:documentation>The contact information region or state.</xs:documentation>
						</xs:annotation>
						<xs:simpleType>
							<xs:restriction base="xs:token">
								<xs:maxLength value="15"/>
							</xs:restriction>
						</xs:simpleType>
					</xs:element>
					
					<xs:element name="PostalCode" minOccurs="0">
						<xs:annotation>
							<xs:documentation>The contact information postal code.</xs:documentation>
						</xs:annotation>
						<xs:simpleType>
							<xs:restriction base="xs:token">
								<xs:maxLength value="20"/>
							</xs:restriction>
						</xs:simpleType>
					</xs:element>
					
					<xs:element name="Country" minOccurs="0">
						<xs:annotation>
							<xs:documentation>The contact information country. If not specified, then US is assumed.</xs:documentation>
						</xs:annotation>
						<xs:simpleType>
							<xs:restriction base="xs:token">
								<xs:maxLength value="2"/>
							</xs:restriction>
						</xs:simpleType>
					</xs:element>
					
					<xs:element name="Phone" minOccurs="0">
						<xs:annotation>
							<xs:documentation>The contact information phone.</xs:documentation>
						</xs:annotation>
						<xs:simpleType>
							<xs:restriction base="xs:token">
								<xs:maxLength value="15"/>
							</xs:restriction>
						</xs:simpleType>
					</xs:element>
					
					<xs:element name="EmailAddress" minOccurs="0">
						<xs:annotation>
							<xs:documentation>The contact information email address.</xs:documentation>
						</xs:annotation>
						<xs:simpleType>
							<xs:restriction base="xs:token">
								<xs:maxLength value="127"/>
							</xs:restriction>
						</xs:simpleType>
					</xs:element>
					
				</xs:sequence>
			</xs:extension>
		</xs:complexContent>
	</xs:complexType>
	
</xs:schema>
