<?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/DefinitionElementType/DefinitionElementType.xsd"/>
	<xs:include schemaLocation="http://zlst.org/schemas/2001/ResourceType/ResourceType.xsd"/>
	
	<xs:complexType name="AgentType" abstract="true">
		<xs:annotation>
			<xs:documentation>Extends DefinitionElementType to define the virtual presense of a principal in virtual space.</xs:documentation>
		</xs:annotation>
		<xs:complexContent>
			<xs:extension base="DefinitionElementType">
				<xs:sequence>
				
					<xs:element name="Image" minOccurs="0" type="xs:anyURI">
						<xs:annotation>
							<xs:documentation>The URI to an image of the agent. Must be of MIME type image/jpeg, image/gif, or image/png.</xs:documentation>
						</xs:annotation>
					</xs:element>
				
					<xs:element name="Principal" type="xs:anyURI">
						<xs:annotation>
							<xs:documentation>A URI to the principal of this agent.</xs:documentation>
						</xs:annotation>
					</xs:element>
					
					<xs:sequence minOccurs="0">

						<xs:element name="VirtualSpace" type="xs:anyURI">
							<xs:annotation>
								<xs:documentation>A URI to the virtual space which currently contains the virtual presence represented by the agent.</xs:documentation>
							</xs:annotation>
						</xs:element>
						
						<xs:element name="Realm" minOccurs="0" type="xs:anyURI" >
							<xs:annotation>
								<xs:documentation>A URI to the realm which currently contains the virtual presence represented by the agent.</xs:documentation>
							</xs:annotation>
						</xs:element>
						
					</xs:sequence>
						
				</xs:sequence>
			</xs:extension>
		</xs:complexContent>
	</xs:complexType>
	
</xs:schema>
