<?xml version="1.0" encoding="UTF-8"?>
<!--
FILE INFORMATION

Description
   This schema is a copy of IETF schema for geolocation policy (http://tools.ietf.org/id/draft-ietf-geopriv-policy-17.txt). It is created 
   as an interim measure until corresponding schema is published by IANA.

Version: 1.0  
Date:    03 Aug 2009

OMA Permanent Document
   File: OMA-SUP-XSD_locsip_geolocation_policy-V1_0-20100803-C
   Type: Text

Public Reachable Information
   Path: http://www.openmobilealliance.org/tech/profiles
   Name: locsip_geolocation_policy_v1_0.xsd

NORMATIVE INFORMATION

Information about this file can be found in the latest revision of the specification
OMA-TS-LOCSIP-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 2010 Open Mobile Alliance Ltd.  All Rights Reserved.
Used with the permission of the Open Mobile Alliance Ltd. under the
terms set forth above.
-->

<!--
The copyright statement included in draft-ietf-geopriv-policy-17.txt

 Copyright (C) The IETF Trust (2008).

   This document is subject to the rights, licenses and restrictions
   contained in BCP 78, and except as set forth therein, the authors
   retain all their rights.

   This document and the information contained herein are provided on an
   "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
   OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY, THE IETF TRUST AND
   THE INTERNET ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS
   OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF
   THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
   WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
-->
<xs:schema targetNamespace="urn:ietf:params:xml:ns:geolocation-policy" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gp="urn:ietf:params:xml:ns:geolocation-policy" elementFormDefault="qualified" attributeFormDefault="unqualified">
	
	<!-- Import Common Policy-->
     	<xs:import namespace="urn:ietf:params:xml:ns:common-policy" schemaLocation="http://www.iana.org/assignments/xml-registry/schema/common-policy.xsd"/>	
	
	<!-- This import brings in the XML language attribute xml:lang-->
	<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/>
	<!-- Geopriv Conditions -->
	<xs:element name="location-condition" type="gp:locationconditionType"/>
	<xs:complexType name="locationconditionType">
		<xs:complexContent>
			<xs:restriction base="xs:anyType">
				<xs:choice maxOccurs="unbounded">
					<xs:element name="location" type="gp:locationType" maxOccurs="unbounded"/>
					<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
				</xs:choice>
			</xs:restriction>
		</xs:complexContent>
	</xs:complexType>
	<xs:complexType name="locationType">
		<xs:complexContent>
			<xs:restriction base="xs:anyType">
				<xs:choice maxOccurs="unbounded">
					<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
				</xs:choice>
				<xs:attribute name="profile" type="xs:string"/>
				<xs:attribute name="label" type="xs:string"/>
				<xs:attribute ref="xml:lang"/>
			</xs:restriction>
		</xs:complexContent>
	</xs:complexType>
	
	<!-- Geopriv transformations -->
	<xs:element name="set-retransmission-allowed" type="xs:boolean" default="false"/>
	<xs:element name="set-retention-expiry" type="xs:integer" default="0"/>
	<xs:element name="set-note-well" type="gp:notewellType"/>
	<xs:element name="keep-rule-reference" type="xs:boolean" default="false"/>
	<xs:element name="provide-location" type="gp:providelocationType"/>
	<xs:complexType name="notewellType">
		<xs:simpleContent>
			<xs:extension base="xs:string">
				<xs:attribute ref="xml:lang"/>
			</xs:extension>
		</xs:simpleContent>
	</xs:complexType>
	<xs:complexType name="providelocationType">
		<xs:complexContent>
			<xs:restriction base="xs:anyType">
				<xs:choice minOccurs="0" maxOccurs="unbounded">
					<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
				</xs:choice>
				<xs:attribute name="profile" type="xs:string"/>
			</xs:restriction>
		</xs:complexContent>
	</xs:complexType>
</xs:schema>
