<?xml version="1.0" encoding="UTF-8"?>
<!--
  FILE INFORMATION
  
  Description 
    This schema describes the structure and data types for Mobile Search Framework
	
		version 	- 1.0
		date    	- 31 Jul 2012

	OMA Permanent Document
	   File: OMA-SUP-XSD_MSrch_userinfo-V1_0-20120731-A.xsd
	   Type: Text - Schema Description

	Public Reachable Information
	   Path: http://www.openmobilealliance.org/tech/profiles
	   Name: MSrch_userinfo-v1_0.xsd

NORMATIVE INFORMATION

  Information about this file can be found in the latest revision of

    OMA-TS-MSrchFramework-V1_0-20120731-A

  This is available at http://www.openmobilealliance.org/

  Send comments to technical-comments@mail.openmobilealliance.org

CHANGE HISTORY

10Nov2011 	Incorporated 	agreed CR OMA-CD-MSrchFramework-2011-0004-CR_SUP_Review
							updated with 2011 template (Legal Disclaimer)
01Feb2012	Notification to TP: OMA-TP-2012-0030-INP_MSrchFramework_1_0_ERP_for_notification
31Jul2012	Status changed to Approved by TP:
			TP ref#: OMA-TP-2012-0292-INP_MSrchFramework_V1_0_ERP_for_Final_Approval

LEGAL DISCLAIMER

  Use of this document is subject to all of the terms and conditions
  of the Use Agreement located at
  http://www.openmobilealliance.org/UseAgreement.html,
  provided, however, that section (d) under "Documents - Terms 
  of Use" which states, "no modifications are made to such 
  Documents" does not apply to your use.

  The Open Mobile Alliance authorizes you to copy this document, 
  provided that you retain all copyright and other proprietary  
  notices contained in the original materials on any copies of the 
  materials and  that you comply strictly with these terms. This 
  copyright permission does not constitute an endorsement of the 
  products or services. The Open Mobile Alliance assumes no 
  responsibility for errors or omissions in this document.


  Each Open Mobile Alliance member has agreed to use reasonable
  endeavors to inform the Open Mobile Alliance in a timely manner of
  Essential IPR as it becomes aware that the Essential IPR is related
  to the prepared or published specification.  However, the members
  do not have an obligation to conduct IPR searches.  The declared
  Essential IPR is publicly available to members and non-members of
  the Open Mobile Alliance and may be found on the "OMA IPR
  Declarations" list at http://www.openmobilealliance.org/ipr.html.
  The Open Mobile Alliance has not conducted an independent IPR review
  of this document and the information contained herein, and makes no
  representations or warranties regarding third party IPR, including
  without limitation patents, copyrights or trade secret rights.  This
  document may contain inventions for which you must obtain licenses
  from third parties before making, using or selling the inventions.
  Defined terms above are set forth in the schedule to the Open Mobile
  Alliance Application Form.

  NO REPRESENTATIONS OR WARRANTIES (WHETHER EXPRESS OR IMPLIED) ARE
  MADE BY THE OPEN MOBILE ALLIANCE OR ANY OPEN MOBILE ALLIANCE MEMBER
  OR ITS AFFILIATES REGARDING ANY OF THE IPR'S REPRESENTED ON THE "OMA
  IPR DECLARATIONS" LIST, INCLUDING, BUT NOT LIMITED TO THE ACCURACY,
  COMPLETENESS, VALIDITY OR RELEVANCE OF THE INFORMATION OR WHETHER OR
  NOT SUCH RIGHTS ARE ESSENTIAL OR NON-ESSENTIAL.

  THE OPEN MOBILE ALLIANCE IS NOT LIABLE FOR AND HEREBY DISCLAIMS ANY
  DIRECT, INDIRECT, PUNITIVE, SPECIAL, INCIDENTAL, CONSEQUENTIAL, OR
  EXEMPLARY DAMAGES ARISING OUT OF OR IN CONNECTION WITH THE USE OF
  DOCUMENTS AND THE INFORMATION CONTAINED IN THE DOCUMENTS.

  Copyright 2012 Open Mobile Alliance Ltd.  All Rights Reserved.
  Used with the permission of the Open Mobile Alliance Ltd. under the
  terms set forth above.

-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msf="urn:oma:xml:msrch:messages:1.0" xmlns:userinfo="urn:oma:xml:msrch:userinfo:1.0" targetNamespace="urn:oma:xml:msrch:userinfo:1.0" elementFormDefault="qualified">
	<!--
        =============================
            Referenced Attributes
        =============================
    -->
	<xs:attribute name="Domain-Name" type="xs:string"/>
	<xs:attribute name="Type" type="userinfo:UIMType"/>
	<!--
        =============================
            Referenced Elements
        =============================
    -->
	<xs:element name="Key" type="xs:string"/>
	<xs:element name="Value" type="xs:float"/>
	<xs:element name="userLon" type="xs:float"/>
	<xs:element name="userLat" type="xs:float"/>
	<xs:element name="userIM" type="userinfo:User-imType"/>
	<xs:element name="userGender" type="userinfo:userGenderType"/>
	<xs:element name="maritalStatus" type="userinfo:maritalStatusType"/>
	
	<xs:element name="Dimensions" type="userinfo:DimensionsType"/>
	<!--
        =============================
            Opensearch Extensions
        =============================
    -->
	<xs:element name="userAge" type="xs:integer"/>
	<!--
        =============================
            Referenced Complex Types
        =============================
    -->
	<xs:simpleType name="userGenderType">
		<xs:restriction base="xs:string">
			<!-- Male -->
			<xs:enumeration value="M"/>
			<!-- Female -->
			<xs:enumeration value="F"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="maritalStatusType">
		<xs:restriction base="xs:string">
			<!-- Married -->
			<xs:enumeration value="M"/>
			<!-- Single -->
			<xs:enumeration value="S"/>
			<!-- Divorced -->
			<xs:enumeration value="D"/>
			<!-- Widowed -->
			<xs:enumeration value="W"/>
			<!-- Separated -->
			<xs:enumeration value="P"/>
			<!-- Domestic Partner (has benefits similar to M) -->
			<xs:enumeration value="DP"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:complexType name="DimensionsType">
		<xs:sequence>
			<xs:element ref="userinfo:Key"/>
			<xs:element ref="userinfo:Value"/>
		</xs:sequence>
		<xs:attribute ref="userinfo:Type"/>
	</xs:complexType>
	<xs:complexType name="User-imType">
		<xs:sequence>
			<xs:element ref="userinfo:Dimensions" minOccurs="1" maxOccurs="unbounded"/>
		</xs:sequence>
		<xs:attribute ref="userinfo:Domain-Name" use="optional"/>
	</xs:complexType>
	<xs:simpleType name="UIMType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="SESSION-BASED"/>
			<xs:enumeration value="GENERAL"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:complexType name="ValueType">
		<xs:attribute ref="userinfo:Type" use="optional"/>
	</xs:complexType>
</xs:schema>
