<?xml version="1.0" encoding="UTF-8"?>

<!-- 
- PIDF OMA Extensions
	   version - 1.0.1
	   date    - 17 Nov 2006

   FILE INFORMATION

Permanent Document
	  File: OMA-SUP-XSD_prs_pidf_omapres-V1_0_1-20061128-A
	  Type: Text - Schema Description

Reachable Information
	  Path: http://www.openmobilealliance.org/tech/profiles
	  Name: prs_pidf_omapres-v1_0.xsd

   NORMATIVE INFORMATION

about this file can be found in the specification
	   OMA-TS-Presence_SIMPLE-V1_0_1 
at http://www.openmobilealliance.org/

comments to technical-comments@mail.openmobilealliance.org

   LEGAL DISCLAIMER

of this document is subject to all of the terms and conditions
the Use Agreement located at
	://www.openmobilealliance.org/UseAgreement.html

may use this document or any part of the document for internal
educational purposes only, provided you do not modify, edit or
out of context the information in this document in any manner.
contained in this document may be used, at your sole
, for any purposes.

may not use this document in any other manner without the prior
permission of the Open Mobile Alliance.  The Open Mobile
authorizes you to copy this document, provided that you
all copyright and other proprietary notices contained in the
materials on any copies of the materials and that you
strictly with these terms.  This copyright permission does
constitute an endorsement of the products or services.  The
Mobile Alliance assumes no responsibility for errors or
in this document.

Open Mobile Alliance member has agreed to use reasonable
to inform the Open Mobile Alliance in a timely manner of
IPR as it becomes aware that the Essential IPR is related
the prepared or published specification.  However, the members
not have an obligation to conduct IPR searches.  The declared
IPR is publicly available to members and non-members of
Open Mobile Alliance and may be found on the "OMA IPR
" list at http://www.openmobilealliance.org/ipr.html.
Open Mobile Alliance has not conducted an independent IPR review
this document and the information contained herein, and makes no
or warranties regarding third party IPR, including
limitation patents, copyrights or trade secret rights.  This
may contain inventions for which you must obtain licenses
third parties before making, using or selling the inventions.
terms above are set forth in the schedule to the Open Mobile
Application Form.

REPRESENTATIONS OR WARRANTIES (WHETHER EXPRESS OR IMPLIED) ARE
BY THE OPEN MOBILE ALLIANCE OR ANY OPEN MOBILE ALLIANCE MEMBER
ITS AFFILIATES REGARDING ANY OF THE IPR'S REPRESENTED ON THE "OMA
DECLARATIONS" LIST, INCLUDING, BUT NOT LIMITED TO THE ACCURACY,
, VALIDITY OR RELEVANCE OF THE INFORMATION OR WHETHER OR
SUCH RIGHTS ARE ESSENTIAL OR NON-ESSENTIAL.

OPEN MOBILE ALLIANCE IS NOT LIABLE FOR AND HEREBY DISCLAIMS ANY
, INDIRECT, PUNITIVE, SPECIAL, INCIDENTAL, CONSEQUENTIAL, OR
DAMAGES ARISING OUT OF OR IN CONNECTION WITH THE USE OF
AND THE INFORMATION CONTAINED IN THE DOCUMENTS.

2006 Open Mobile Alliance Ltd.  All Rights Reserved.
with the permission of the Open Mobile Alliance Ltd. under the
set forth above.
-->
<xs:schema targetNamespace="urn:oma:xml:prs:pidf:oma-pres" 
                  xmlns="urn:oma:xml:prs:pidf:oma-pres"
                  xmlns:xs="http://www.w3.org/2001/XMLSchema"
                  elementFormDefault="qualified"
                  attributeFormDefault="unqualified">

  <!-- 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"/>

  <xs:annotation>
     <xs:documentation xml:lang="en">
        XML Schema definition for OMA extensions to PIDF and Presence Data Model
     </xs:documentation>
  </xs:annotation>


  <!-- Global Type definitions -->
  <xs:simpleType name="basicType">
     <xs:restriction base="xs:string">
        <xs:enumeration value="open"/>
        <xs:enumeration value="closed"/>
     </xs:restriction>
  </xs:simpleType>

  <xs:complexType name="emptyType"/>

  <xs:simpleType name="registrationType">
     <xs:restriction base="xs:string">
        <xs:enumeration value="active"/>
        <xs:enumeration value="terminated"/>
     </xs:restriction>
  </xs:simpleType>

  <xs:simpleType name="barringType">
     <xs:restriction base="xs:string">
        <xs:enumeration value="active"/>
        <xs:enumeration value="terminated"/>
     </xs:restriction>
   </xs:simpleType>


  <!-- OMA extensions to PIDF tuple element -->
  <xs:element name="service-description">
     <xs:complexType>
        <xs:sequence>
           <xs:element name="service-id" type="xs:token"/>
           <xs:element name="version" type="xs:token"/>
           <xs:element name="description" type="xs:token" minOccurs="0"/>
           <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> 
        </xs:sequence>
        <xs:anyAttribute namespace="##other" processContents="lax"/>
     </xs:complexType>
  </xs:element>

  <xs:element name="willingness">
     <xs:complexType>
        <xs:sequence>
           <xs:element name="basic" type="basicType" minOccurs="0"/>
           <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
        <xs:anyAttribute namespace="##other" processContents="lax"/>
     </xs:complexType>
  </xs:element>

  <xs:element name="session-participation">
     <xs:complexType>
        <xs:sequence>
           <xs:element name="basic" type="basicType" minOccurs="0"/>
           <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
     <xs:anyAttribute namespace="##other" processContents="lax"/>
     </xs:complexType>
  </xs:element>

  <xs:element name="registration-state">
     <xs:complexType>
        <xs:simpleContent>
           <xs:extension base="registrationType">
              <xs:anyAttribute namespace="##other" processContents="lax"/>
           </xs:extension>
        </xs:simpleContent>
     </xs:complexType>
  </xs:element>      

  <xs:element name="barring-state">
     <xs:complexType>
        <xs:simpleContent>
           <xs:extension base="barringType">
              <xs:anyAttribute namespace="##other" processContents="lax"/>
           </xs:extension>
        </xs:simpleContent>
     </xs:complexType>
  </xs:element>


  <!-- OMA extensions to PDM person element -->
  <xs:element name="overriding-willingness">
     <xs:complexType>
        <xs:sequence>
           <xs:element name="basic" type="basicType" minOccurs="0"/>
           <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
        <xs:anyAttribute namespace="##other" processContents="lax"/>
     </xs:complexType>
  </xs:element>


  <!-- OMA extensions to PDM device element -->

  <xs:element name="network-availability">
     <xs:complexType>
        <xs:sequence>

           <xs:element name="network" maxOccurs="unbounded">
              <xs:complexType>
                 <xs:sequence>
                    <xs:element name="active" type="emptyType" minOccurs="0"/>
                    <xs:element name="terminated" type="emptyType" minOccurs="0"/>
                    <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
                 </xs:sequence>
                 <xs:attribute name="id" type="xs:token" use="required"/>
                 <xs:anyAttribute namespace="##other" processContents="lax"/>
              </xs:complexType>
           </xs:element>

           <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
        <xs:anyAttribute namespace="##other" processContents="lax"/>
     </xs:complexType>
  </xs:element>

</xs:schema>

