<?xml version="1.0" encoding="UTF-8"?>
<!-- 
	Mobile Broadcast - User Preferences
		version 	- 1.0
		date    	- 10 April 2007

    FILE INFORMATION

	OMA Permanent Document
	   File: OMA-SUP-XSD_bcast_pr_userpreference-V1_0-20070410-D 
	   Type: Text - Schema Description

	Public Reachable Information
	   Path: http://www.openmobilealliance.org/tech/profiles
	   Name: bcast_pr_userpreference-v1_0.xsd

    NORMATIVE INFORMATION

	Information about this file can be found in the specification
	    OMA-TS-BCAST_Services-V1_0
	available at http://www.openmobilealliance.org/

	Send comments to technical-comments@mail.openmobilealliance.org

    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

	You may use this document or any part of the document for internal
	or educational purposes only, provided you do not modify, edit or
	take out of context the information in this document in any manner.
	Information contained in this document may be used, at your sole
	risk, for any purposes.

	You may not use this document in any other manner without the prior
	written permission of the Open Mobile Alliance.  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 2007 Open Mobile Alliance Ltd.  All Rights Reserved.
	Used with the permission of the Open Mobile Alliance Ltd. under the
	terms set forth above.
-->
<!-- 
	CHANGE HISTORY
	
	20061222 	Schema template created
	20070102	CR OMA-BCAST-2007-0060-CR_Updates_to_UserPreferences_XML_Schema implemented
					This schema is consistent with OMA-TS-BCAST_Services-V1_0-20061229-D
	20070405 	made consistent with OMA-TS-BCAST_Services-V1_0-20070403-D
	20070410 	Version to enter Candidate approval. 
					CR BCAST-2007-0476 implemented to make consistent with OMA-TS-BCAST_Services-V1_0-20070406-D
					after followup consistency review. 
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="urn:oma:xml:bcast:pr:userpreference:1.0" targetNamespace="urn:oma:xml:bcast:pr:userpreference:1.0" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<!-- 
	==============================================
	The end user preferences signalled to the Service Provider 
	==============================================
	-->
	<xs:element name="EndUserPreferences" type="EndUserPreferencesType"/>
	<xs:complexType name="EndUserPreferencesType">
		<xs:sequence>
			<xs:element name="UserID" type="UserIDType"/>
			<xs:element name="Preference" minOccurs="1" maxOccurs="unbounded">
			<!-- 
				The attribute-value pair describing an individual preference. 
				NOTE: the exact attribute for preference shall be defined by service or content provider. 
			-->
			<xs:complexType>
				<xs:attribute name="attribute" type="xs:string" use="required"/>
				<xs:attribute name="value" type="xs:string" use="required"/>
			</xs:complexType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!-- 
		User Identity known to the BSM. 
		It describes the identification of the end user whose preferences are to described here. 
	-->
	<xs:complexType name="UserIDType">
		<xs:simpleContent>
			<xs:extension base="xs:string">
				<xs:attribute name="type" type="UnsignedByteRangeType" use="required"/>
			</xs:extension>
			<!-- 
					Specifies the type of User ID.Allowed values are:
						0 – username defined in [RFC 2865] 
						1 – IMSI
						2 – URI
						3 – IMPI
						4 – MSISDN
						5 – MIN 
						6-127 reserved for future use
						128-255 reserved for proprietary use
			-->
		</xs:simpleContent>
	</xs:complexType>
	<xs:simpleType name="UnsignedByteRangeType">
		<xs:union memberTypes="LowRangeType ReservedProprietaryExtByteRangeType"/>
	</xs:simpleType>
	<xs:simpleType name="ReservedProprietaryExtByteRangeType">
		<xs:restriction base="xs:unsignedByte">
			<xs:minInclusive value="128"/>
			<xs:maxInclusive value="255"/>
		</xs:restriction>
	</xs:simpleType>	
	<xs:simpleType name="LowRangeType">
		<xs:restriction base="xs:unsignedByte">
			<xs:minInclusive value="0"/>
			<xs:maxInclusive value="5"/>
		</xs:restriction>
	</xs:simpleType>
</xs:schema>
