<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns="http://http://www.cablelabs.com/namespaces/PacketCable/R2/XSD/v1/CL-PKTC-PRS" 
  xmlns:CL-PKTC-BASE-SVC="http://www.cablelabs.com/namespaces/PacketCable/R2/XSD/v1/CL-PKTC-BASE-SVC" 
  xmlns:PKTC-ACLS="http://www.cablelabs.com/namespaces/PacketCable/R2/XSD/v1/CL-PKTC-ACL" 
  xmlns:CL-PKTC-TC="http://www.cablelabs.com/namespaces/PacketCable/R2/XSD/v1/CL-PKTC-TC" 
  xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
  targetNamespace="http://www.cablelabs.com/namespaces/PacketCable/R2/XSD/v1/CL-PKTC-PRS" 
  elementFormDefault="qualified" 
  attributeFormDefault="unqualified">
  <xsd:import namespace="http://www.cablelabs.com/namespaces/PacketCable/R2/XSD/v1/CL-PKTC-TC" schemaLocation="http://www.cablelabs.com/namespaces/PacketCable/R2/XSD/v1/CL-PKTC-TC.xsd"/> 
  <xsd:import namespace="http://www.cablelabs.com/namespaces/PacketCable/R2/XSD/v1/CL-PKTC-ACL" schemaLocation="http://www.cablelabs.com/namespaces/PacketCable/R2/XSD/v1/CL-PKTC-ACL.xsd"/>
  <xsd:import namespace="http://www.cablelabs.com/namespaces/PacketCable/R2/XSD/v1/CL-PKTC-BASE-SVC" schemaLocation="http://www.cablelabs.com/namespaces/PacketCable/R2/XSD/v1/CL-PKTC-BASE-SVC.xsd"/> 
  <xsd:annotation>
    <xsd:documentation>
      The data elements in this schema represent the information required by
      PacketCable UEs in order to support the Presence feature.

      Reference: [OMA TS-PRS] Presence SIMPLE Specification (OMA TS), Version 1.0.1, Open Mobile Alliance.
      Reference: [OMA PRES-MO] OMA Management Object for SIMPLE Presence (OMA TS), Version 1.0.1, Open Mobile Alliance.
      Reference: [OMA XDM-CORE] XML Document Management (XDM) Specification, Version 1.0.1, Open Mobile Alliance.
    </xsd:documentation>
  </xsd:annotation>
  <xsd:element name="CL-PKTC-PRS">
    <xsd:annotation>
      <xsd:appinfo>
        <PKTC-ACLS:access-control>NetworkWritable</PKTC-ACLS:access-control>
      </xsd:appinfo>
    </xsd:annotation>
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element ref="PKTC-ACLS:aggregated-acls" minOccurs="0"/>
	<xsd:element name="pktcPRSObjects" type="pktcPRSObjectsType" minOccurs="0"/>
	<xsd:element name="pktcPRSProfile" type="pktcPRSProfileType" minOccurs="1" />
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>
  <xsd:complexType name="pktcPRSProfileType" mixed="false">
    <xsd:complexContent mixed="false">
      <xsd:extension base="CL-PKTC-BASE-SVC:pktcPACMSvcFeature">
        <xsd:sequence>
          <xsd:element name="pktcPRSApplicationDisplayName" type="xsd:string" minOccurs="0">
            <xsd:annotation>
              <xsd:documentation>
	        The pktcPRSApplicationName element provides a user
	        displayable name for the Presence Service.
  
  	        This corresponds to the Name MO found in [OMA PRES-MO].
  
	        Reference: [OMA PRES-MO]
	      </xsd:documentation>
	    </xsd:annotation>
          </xsd:element>
          <xsd:element name="pktcPRSProviderID" type="xsd:string" minOccurs="0">
	    <xsd:annotation>
	      <xsd:documentation>
	        The pktcPRSProviderID element identifies the Presence Service
		Provider.

		Reference: [OMA PRES-MO]
	      </xsd:documentation>
	    </xsd:annotation>
          </xsd:element>
          <xsd:element name="pktcPRSClientObjDataLimit" type="xsd:positiveInteger" minOccurs="1">
	    <xsd:annotation>
  	      <xsd:documentation>
	        If the Presence Source decides to use direct content handling
	        as described in [OMA TS-PRS] then pktcPRSClientObjDataLimit SHALL
		be used for determining the size limit for MIME data direct 
		content in a PUBLISH.

		Reference: [OMA TS-PRS]
	      </xsd:documentation>
	    </xsd:annotation>
          </xsd:element>
          <xsd:element name="pktcPRSContentServerURI" type="xsd:string" minOccurs="0">
	    <xsd:annotation>
	      <xsd:documentation>
	        If the Presence Source decides to use content indirection
		as described in [OMA TS-PRS] then pktcPRSContentServerURI 
		SHALL be used as the URI for the Content Server.

		Reference: [OMA TS-PRS]
	      </xsd:documentation>
	    </xsd:annotation>
          </xsd:element>
          <xsd:element name="pktcPRSSourceThrottlePublish" type="xsd:positiveInteger" minOccurs="0">
	    <xsd:annotation>
	      <xsd:documentation>
	        The pktcPRSSourceThrottlePublish element defines the rate
	        that a Presence Source may generate PUBLISH requests.

		Reference: [OMA TS-PRS]
	      </xsd:documentation>
	    </xsd:annotation>
          </xsd:element>
          <xsd:element name="pktcPRSMaxNumberOfPresenceSubscriptions" type="xsd:positiveInteger" minOccurs="0">
	    <xsd:annotation>
	      <xsd:documentation>
	         The pktcPRSMaxNumberOfPresenceSubscriptions element defines
		 the maximum number of subscriptions to the presence event 
		 package that a watcher may have.

		 Reference: [OMA TS-PRS]
	      </xsd:documentation>
	     </xsd:annotation>
           </xsd:element>
           <xsd:element name="pktcPRSMaxNumberOfSubscriptionsInPresenceList" type="xsd:positiveInteger" minOccurs="0">
	     <xsd:annotation>
	       <xsd:documentation>
	         The pktcPRSMaxNumberOfSubscriptionsInPresenceList element
		 defines the total maximum number of back-end subscriptions 
		 allowed for presencelists for a watcher.

		 Reference: [OMA TS-PRS]
	       </xsd:documentation>
	     </xsd:annotation>
           </xsd:element>
           <xsd:element name="pktcPRSServiceURITemplate" type="xsd:string" minOccurs="0">
	     <xsd:annotation>
	       <xsd:documentation>
	         The pktcPRSServiceURITemplate element defines the syntax
		 of the service URI. The Service URI Template SHALL be a 
		 URI Template as specified in [OMA XDM-CORE].

		 Reference: [OMA PRES-MO]
		 Reference: [OMA XDM-CORE]
	       </xsd:documentation>
	     </xsd:annotation>
           </xsd:element>
           <xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
         </xsd:sequence>
       </xsd:extension>
    </xsd:complexContent>
  </xsd:complexType>
  <xsd:complexType name="pktcPRSObjectsType">
    <xsd:complexContent>
      <xsd:extension base="CL-PKTC-BASE-SVC:pktcPACMSvcFeature">
	<xsd:sequence>
	  <xsd:element name="pktcPACMPRSMinorVersion" type="xsd:int" default="0" minOccurs="1">
	    <xsd:annotation>
	      <xsd:documentation>The default value of this Object contains the minor version of the data model.</xsd:documentation>
	    </xsd:annotation>
	  </xsd:element>
	  <xsd:element name="eXTOBJpktcPRSObjects" type="CL-PKTC-TC:PktcPACMExtension" minOccurs="0">
	    <xsd:annotation>
	      <xsd:documentation>
		Extension object for 'pktcPRSObjects'.
	      </xsd:documentation>
	    </xsd:annotation>
	  </xsd:element>
	  <xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
	</xsd:sequence>
      </xsd:extension>
    </xsd:complexContent>
  </xsd:complexType>
</xsd:schema>

