<?xml version="1.0" encoding="UTF-8"?>
<xs:schema	xmlns:xs="http://www.w3.org/2001/XMLSchema"
				xmlns:part="http://rets.org/xsd/Participants/2007-08"
				xmlns:commons="http://rets.org/xsd/RETSCommons/2007-08"
				xmlns:members="http://rets.org/xsd/Members/2007-08"
				xmlns:teams="http://rets.org/xsd/Teams/2007-08"
				targetNamespace="http://rets.org/xsd/Participants/2007-08"
				elementFormDefault="qualified"
				attributeFormDefault="unqualified">

	<!--
		Tab stops
		:set ts=3

		File History
		======================
		$Header: Participants.xsd, 22, 7/26/2007 9:12:45 PM, Paul Stusiak$

		$Log:
		 22   055_RETS_Standard1.21        7/26/2007 9:12:45 PM   Paul Stusiak
		      update version timestamp
		 21   055_RETS_Standard1.20        7/26/2007 2:11:20 PM   Gina Accawi
		      Ensure a modification timestamp is present.
		 20   055_RETS_Standard1.19        7/26/2007 1:08:23 PM   Gina Accawi
		      Rename member key to participant key.
		 19   055_RETS_Standard1.18        7/24/2007 5:09:02 PM   Paul Stusiak    add
		       keys to Participant and Person, update the entities to support this,
		      make the files have a common pattern.
		 18   055_RETS_Standard1.17        7/24/2007 12:46:57 PM  Paul Stusiak
		      change to ParticipantsType, fix namespace
		 17   055_RETS_Standard1.16        7/9/2007 2:00:57 AM    Paul Stusiak
		      Rework of CR 80 to change the way that Role, Team, Person and Member
		      interact as Participants. Person, Member and Team now take on a Role
		      when acting as a Participant for a Listing (or Transaction)
		 16   055_RETS_Standard1.15        5/2/2007 1:29:38 PM    Paul Stusiak
		      change namespace reference, update version time stamp
		 15   055_RETS_Standard1.14        4/3/2007 4:59:31 PM    Paul Stusiak    use
		       url resolution for include, import to test schema validation
		 14   055_RETS_Standard1.13        4/3/2007 1:43:59 AM    Paul Stusiak
		      change namespace to remote location (www.ftc2.com) for testing
		 13   055_RETS_Standard1.12        4/2/2007 11:26:57 AM   Paul Stusiak
		      change namespace to match responding server and to use the URI
		      versioning suggested by both HP and XFront
		 12   055_RETS_Standard1.11        3/30/2007 6:21:08 PM   Paul Stusiak
		      Update of the versionTimestamp and the namespace (namespace to
		      200704). Change formating to a standard format
		 11   055_RETS_Standard1.10        3/7/2007 10:57:57 PM   Paul Stusiak
		      Clean up the project information for the purposes of document
		      generation.
		 10   055_RETS_Standard1.9         2/28/2007 1:06:11 AM   Paul Stusiak    add
		       standard header and refactoring RETSCommons changes
		 9    055_RETS_Standard1.8         2/22/2007 3:34:53 PM   Gina Accawi
		      Remove all references to the schemaLocation as being
		      http://retsserver.realtors.org:8080/xsd/.  These references have been
		      changed to be relative path (as the current directory). Now,
		      regardless of where they are published, the referential internal
		      integrity will remain. The assumption is that these will all reside as
		       neighbors on the target distribution server.
		 8    055_RETS_Standard1.7         12/20/2006 12:31:08 PM Jeff Brush
		      added retsserver location back to imports;  renamed Prospect to
		      SavedQuery; changed ListingHistory to track only select fields
		      identified by workgroup;renamed Agency to Agents and fixed references
		      in other schemas;changed TotalSqFeet references to TotalArea; per 12/7
		       MLS payload workgroup meeting
		 7    055_RETS_Standard1.6         12/2/2006 1:12:45 AM   Paul Stusiak
		      various mechanical fixes tho the schema and a re-direct from
		      retsserver.realtors.org to www.ftc2.com
		 6    055_RETS_Standard1.5         11/28/2006 1:41:32 AM  Paul Stusiak
		      updated version per meetings
		 5    055_RETS_Standard1.4         10/13/2006 7:45:15 AM  Jeff Brush
		      Changes to schemas from 10/5 and 10/12 TMS workgroup meeting.
		 4    055_RETS_Standard1.3         9/20/2006 12:43:27 PM  Jeff Brush
		      chgd schemaLocation to point to http://retsserver.rets.org:8080/xsd/
		 3    055_RETS_Standard1.2         4/7/2006 7:36:40 PM    Jeff Brush
		      renamed version attribute to versionTimestamp for schema versioning
		 2    055_RETS_Standard1.1         4/7/2006 1:37:39 PM    Jeff Brush
		      modified to have schema versioning as datetime, add year month to
		      namespaces, minor corrections
		 1    055_RETS_Standard1.0         4/4/2006 8:06:09 AM    Jeff Brush
		      Updated schemas.  All MLS schemas have extensibility points.  New
		      ObjectReferenceList.xsd
		$
		======================
	-->

	<xs:annotation>
		<xs:documentation>
			Elements related to the Transaction Participants.
		</xs:documentation>
	</xs:annotation>

	<xs:import	namespace="http://rets.org/xsd/RETSCommons/2007-08"
					schemaLocation="../../../xsd/RETSCommons/2007-08/RETSCommons.xsd"/>
	<xs:import	namespace="http://rets.org/xsd/Members/2007-08"
					schemaLocation="../../../xsd/Members/2007-08/Members.xsd"/>
	<xs:import	namespace="http://rets.org/xsd/Teams/2007-08"
					schemaLocation="../../../xsd/Teams/2007-08/Teams.xsd"/>

	<!-- Types -->
	<xs:complexType name="Participant">
		<xs:sequence>
			<xs:element name="ParticipantKey"
							type="commons:resource-key"
							minOccurs="1"
							maxOccurs="1">
				<xs:annotation>
					<xs:documentation>
						This the is the keyfield for the resource.
					</xs:documentation>
					<xs:appinfo>
						<retsid></retsid>
					</xs:appinfo>
				</xs:annotation>				
			</xs:element>
			<xs:choice>
				<xs:element name="Team"
								type="teams:TeamType"
								minOccurs="1"
								maxOccurs="1">
					<xs:annotation>
						<xs:appinfo>
							<retsid></retsid>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element	name="Member"
								type="members:MemberType"
								minOccurs="1"
								maxOccurs="1">
					<xs:annotation>
						<xs:appinfo>
							<retsid></retsid>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="Person"
								type="commons:ContactablePerson"
								minOccurs="1"
								maxOccurs="1">
					<xs:annotation>
						<xs:appinfo>
							<retsid></retsid>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
			</xs:choice>
			<xs:element	name="Role"
							type="commons:ParticipantRoleEnum"
							minOccurs="1"
							maxOccurs="1">
				<xs:annotation>
					<xs:appinfo>
						<retsid></retsid>
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
			<xs:element	name="ModificationTimestamp"
							type="commons:ModificationTimestamp"
							minOccurs="0">
				<xs:annotation>
					<xs:documentation>
						A timestamp for the most recent modification of this
						record.
					</xs:documentation>
					<xs:appinfo>
						<retsid></retsid>
						<example>2007-01-15T11:23:09Z</example>
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
		<xs:attribute	name="systemId"
							use="optional">
			<xs:annotation>
				<xs:documentation>
					An identifier of the system that a participant
					'belongs' to when the event involves more than
					one system.
				</xs:documentation>
				<xs:appinfo>
					<retsid></retsid>
				</xs:appinfo>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>
	<xs:complexType name="ParticipantsType">
		<xs:sequence>
			<xs:element	name="Participant"
							type="part:Participant"
							minOccurs="0"
							maxOccurs="unbounded">
				<xs:annotation>
					<xs:appinfo>
						<retsid></retsid>
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
		<xs:attribute	name="transactionID"
							type="xs:string"
							use="required">
			<xs:annotation>
				<xs:appinfo>
					<retsid></retsid>
				</xs:appinfo>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute	name="versionTimestamp"
							type="xs:dateTime"
							use="required"
							fixed="2007-07-26T21:06:00Z">
			<xs:annotation>
				<xs:appinfo>
					<retsid></retsid>
				</xs:appinfo>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>

	<!-- Elements -->
	<xs:element	name="Participants"
					type="part:ParticipantsType"/>
</xs:schema>
