<?xml version="1.0" encoding="US-ASCII"?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [
<!ENTITY nbsp '&#160;'>
<!ENTITY nbhy "&#8209;">
]>

<?rfc rfcedstyle="yes" ?>
<?rfc subcompact="no" ?>
<?rfc toc="yes"?>
<?rfc tocdepth="5"?>

<rfc number="4826" category="std">

    <front>
        <title abbrev="XML Resource Lists">
Extensible Markup Language (XML) Formats for &nbsp;Representing&nbsp;Resource&nbsp;Lists</title>
    
        <author initials="J.R." surname="Rosenberg"
                fullname="Jonathan Rosenberg">
            <organization>Cisco</organization>
    
            <address>
                <postal>
                    <city>Edison</city> <region>NJ</region>
                    <country>US</country>
                </postal>
    
                <email>jdrosen@cisco.com</email>
                <uri>http://www.jdrosen.net</uri>
            </address>
        </author>
    
        <date month="May" year="2007" />
    
        <area>Applications</area>
        <workgroup>SIMPLE</workgroup>

        <keyword>presence</keyword>
        <keyword>buddy list</keyword>
	<keyword>SIMPLE</keyword>
	<keyword>XCAP</keyword>
	<keyword>XML</keyword>
	<keyword>presence list</keyword>
	<keyword>SIP</keyword>
	<keyword>IM</keyword>
	<keyword>instant messaging</keyword>
	
        <abstract>
            <t> In multimedia communications, presence, and instant
            messaging systems, there is a need to define Uniform
            Resource Identifiers (URIs) that represent services that
            are associated with a group of users. One example is a
            resource list service. If a user sends a Session
            Initiation Protocol (SIP) SUBSCRIBE message to the URI
            representing the resource list service, the server will
            obtain the state of the users in the associated group, and
            provide it to the sender. To facilitate definition of
            these services, this specification defines two Extensible
            Markup Language (XML) documents. One document contains
            service URIs, along with their service definition and a
            reference to the associated group of users. The second
            document contains the user lists that are referenced from
            the first. This list of users can be utilized by other
            applications and services. Both documents can be created
            and managed with the XML Configuration Access Protocol
            (XCAP).  </t>

        </abstract>
    </front>

<middle>

<section title="Introduction">

<t>
The Session Initiation Protocol (SIP) <xref target="RFC3261"/> defines
the SIP Uniform Resource Identifier (URI) as any resource to which a
SIP request can be generated for the purposes of establishing some
form of communications operation. These URIs can represent users (for
example, sip:joe@example.com). The SIP URI can also represent a
service, such as voicemail, conferencing, or a presence list. A common
pattern across such SIP services is that the service is defined, and
associated with a URI. In order to operate, that service needs to make
use of a list of users (or, more generally, a list of resources). When
a SIP request is sent to the service URI, the server providing the
service reads that list, and then performs some kind of operation
against each resource on the list. This is shown in <xref
target="fig:model"/>.
</t>

<figure anchor="fig:model"><artwork>
<![CDATA[                                                                          
                                 /---\                                    
                                |     |                                   
                                 \---/ Resource                           
                           +----|     |  List                             
                           |    |     |                                   
                           |     \---/                                    
                           |                                              
                           |                                              
                           |                                              
                           |                                              
                           V                                              
                    +-------------+                                       
                    |             | -------->                             
                    |    SIP      |                                       
   ---------------> |  Service    | -------->                             
            service |             |                                       
            URI     |             | -------->                             
                    +-------------+                                       
]]></artwork></figure>
                                                                          
<t>
One important example of such a service is a presence <xref
target="RFC3856"/> list service. A presence list service allows a
client to generate a SIP SUBSCRIBE
request to ask for presence information for a list of users. The
presence list server obtains the presence for the users on the list
and provides them back to the client. A presence list server is a
specific case of a resource list server (RLS) <xref
target="RFC4662"/>, which allows a client to
generate a SIP SUBSCRIBE request to ask for notifications of SIP events 
for a list of resources.
</t>

<?rfc needLines="5" ?>
<t>
Another example of such a service is an instant conference service. If
a client sends a SIP INVITE request to the URI representing the instance
conference service, the conference server will create a conference
call containing the client and the associated group of users.
</t>

<t>
It is very useful for a user of these systems to define the groups of
users or resources (generally called a resource list) separately from
the services that access those resource lists. Indeed, there are
usages for resource lists even in the absence of any associated
network-based service. As an example, rather than use a presence
list service, a client might generate individual SUBSCRIBE requests to
obtain the presence of each user in a locally stored presence list. In
such a case, there is a need for a format for storing the list locally
on disk. Furthermore, the user might wish to share the list with
friends, and desire to email it to those friends. This also requires a
standardized format for the resource list.
</t>

<t>As such, this document
defines two Extensible Markup Language (XML) document formats. The
first is used to represent resource lists, independent of any
particular service. The second is used to define service URIs for an
RLS, and to associate a resource list with the service URI. This
document also defines an XML Configuration Access Protocol (XCAP)
<xref target="RFC4825"/> application usage for managing
each of these two documents. 
</t>

</section>

<section title="Terminology">

<t>In this document, the key words "MUST", "MUST NOT",
"REQUIRED", "SHALL", "SHALL NOT", "SHOULD",
"SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL"
are to be interpreted as described in <xref target="RFC2119">RFC
2119</xref> and indicate requirement levels for compliant
implementations.</t>

</section>

<section title="Resource Lists Documents">

<section anchor="sec:struc-rl" title="Structure">

<t>
A resource lists document is an <xref
target="W3C.REC-xml-20001006">XML</xref> document that MUST be
well-formed and MUST be valid according to schemas, including
extension schemas, available to the validater and applicable to the
XML document. Resource lists documents MUST be based on XML 1.0 and
MUST be encoded using UTF-8. This specification makes use of XML
namespaces for identifying resource lists documents and document
fragments. The namespace URI for elements defined by this
specification is a <xref target="RFC2141">URN</xref> that uses the
namespace identifier 'ietf' defined by <xref target="RFC2648">RFC
2648</xref> and extended by <xref target="RFC3688">RFC
3688</xref>. This URN is:
</t>

<list style="hanging"><t>
urn:ietf:params:xml:ns:resource-lists
</t></list>

<t>
A resource lists document has the &lt;resource-lists&gt; element as
the root element of the document. This element has no attributes. Its
content is a sequence of zero or more &lt;list&gt; elements, each of
which defines a single resource list. </t>

<t>Each &lt;list&gt; element can contain an optional "name"
attribute. This attribute is a handle for the list. When present, it
MUST be unique amongst all other &lt;list&gt; elements within the same
parent element. The &lt;list&gt; element may also contain attributes
from other namespaces, for the purposes of extensibility.
</t>

<t>
Each &lt;list&gt; element is composed of an optional display name, a
sequence of zero or more elements, each of which may be an
&lt;entry&gt; element, a &lt;list&gt; element, an &lt;entry-ref&gt;
element, or an &lt;external&gt; element, followed by any number of
elements from other namespaces, for the purposes of extensibility.
The ability of a &lt;list&gt; element to contain other &lt;list&gt;
elements means that a resource list can be hierarchically
structured. The &lt;display-name&gt; then allows for a human-friendly
name to be associated with each level in the hierarchy. An
&lt;entry&gt; element describes a single resource, defined by a URI,
that is part of the list. An &lt;entry-ref&gt; element allows an entry
in a document within the same XCAP root to be included by reference,
rather than by value. An &lt;external&gt; element contains a reference
to a list stored on this or another server.
</t>

<t>
The &lt;entry&gt; element describes a single resource. The
&lt;entry&gt; element has a single mandatory attribute, "uri". This
attribute is equal to the URI that is used to access the resource. The
resource list format itself does not constrain the type of URI that
can be used. However, the service making use of the resource list may
require specific URI schemes. For example, RLS services will require
URIs that represent subscribeable resources. This includes the SIP and
<xref target="RFC3859">pres</xref> URIs. The "uri"
attribute MUST be unique amongst all other "uri" attributes in
&lt;entry&gt; elements within the same parent. Uniqueness is
determined by case-sensitive string comparisons. As such, it is
possible that two "uri" attributes 
will have the same URI when compared using the functional equality
rules defined for that URI scheme, but different ones when compared
using case sensitive string comparison. The &lt;entry&gt; element can
also contain attributes from other namespaces for the purposes of
extensibility.
</t>

<t>
The &lt;entry&gt; element contains a sequence of elements that provide
information about the entry. Only one such element is defined at this
time, which is &lt;display-name&gt;. This element provides a
UTF-8-encoded string, meant for consumption by a human user, that describes
the resource. Unlike the "name" attribute of the &lt;entry&gt;
element, the &lt;display-name&gt; has no uniqueness requirements. The
&lt;display-name&gt; element can contain the "xml:lang" attribute,
which provides the language of the display name. The &lt;entry&gt;
element can contain other elements from other namespaces. This is
meant to support the inclusion of other information about the entry,
such as a phone number or postal address.
</t>

<t>The &lt;entry-ref&gt; element allows an entry to be included in the
list by reference, rather than by value. This element is only
meaningful when the document was obtained through XCAP. In such a
case, the referenced entry has to exist within the same XCAP root. The
&lt;entry&gt; element has a single mandatory attribute, "ref". The "ref"
attribute MUST be unique amongst all other "ref" attributes in
&lt;entry-ref&gt; elements within the same parent. Uniqueness is
determined by case sensitive string comparisons. The &lt;entry-ref&gt;
element also allows attributes from other namespaces, for the purposes
of extensibility. The content of an &lt;entry-ref&gt; element is an
optional display name, followed by any number of elements from other
namespaces, for the purposes of extensibility. The display name is
useful for providing a localized nickname as an alternative to the
name defined in the &lt;entry&gt; to which the &lt;entry-ref&gt;
refers.
</t>

<t>
The content of the "ref" attribute is a relative HTTP
URI <xref target="RFC3986"/>. Specifically, it MUST be a relative path
reference, where the base URI is equal to the XCAP root URI of the
document in which the &lt;entry-ref&gt; appears. This relative URI, if resolved into an absolute
URI according to the procedures in RFC 3986, MUST resolve to an
&lt;entry&gt; element within a resource-lists document.  For example,
  suppose that an &lt;entry&gt; element within a specific XCAP root
  was identified by the following HTTP URI:
</t>

<figure><artwork>
<![CDATA[http://xcap.example.com/resource-lists/users/sip:bill@example.com/
index/~~/resource-lists/list%5b@name=%22list1%22%5d/
entry%5b@uri=%22sip:petri@example.com%22%5d
]]></artwork></figure>

<t>
If http://xcap.example.com is the XCAP root URI, then an
&lt;entry-ref&gt; element pointing to this entry would have the following form:
</t>

<figure><artwork>
<![CDATA[<entry-ref ref="resource-lists/users/sip:bill@example.com/
index/~~/resource-lists/list%5b@name=%22list1%22%5d/
entry%5b@uri=%22sip:petri@example.com%22%5d"/>
]]></artwork></figure>

<t>Note that line folding within the HTTP URI and XML attribute above are
for the purposes of readability only. Also note that, as described in RFC
3986, the relative path URI does not begin with the "/". Since the
relative URI used within the "ref" attribute must be a
relative path URI, the "/" will never be present as the first
character within the content of a "ref" attribute. Since the
content of the "ref" attribute is a valid HTTP URI, it must
be percent-encoded within the XML document.
</t>

<t>The &lt;external&gt; element is similar to the &lt;entry-ref&gt;
element. Like &lt;entry-ref&gt;, it is only meaningful in documents
obtained from an XCAP server. It too is a reference to content stored
elsewhere. However, it refers to an entire list, and furthermore, it
allows that list to be present on another server. The &lt;external&gt;
element has a single mandatory attribute, "anchor", which specifies
the external list by means of an absolute HTTP URI. The "anchor"
attribute MUST be unique amongst all other "anchor" attributes in
&lt;external&gt; elements within the same parent. Uniqueness is
determined by case-sensitive string comparisons. The &lt;external&gt;
element can also contain attributes from other namespaces, for the
purposes of extensibility. The content of an &lt;external&gt; element
is an optional &lt;display-name&gt; followed by any number of elements
from another namespace, for the purposes of extensibility. The value
of the "anchor" attribute MUST be an absolute HTTP URI. This URI MUST
identify an XCAP resource, and in particular, it MUST represent a
&lt;list&gt; element within a resource lists document. The URI MUST be
percent-encoded.</t>


<t>
For both the &lt;entry-ref&gt; and &lt;external&gt; elements, the
responsibility of resolving their references falls upon the entity
that is making use of the document. When the document is used in
conjunction with 
XCAP, this means that the burden falls on the XCAP client. If the XCAP
client is a PC-based application using the resource-lists document as
a presence list, the references would likely be resolved upon explicit
request by the user. They can, of course, be resolved at any time. If
the XCAP client is an RLS itself, the references would be resolved
when the RLS receives a SUBSCRIBE request for an RLS service
associated with a resource list that contains one of these references
(see below). An XCAP server defined by this specification will not
attempt to resolve the references before returning the document to the
client. Similarly, if, due to network errors or some other problem,
the references cannot be resolved, the handling is specific to the
usage of the document. For resource lists being used by RLS services,
the handling is discussed below.
</t>

</section>

<section anchor="sec:rl-schema" title="Schema">

<figure><artwork>
<![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="urn:ietf:params:xml:ns:resource-lists"
 xmlns:xs="http://www.w3.org/2001/XMLSchema"
 xmlns="urn:ietf:params:xml:ns:resource-lists"
 elementFormDefault="qualified" attributeFormDefault="unqualified">
 <xs:complexType name="listType">
  <xs:sequence>
   <xs:element name="display-name" type="display-nameType" 
    minOccurs="0"/>
   <xs:sequence minOccurs="0" maxOccurs="unbounded">
    <xs:choice>
     <xs:element name="list">
      <xs:complexType>
       <xs:complexContent>
        <xs:extension base="listType"/>
       </xs:complexContent>
      </xs:complexType>
     </xs:element>
     <xs:element name="external" type="externalType"/>
     <xs:element name="entry" type="entryType"/>
     <xs:element name="entry-ref" type="entry-refType"/>
    </xs:choice>
   </xs:sequence>
   <xs:any namespace="##other" processContents="lax" minOccurs="0" 
    maxOccurs="unbounded"/>
  </xs:sequence>
  <xs:attribute name="name" type="xs:string" use="optional"/>
  <xs:anyAttribute namespace="##other"/>
 </xs:complexType>
 <xs:complexType name="entryType">
  <xs:sequence>
   <xs:element name="display-name" minOccurs="0">
    <xs:complexType>
     <xs:simpleContent>
      <xs:extension base="display-nameType"/>
     </xs:simpleContent>
    </xs:complexType>
   </xs:element>
   <xs:any namespace="##other" processContents="lax" minOccurs="0" 
    maxOccurs="unbounded"/>
  </xs:sequence>
  <xs:attribute name="uri" type="xs:anyURI" use="required"/>
  <xs:anyAttribute namespace="##other"/>
 </xs:complexType>
 <xs:complexType name="entry-refType">
  <xs:sequence>
   <xs:element name="display-name" type="display-nameType" 
    minOccurs="0"/>
   <xs:any namespace="##other" processContents="lax" minOccurs="0" 
    maxOccurs="unbounded"/>
  </xs:sequence>
  <xs:attribute name="ref" type="xs:anyURI" use="required"/>
  <xs:anyAttribute namespace="##other"/>
 </xs:complexType>
 <xs:complexType name="externalType">
  <xs:sequence>
   <xs:element name="display-name" type="display-nameType" 
    minOccurs="0"/>
   <xs:any namespace="##other" processContents="lax" minOccurs="0" 
    maxOccurs="unbounded"/>
  </xs:sequence>
  <xs:attribute name="anchor" type="xs:anyURI"/>
  <xs:anyAttribute namespace="##other"/>
 </xs:complexType>
 <xs:element name="resource-lists">
  <xs:complexType>
   <xs:sequence minOccurs="0" maxOccurs="unbounded">
    <xs:element name="list" type="listType"/>
   </xs:sequence>
  </xs:complexType>
 </xs:element>
 <xs:complexType name="display-nameType">
  <xs:simpleContent>
   <xs:extension base="xs:string">
    <xs:attribute ref="xml:lang"/>
   </xs:extension>
  </xs:simpleContent>
 </xs:complexType>
</xs:schema>
]]></artwork></figure>

</section>

<?rfc needLines="10" ?>
<section title="Example Document">

<t>The following is an example of a document compliant to the
schema. All line feeds within element content are for display purposes only.
</t>

<figure><artwork>
<![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<resource-lists xmlns="urn:ietf:params:xml:ns:resource-lists"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <list name="friends">
  <entry uri="sip:bill@example.com">
   <display-name>Bill Doe</display-name>
  </entry>
  <entry-ref ref="resource-lists/users/sip:bill@example.com/index/~~/
   resource-lists/list%5b@name=%22list1%22%5d/entry%5b@uri=%22sip:pet
   ri@example.com%22%5d"/>
  <list name="close-friends">
   <display-name>Close Friends</display-name>
   <entry uri="sip:joe@example.com">
    <display-name>Joe Smith</display-name>
   </entry>
   <entry uri="sip:nancy@example.com">
    <display-name>Nancy Gross</display-name>
   </entry>
   <external anchor="http://xcap.example.org/resource-lists/users/
    sip:a@example.org/index/~~/resource-lists/list%5b@name=%22mkti
    ng%22%5d">
     <display-name>Marketing</display-name>
    </external> 
  </list>
 </list>
</resource-lists>
]]></artwork></figure>

</section>

<section title="Usage with XCAP">

<t>
Resource lists documents can be manipulated with XCAP. This section
provides the details necessary for such a usage.
</t>

<section title="Application Unique ID">

<t>
XCAP requires application usages to define an application unique
ID (AUID) in either the IETF tree or a vendor tree. This specification
defines the "resource-lists" AUID within the IETF tree, via the IANA
registration in <xref target="sec:iana"/>.
</t>

</section>

<section title="MIME Type">

<t>
The MIME type for this document is "application/resource-lists+xml".
</t>

</section>

<section title="XML Schema">

<t>The XML Schema for this document is defined as the sole content of
<xref target="sec:rl-schema"/>.
</t>

</section>

<section title="Default Namespace">

<t>
The default namespace used in expanding URIs is
urn:ietf:params:xml:ns:resource-lists.
</t>

</section>

<section title="Additional Constraints">

<t>In addition to the schema, there are constraints on the values
present in the "name" attribute of the &lt;list&gt; element, the
"uri" attribute of the &lt;external&gt; element, the "ref" attribute
of the &lt;entry-ref&gt; element, and the "anchor" attribute of the
&lt;external&gt; element. These constraints are defined in <xref
target="sec:struc-rl"/>. Some of these constraints are enforced by the
XCAP server. Those constraints are:
</t>

<list style="symbols">

<t>The "name" attribute in a &lt;list&gt; element MUST be unique
amongst all other "name" attributes of &lt;list&gt; elements within
the same parent element. Uniqueness is determined by case-sensitive
string comparison.</t>

<t>The "uri" attribute in a &lt;entry&gt; element MUST be unique
amongst all other "uri" attributes of &lt;entry&gt; elements within
the same parent element. Uniqueness is determined by case-sensitive
string comparison.</t>

<t>The URI in the "ref" attribute of the &lt;entry-ref&gt; element
MUST be unique amongst all other "ref" attributes of &lt;entry-ref&gt;
elements within the same parent element. Uniqueness is determined by
case-sensitive string comparison. The value of the attribute MUST be a
relative path reference. Note that the server is not responsible for
verifying that the reference resolves to an &lt;entry&gt; element in a
document within the same XCAP root.</t>

<t>The URI in the "anchor" attribute of the &lt;external&gt; element
MUST be unique amongst all other "anchor" attributes of
&lt;external&gt; elements within the same parent element. Uniqueness
is determined by case-sensitive string comparison. The value of the
attribute MUST be an absolute HTTP URI. Note that the server is not
responsible for verifying that the URI resolves to a &lt;list&gt;
element in a document. Indeed, since the URI may reference a server in
another domain, referential integrity cannot be guaranteed without
adding substantial complexity to the system.</t>

</list>
</section>

<section title="Data Semantics">

<t>Semantics for the document content are provided in <xref
target="sec:struc-rl"/>.
</t>

</section>

<section anchor="sec:nc-rl" title="Naming Conventions">

<t>
Resource lists documents are usually identified as references from
other application usages. For example, an RLS services document
contains a reference to the resource list it uses.
</t>

<t>
Frequently, an XCAP client will wish to insert or remove an
&lt;entry&gt;, &lt;entry-ref&gt;, or &lt;external&gt; element from a
document without having a cached copy of that document. In such a
case, the "uri" attribute of the &lt;entry&gt; element, the "ref"
attribute of the &lt;entry-ref&gt; element, or the "anchor" attribute
of the &lt;external&gt; element is used as an index to select the
element to operate upon. The XCAP server will determine uniqueness by
case-sensitive string comparison. However, each of these attributes
contain URIs, and the URI equality rules for their schemes may allow
two URIs to be the same, even if they are different by case
sensitive string comparison. As such, it is possible that a client
will attempt a PUT or DELETE in an attempt to modify or remove an
existing element.  Instead, the PUT ends up inserting a new
element, or the DELETE ends up returning an error response.
</t>

<t>
If the XCAP client cannot determine whether the user intent is to
create or replace, the client SHOULD canonicalize the URI
before performing the operation. For a SIP URI (often present in the
"uri" attribute of the &lt;entry&gt; element), this canonicalization
procedure is defined in <xref target="sec:canonical"/>. 
We expect that the SIP URIs that will be placed into resource lists
documents will usually be of the form sip:user@domain, and possibly
include a user parameter. The canonicalization rules work
perfectly for these URIs.
</t>

<t>
For HTTP URIs, a basic canonicalization algorithm is as follows. If
the port in the URI is equal to the default port (80 for http URIs),
then the port is removed. The hostname is converted to all
lowercase. Any percent-encoding in the URI for characters which do
not need to be percent-encoded is removed. A character needs to be
percent-encoded when it is not permitted in that part of the URI based
on the grammar for that part of the URI. 
</t>

</section>

<section title="Resource Interdependencies">

<t>There are no resource interdependencies identified by this
application usage.
</t>

</section>

<section title="Authorization Policies">

<t>
This application usage does not modify the default XCAP authorization
policy, which is that only a user can read, write, or modify their own
documents. A server can allow privileged users to modify documents
that they don't own, but the establishment and indication of such
policies is outside the scope of this document. It is anticipated that
a future application usage will define which users are allowed to
modify a list resource.
</t>

</section>

</section>

<!-- end resource lists -->
</section>

<section title="RLS Services Documents">

<section anchor="sec:struc-rs" title="Structure">

<t>
An RLS services document is used to define URIs that represent
services provided by a Resource List Server (RLS) as defined in <xref
target="RFC4662"/>.  An RLS services document is an
<xref target="W3C.REC-xml-20001006">XML</xref> document that MUST be
well-formed and MUST be valid according to schemas, including
extension schemas, available to the validater and applicable to the
XML document. RLS services documents MUST be based on XML 1.0 and MUST
be encoded using UTF-8. This specification makes use of XML namespaces
for identifying RLS services documents and document fragments. The
namespace URI for elements defined by this specification is a <xref
target="RFC2141">URN</xref> that uses the namespace identifier 'ietf'
defined by <xref target="RFC2648">RFC 2648</xref> and extended by
<xref target="RFC3688">RFC 3688</xref>. This URN is:
</t>

<list style="hanging"><t>
urn:ietf:params:xml:ns:rls-services
</t></list>

<t>
The root element of an rls-services document is
&lt;rls-services&gt;. It contains a sequence of &lt;service&gt;
elements, each of which defines a service available at an RLS.
</t>

<t>
Each &lt;service&gt; element has a single mandatory attribute,
"uri". This URI defines the resource associated with the service. That
is, if a client subscribes to that URI, they will obtain the service
defined by the corresponding &lt;service&gt; element. The
&lt;service&gt; element can also contain attributes from other
namespaces, for the purposes of extensibility. The
&lt;service&gt; element contains child elements that define the
service. For an RLS service, very little service definition is needed:
just the resource list to which the server will perform virtual
subscriptions <xref target="RFC4662"/> and the set
of event packages that the service supports. The former can be
conveyed in one of two ways. There can be a &lt;resource-list&gt;
element, which points to a &lt;list&gt; element in a resource-lists
document, or there can be a &lt;list&gt; element, which includes the
resource list directly. The supported packages are contained in the
&lt;packages&gt; element. The &lt;service&gt; element can also contain
elements from other namespaces, for the purposes of extensibility.
</t>

<t>
By including the contents of the resource list directly, a user can
create lists and add members to them with a single XCAP
operation. However, the resulting list becomes "hidden" within the RLS
service definition, and is not usable by other application usages. For
this reason, the &lt;resource-list&gt; element exists as an
alternative. It can reference a &lt;list&gt; element in a
resource-lists document. Since the list is separated from the service
definition, it can be easily reused by other application usages.
</t>

<t>
The &lt;list&gt; element is of the list type defined by the schema for
resource lists. It is discussed in <xref target="sec:struc-rl"/>.
</t>

<t>
The &lt;resource-list&gt; element contains a URI. This element is only
meaningful when the document was obtained through XCAP. The URI MUST be an
absolute HTTP URI representing an XCAP element resource. Its XCAP root
MUST be the same as the XCAP root of the RLS services document. When
the RLS services document is present in a user's home directory, the
HTTP URI MUST exist underneath that user's home directory in the
resource-lists application usage. When the RLS services document is in
the global directory, the HTTP URI MUST exist underneath any user's
home directory in the resource-lists application usage. In either
case, the element referenced by the URI MUST be a &lt;list&gt;
element within a resource-lists document. All of these constraints
except for the latter one (which is a referential integrity
constraint) will be enforced by the XCAP server.
</t>

<t>
The &lt;packages&gt; element contains a sequence of &lt;package&gt;
elements. The content of each &lt;package&gt; element is the name of a
SIP event package <xref target="RFC3265"/>. The &lt;packages&gt;
element may also contain elements from additional namespaces, for the
purposes of extensibility. The &lt;packages&gt; element is
optional. When it is not present, it means that the RLS service will accept
subscriptions for any event package.
</t>

</section>

<section anchor="sec:rs-schema" title="Schema">

<figure><artwork>
<![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="urn:ietf:params:xml:ns:rls-services"
 xmlns:xs="http://www.w3.org/2001/XMLSchema"
 xmlns="urn:ietf:params:xml:ns:rls-services"
 xmlns:rl="urn:ietf:params:xml:ns:resource-lists"
 elementFormDefault="qualified" attributeFormDefault="unqualified">
 <xs:element name="rls-services">
  <xs:complexType>
   <xs:sequence minOccurs="0" maxOccurs="unbounded">
    <xs:element name="service" type="serviceType"/>
   </xs:sequence>
  </xs:complexType>
 </xs:element>
 <xs:complexType name="serviceType">
  <xs:sequence>
   <xs:choice>
    <xs:element name="resource-list" type="xs:anyURI"/>
    <xs:element name="list" type="rl:listType"/>
   </xs:choice>
   <xs:element name="packages" type="packagesType" minOccurs="0"/>
   <xs:any namespace="##other" processContents="lax" minOccurs="0"
    maxOccurs="unbounded"/>
  </xs:sequence>
  <xs:attribute name="uri" type="xs:anyURI" use="required"/>
  <xs:anyAttribute namespace="##other"/>
 </xs:complexType>
 <xs:complexType name="packagesType">
  <xs:sequence minOccurs="0" maxOccurs="unbounded">
   <xs:element name="package" type="packageType"/>
   <xs:any namespace="##other" processContents="lax" minOccurs="0"
    maxOccurs="unbounded"/>
  </xs:sequence>
 </xs:complexType>
 <xs:simpleType name="packageType">
  <xs:restriction base="xs:string"/>
 </xs:simpleType>
</xs:schema>

]]></artwork></figure>

</section>
<?rfc needLines="10" ?>
<section title="Example Document">

<t>
This document shows two services. One is sip:mybuddies@example.com,
and the other is sip:marketing@example.com. The former service
references a resource list in a resource-lists document, and the
latter one includes a list locally. Both services are for the presence
event package only.
</t>

<figure><artwork>
<![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<rls-services xmlns="urn:ietf:params:xml:ns:rls-services"
   xmlns:rl="urn:ietf:params:xml:ns:resource-lists"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <service uri="sip:mybuddies@example.com">
  <resource-list>http://xcap.example.com/resource-lists/user
   s/sip:joe@example.com/index/~~/resource-lists/list%5b@nam
   e=%22l1%22%5d</resource-list>
  <packages>
   <package>presence</package>
  </packages>
 </service>
 <service uri="sip:marketing@example.com">
   <list name="marketing">
     <rl:entry uri="sip:joe@example.com"/>
     <rl:entry uri="sip:sudhir@example.com"/>
   </list>
   <packages>
     <package>presence</package>
   </packages>
 </service>
</rls-services>
]]></artwork></figure>

</section>

<section title="Usage with XCAP">

<t>
RLS services documents can be manipulated with XCAP. This section
provides the details necessary for such a usage.
</t>

<section title="Application Unique ID">

<t>
XCAP requires application usages to define an application unique ID
ID (AUID) in either the IETF tree or a vendor tree. This specification
defines the "rls-services" AUID within the IETF tree, via the IANA
registration in <xref target="sec:iana"/>.
</t>

</section>

<section title="MIME Type">

<t>
The MIME type for this document is "application/rls-services+xml".
</t>

</section>

<section title="XML Schema">

<t>The XML Schema for this document is defined as the sole content of
<xref target="sec:rs-schema"/>.
</t>

</section>

<section title="Default Namespace">

<t>
The default namespace used in expanding URIs is
urn:ietf:params:xml:ns:rls-services.
</t>

</section>


<section title="Additional Constraints">

<t>In addition to the schema, there are constraints on the URIs
present in the &lt;service&gt; and &lt;resource-list&gt; elements. These
constraints are defined in <xref target="sec:struc-rl"/>. Some of
these constraints are enforced by the XCAP server. Those constraints
are: 
</t>

<list style="symbols">

<t>The URI in the "uri" attribute of the &lt;service&gt; element MUST
be unique amongst all other URIs in "uri" elements in any
&lt;service&gt; element in any document on a particular
server. This uniqueness constraint spans across XCAP
roots. Furthermore, the URI MUST NOT correspond to an existing 
resource within the domain of the URI. If a
server is asked to set the URI to something that already exists, the
server MUST reject the request with a 409, and use the mechanisms
defined in <xref target="RFC4825"/> to suggest
alternate URIs that have not yet been allocated.
</t>

<t>The URI in a &lt;resource-list&gt; element MUST be an absolute
URI. The server MUST verify that the URI path contains
"resource-lists" in the path segment corresponding to the AUID. If the
RLS services document is within the XCAP user tree (as opposed to the
global tree), the server 
MUST verify that the XUI in the path is the same as the XUI
in the URI of to the RLS services document. These checks
are made by examining the URI value, as opposed to dereferencing the
URI. The server is not responsible for verifying that the URI actually
points to a &lt;list&gt; element within a valid resource lists
document. 
</t>

<t>In addition, an RLS services document can contain a &lt;list&gt;
element, which in turn can contain &lt;entry&gt;, &lt;entry-ref&gt;,
&lt;list&gt;, and &lt;external&gt; elements. The constraints defined for these
elements in <xref target="sec:nc-rl"/> MUST be enforced.
</t>

<t>
In some cases, an XCAP client will wish to create a new RLS service,
and wish to assign it a "vanity URI", such as
sip:friends@example.com. However, the client does not know whether
this URI meets the uniqueness constraints defined above. In that case,
it can simply attempt the creation operation, and if the result is a
409 that contains a detailed conflict report with the
&lt;uniqueness-failure&gt; element, the client knows that the URI
could not be assigned. It can then retry with a different vanity URI,
or use one of the suggestions in the detailed conflict report.
</t>

<t>
If the client wishes to create a new RLS service, and it doesn't care
what the URI is, the client creates a random one, and attempts the
creation operation. As discussed in <xref
target="RFC4825"/>, if this should fail with a
uniqueness conflict, the client can retry with different URIs with
increasing randomness.
</t>

</list>

</section>

<section title="Data Semantics">

<t>Semantics for the document content are provided in <xref
target="sec:struc-rs"/>.
</t>

</section>

<section anchor="sec:rs-naming" title="Naming Conventions">

<t>
Typically, there are two distinct XCAP clients that access RLS services
documents. The first is a client acting on behalf of the end user in
the system. This client edits and writes both resource lists and RLS
services documents as they are created or modified by the end
user. The other XCAP client is the RLS itself, which reads the
RLS services documents in order to process SUBSCRIBE requests.
</t>

<t>
To make it easier for an RLS to find the &lt;service&gt;
element for a particular URI, the XCAP server maintains, within the
global tree, a single RLS services document representing the union of
all the &lt;service&gt; elements across all documents created by
all users within the same XCAP root. There is a single instance of
this document, and its name is "index". Thus, if the root services URI
is http://xcap.example.com, the following is the URI that an RLS
would use to fetch this index:
</t>

<figure><artwork>
<![CDATA[http://xcap.example.com/rls-services/global/index
]]></artwork></figure>

<t>
As discussed below, this index is created from all the documents in
the user tree that have the name "index" as well. An implication of
this is that a client operating on behalf of a user SHOULD define its
RLS services within the document named "index". If the root services URI is
http://xcap.example.com, for user "sip:joe@example.com" the URI for
this document would be: 
</t>

<figure><artwork>
<![CDATA[http://xcap.example.com/rls-services/users/sip:joe@example.com/index
]]></artwork></figure>


<?rfc needLines="5" ?>
<t>
If a client elects to define RLS services in a different document,
this document will not be "picked up" in the global index, and
therefore, will not be used as an RLS service. 
</t>

</section>

<section title="Resource Interdependencies">

<t>
As with other application usages, the XML schema and the XCAP
resource naming conventions describe most of the resource
interdependencies applicable to this application usage.
</t>

<t>
This application usage defines an additional resource interdependence
between a single document in the global tree and all documents in the
user tree with the name "index". This global document is formed as 
the union of all of
the index documents for all users within the same XCAP root. In this
case, the union operation implies that each &lt;service&gt; element in
a user document will also be present as a &lt;service&gt; element in
the global document. The inverse is true as well. Every
&lt;service&gt; element in the global document exists within a user
document within the same XCAP root.
</t>

<t>
As an example, consider the RLS services document for user sip:joe@example.com:
</t>

<!-- rls-services-x1.xml -->
<figure><artwork>
<![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<rls-services>
 <service uri="sip:mybuddies@example.com">
  <resource-list>http://xcap.example.com/resource-lists/users/si
   p:joe@example.com/index/~~/resource-lists/list%5b@name=%22l1%
   22%5d</resource-list>
  <packages>
   <package>presence</package>
  </packages>
 </service>
</rls-services>
]]></artwork></figure>

<t>
And consider the RLS services document for user bob:
</t>

<!-- rls-services-x2.xml -->

<figure><artwork>
<![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<rls-services>
 <service uri="sip:marketing@example.com">
   <list name="marketing">
     <rl:entry uri="sip:joe@example.com"/>
     <rl:entry uri="sip:sudhir@example.com"/>
   </list>
   <packages>
     <package>presence</package>
   </packages>
 </service>
</rls-services>
]]></artwork></figure>

<t>
The global document at
http://xcap.example.com/rls-services/global/index would look
like this:
</t>

<!-- rls-services-x3.xml -->
<figure><artwork>
<![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<rls-services xmlns="urn:ietf:params:xml:ns:rls-services"
   xmlns:rl="urn:ietf:params:xml:ns:resource-lists"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <service uri="sip:mybuddies@example.com">
  <resource-list>http://xcap.example.com/resource-lists/user
   s/sip:joe@example.com/index/~~/resource-lists/list%5b@nam
   e=%22l1%22%5d</resource-list>
  <packages>
   <package>presence</package>
  </packages>
 </service>
 <service uri="sip:marketing@example.com">
   <list name="marketing">
     <rl:entry uri="sip:joe@example.com"/>
     <rl:entry uri="sip:sudhir@example.com"/>
   </list>
   <packages>
     <package>presence</package>
   </packages>
 </service>
</rls-services>
]]></artwork></figure>

<t>Requests made against the global document MUST generate responses
that reflect the most recent state of all the relevant user
documents. This requirement does not imply that the server must
actually store this global document. It is anticipated that most
systems will dynamically construct the responses to any particular
request against the document resource.  </t>

<t>The uniqueness constraint on the "uri" attribute of &lt;service&gt;
will ensure that no two &lt;service&gt; elements in the global
document have the same value of that attribute.
</t>

</section>

<section title="Authorization Policies">

<t>
This application usage does not modify the default XCAP authorization
policy, which is that only a user can read, write, or modify thier own
documents. A server can allow privileged users to modify documents
that they don't own, but the establishment and indication of such
policies are outside the scope of this document. It is anticipated that
a future application usage will define which users are allowed to
modify an RLS services document.
</t>

<?rfc needLines="5" ?>
<t>
The index document maintained in the global tree represents sensitive
information, as it contains the union of all the information for
all users on the server. As such, its access MUST be restricted to
trusted elements within domain of the server. Typically, this would be
limited to the RLSs that need access to this document.
</t>

</section>

</section>

<section title="Usage of an RLS Services Document by an RLS">

<t>
This section discusses how an RLS, on receipt of a SUBSCRIBE request,
uses XCAP and the RLS services document to guide its operation.
</t>

<t>
When an RLS receives a SUBSCRIBE request for a URI (present in the
Request URI), it obtains the
&lt;service&gt; element whose uri attribute matches (based on URI
equality) the URI in the SUBSCRIBE request. This document makes no
normative statements on how this might be accomplished. The following
paragraph provides one possible approach.
</t>

<t>
The RLS canonicalizes the Request URI as described in <xref
target="sec:canonical"/>. It then performs an XCAP GET operation
against the URI formed by combining the XCAP root with the document
selector of the global index with a node selector of the form
"rls-services/service[@uri=&lt;canonical-uri&gt;]", where
&lt;canonical-uri&gt; is the canonicalized version of the Request
URI. If the response is a 200 OK, it will contain the service
definition for that URI. 
</t>

<t>
Once the &lt;service&gt; element has been obtained, it is examined. If
the &lt;packages&gt; element is present, and the event package in the
SUBSCRIBE request is not amongst those listed in the &lt;package&gt;
elements within &lt;packages&gt;, the request MUST be rejected with a
489 (Bad Event) response code, as described in <xref
target="RFC3265"/>. Otherwise, it SHOULD be processed.  The
next step is to authorize that the client is allowed to subscribe to
the resource. This can be done using the data defined in <xref
target="I-D.ietf-simple-presence-rules"/>, for example. Assuming the
subscriber is authorized to subscribe to that resource, the
subscription is processed according to the procedures defined in <xref
target="RFC4662"/>. This processing requires the
RLS to compute a flat list of URIs that are to be subscribed to. If
the &lt;service&gt; element had a &lt;list&gt; element, it is
extracted. If the &lt;service&gt; element had a &lt;resource-list&gt;
element, its URI content is dereferenced. The result should be a
&lt;list&gt; element. If it is not, the request SHOULD be rejected with a 502
(Bad Gateway). Otherwise, that &lt;list&gt; element is extracted.
</t>

<?rfc needLines="5" ?>
<t>
At this point, the RLS has a &lt;list&gt; element in its
possession. The next step is to obtain a flat list of URIs from this
element. To do that, it traverses the tree of elements rooted in the
&lt;list&gt; element. Before traversal begins, the RLS initializes two
lists: the "flat list", which will contain the flat list of the URI after
traversal, and the "traversed list", which contains a list of HTTP
URIs in &lt;external&gt; elements that have already been visited. Both
lists are initially empty. Next, tree traversal begins. A server can use
any tree-traversal ordering it likes, such as depth-first search or
breadth-first search. The processing at each element in the tree
depends on the name of the element:
</t>

<list style="symbols">

<t>If the element is &lt;entry&gt;, the URI in the "uri" attribute of
the element is added to the flat list if it is not already present
(based on case-sensitive string equality) in that list, and the URI
scheme represents one that can be used to service subscriptions, such
as SIP <xref target="RFC3261"/> and pres <xref
target="RFC3859"/>.
</t>

<t>If the element is an &lt;entry-ref&gt;, the relative path reference
making up the value of the "ref" attribute is resolved into an absolute
URI. This is done using the procedures defined in Section 5.2 of <xref
target="RFC3986">RFC 3986</xref>, using the XCAP root of the RLS
services document as the base URI. This absolute URI is resolved. If
the result is not a 200 OK containing a &lt;entry&gt; element, the
SUBSCRIBE request SHOULD be rejected with a 502 (Bad
Gateway). Otherwise, the &lt;entry&gt; element returned is processed
as described in the previous step.
</t>

<t>
If the element is an &lt;external&gt; element, the absolute URI making
up the value of the "anchor" attribute of the element is examined. If
the URI is on the 
traversed list, the server MUST cease traversing the tree, and SHOULD
reject the SUBSCRIBE request with a 502 (Bad Gateway). If the URI is
not on the traversed list, the server adds the URI to the traversed
list, and dereferences the URI. If the result is not a 200 OK
containing a &lt;list&gt; element, the SUBSCRIBE request SHOULD be
rejected with a 502 (Bad Gateway). Otherwise, the RLS replaces the
&lt;external&gt; element in its local copy of the tree with the
&lt;list&gt; element that was returned, and tree traversal
continues.
</t>
</list>

<t>
Because the &lt;external&gt; element is used to dynamically construct
the tree, there is a possibility of recursive evaluation of
references. The traversed list is used to prevent this from happening.
</t>

<t>
Once the tree has been traversed, the RLS can create virtual
subscriptions to each URI in the flat list, as defined in <xref
target="RFC4662"/>.
</t>
<?rfc needLines="5" ?>
<t>In the processing steps outlined above, when an &lt;entry-ref&gt;
or &lt;external&gt; element contains a reference that cannot be
resolved, failing the request is at SHOULD strength. In some cases, an
RLS may provide better service by creating virtual subscriptions to
the URIs in the flat list that could be obtained, omitting those that
could not. Only in those cases should the SHOULD recommendation be
ignored. 
</t>

</section>

<!-- End RLS Services -->
</section>

<section anchor="sec:canonical" title="SIP URI Canonicalization">

<t>
This section provides a technique for URI canonicalization. This
canonicalization produces a URI that, in most cases, is equal to the
original URI (where equality is based on the URI comparison rules in
RFC 3261). Furthermore, the canonicalized URI will usually be
lexically equivalent to the canonicalized version of any other URI
equal to the original. 
</t>

<t>To canonicalize the URI, the following steps are followed:
</t>

<list style="numbers">

<t>First, the domain part of the URI is
converted into all lowercase, and any tokens (such as "user" or
"transport" or "udp") are converted to all lowercase.</t>


<t>Secondly, any percent-encoding in the URI for characters which do
not need to be percent-encoded is removed. A character needs to be
percent-encoded when it is not permitted in that part of the URI based
on the grammar for that part of the URI. For example, if a SIP URI is
sip:%6aoe%20smith@example.com, it is changed to sip:joe%20smith@example.com. In
the original URI, the character 'j' was percent-encoded. This is allowed,
but not required, since the grammar allows a 'j' to appear in the user
part. As a result, it appears as 'j' after this step of
canonicalization. 
</t>

<t>Thirdly, any URI parameters are reordered so that they appear
in lexical order based on parameter name. The ordering of a character
is determined by the US-ASCII numerical value of that character, with
smaller numbers coming first. Parameters are ordered with the leftmost
character as most significant. For parameters that contain only
letters, this is equivalent to an alphabetical ordering.
</t>

<t>Finally, any
header parameters are discarded. This canonicalized URI is used
instead of the original URI.
</t>

</list>

<t>
If two URIs, A and B, are functionally equal (meaning that they are
equal according to the URI comparison rules in RFC 3261), their
canonicalized URIs are equal under case-sensitive string comparison if
the following are true:
</t>

<list style="symbols">
<t>Neither URI contains header parameters.</t>
<t>If one of the URI contains a URI parameter not defined in RFC 3261,
the other does as well.
</t>
</list>

</section>

<section title="Extensibility">

<t>
Resource-lists and RLS services documents are meant to be extended. An
extension takes place by defining a new set of elements in a new
namespace, governed by a new schema. Every extension MUST have an
appropriate XML namespace assigned to it.  The XML namespace of the
extension MUST be different from the namespaces defined in this
specification. The extension MUST NOT change the syntax or semantics
of the schemas defined in this document. All XML tags and attributes
that are part of the extension MUST be appropriately qualified so as
to place them within that namespace.
</t>

<t>
This specification defines explicit places where new elements or
attributes from an extension can be placed. These are explicitly
indicated in the schemas by the &lt;any&gt; and &lt;anyAttribute&gt;
elements. Extensions to this specification MUST specify
where their elements can be placed within the document.
</t>

<t>
As a result, a document that contains extensions will require multiple
schemas in order to determine its validity: a schema defined in
this document, along with those defined by extensions present in the
document. Because extensions occur by adding new elements and
attributes governed by new schemas, the schemas defined in this
document are fixed and would only be changed by a revision to this
specification. Such a revision, should it take place, would endeavor
to allow documents compliant to the previous schema to remain
compliant to the new one. As a result, the schemas defined here don't
provide explicit schema versions, as this is not expected to be
needed.
</t>

</section>

<section anchor="sec:security" title="Security Considerations">

<t>The information contained in rls-services and resource-lists
documents are particularly sensitive. It represents the principle set of people
with whom a user would like to communicate. As a result, clients
SHOULD use TLS when contacting servers in order to fetch this
information. Note that this does not represent a change in requirement
strength from XCAP.
</t>

</section>

<section anchor="sec:iana" title="IANA Considerations">

<t>
There are several IANA considerations associated with this specification. 
</t>

<section title="XCAP Application Unique IDs">

<t>
This section registers two new XCAP Application Unique IDs (AUIDs)
according to the IANA procedures defined in <xref
target="RFC4825"/>.
</t>

<section title="resource-lists">

<list style="hanging">

<t hangText="Name of the AUID:">resource-lists</t>

<t hangText="Description:">A resource lists application is any application that
needs access to a list of resources, identified by a URI, to which
operations, such as subscriptions, can be applied.
</t>

</list>

</section>


<section title="rls-services">

<list style="hanging">

<t hangText="Name of the AUID:">rls-services</t>

<t hangText="Description:">A Resource List Server (RLS) services application is a
Session Initiation Protocol (SIP) application whereby a server
receives SIP SUBSCRIBE requests for resource, and
generates subscriptions towards a resource list.
</t>

</list>

</section>

</section>

<section title="MIME Type Registrations">

<t>
This specification requests the registration of two new MIME types
according to the procedures of <xref target="RFC4288">RFC 4288</xref>
and guidelines in <xref target="RFC3023">RFC 3023</xref>.
</t>

<section title="application/resource-lists+xml">

<list style="hanging">

<t hangText="MIME media type name:">application</t>

<t hangText="MIME subtype name:">resource-lists+xml</t>

<t hangText="Mandatory parameters:">none</t>

<t hangText="Optional parameters:">Same as charset parameter application/xml
as specified in <xref target="RFC3023">RFC 3023</xref>.</t>

<t hangText="Encoding considerations:">Same as encoding considerations of
application/xml as specified in <xref target="RFC3023">RFC
3023</xref>.</t>

<t hangText="Security considerations:">See Section 10 of <xref
target="RFC3023">RFC 3023</xref> and
<xref target="sec:security"/> of RFC 4826.</t>

<t hangText="Interoperability considerations:">none</t>

<t hangText="Published specification:">RFC 4826</t>

<t hangText="Applications that use this media type:">This document type has
been used to support subscriptions to <xref
target="RFC4662">lists of users</xref> for 
<xref target="RFC3856">SIP-based presence</xref>.</t>

<t hangText="Additional Information:">
<list>
    <t>Magic Number: none</t>
    <t>File Extension: .rl</t>
    <t>Macintosh file type code: "TEXT"</t>
</list>
</t>

<t hangText="Personal and email address for further information:">
<vspace blankLines="0"/>
Jonathan Rosenberg, jdrosen@jdrosen.net</t>

<t hangText="Intended usage:">COMMON</t>

<t hangText="Author/Change controller:">The IETF.</t>

</list>
</section>

<section title="application/rls-services+xml">

<list style="hanging">

<t hangText="MIME media type name:">application</t>

<t hangText="MIME subtype name:">rls-services+xml</t>

<t hangText="Mandatory parameters:">none</t>

<t hangText="Optional parameters:">Same as charset parameter application/xml
as specified in <xref target="RFC3023">RFC 3023</xref>.</t>

<t hangText="Encoding considerations:">Same as encoding considerations of
application/xml as specified in <xref target="RFC3023">RFC
3023</xref>.</t>

<t hangText="Security considerations:">See Section 10 of <xref
target="RFC3023">RFC 3023</xref> and
<xref target="sec:security"/> of RFC 4826.</t>

<t hangText="Interoperability considerations:">none</t>

<t hangText="Published specification:">RFC 4826</t>

<t hangText="Applications that use this media type:">This document type has
been used to support subscriptions to <xref
target="RFC4662">lists of users</xref> for 
<xref target="RFC3856">SIP-based presence</xref>.</t>

<t hangText="Additional Information:">
<list>
    <t>Magic Number: none</t>
    <t>File Extension: .rs</t>
    <t>Macintosh file type code: "TEXT"</t>
</list>
</t>

<t hangText="Personal and email address for further information:">
<vspace blankLines="0"/>
Jonathan Rosenberg, jdrosen@jdrosen.net</t>

<t hangText="Intended usage:">COMMON</t>

<t hangText="Author/Change controller:">The IETF.</t>

</list>
</section>

</section>

<section title="URN Sub-Namespace Registrations">

<t>This section registers two new XML namespaces, as per the guidelines
in <xref target="RFC3688">RFC 3688</xref>.</t>

<section title="urn:ietf:params:xml:ns:resource-lists">

<list style="hanging">

<t hangText="URI:">The URI for this namespace is
urn:ietf:params:xml:ns:resource-lists.</t>

<t hangText="Registrant Contact:">IETF, SIMPLE working group,
(simple@ietf.org), Jonathan Rosenberg
(jdrosen@jdrosen.net).</t>
</list>

<figure><artwork>
<![CDATA[   XML: 
          BEGIN
          <?xml version="1.0"?>
          <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN"
             "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd">
          <html xmlns="http://www.w3.org/1999/xhtml">
          <head>
            <meta http-equiv="content-type"
               content="text/html;charset=iso-8859-1"/>
            <title>Resource Lists Namespace</title>
          </head>
          <body>
            <h1>Namespace for Resource Lists</h1>
            <h2>urn:ietf:params:xml:ns:resource-lists</h2>
            <p>See <a href="http://www.rfc-editor.org/rfc/rfc4826.txt">
               RFC4826</a>.</p>
          </body>
          </html>
          END
]]></artwork></figure>

</section>

<?rfc needLines="6" ?>
<section title="urn:ietf:params:xml:ns:rls-services">

<list style="hanging">

<t hangText="URI:">The URI for this namespace is
urn:ietf:params:xml:ns:rls-services.</t>

<t hangText="Registrant Contact:">IETF, SIMPLE working group,
(simple@ietf.org), Jonathan Rosenberg
(jdrosen@jdrosen.net).</t>
</list>
 
<figure><artwork>
<![CDATA[   XML:
          BEGIN
          <?xml version="1.0"?>
          <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN"
             "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd">
          <html xmlns="http://www.w3.org/1999/xhtml">
          <head>
            <meta http-equiv="content-type"
               content="text/html;charset=iso-8859-1"/>
            <title>Resource List Server (RLS) Services Namespace</title>
          </head>
          <body>
            <h1>Namespace for Resource List Server (RLS) Services</h1>
            <h2>urn:ietf:params:xml:ns:rls-services</h2>
            <p>See <a href="http://www.rfc-editor.org/rfc/rfc4826.txt">
               RFC4826</a>.</p>
          </body>
          </html>
          END
]]></artwork></figure>

</section>

</section>

<section title="Schema Registrations">

<t>This section registers two XML schemas per the procedures in
<xref target="RFC3688"/>.
</t>

<section title="urn:ietf:params:xml:schema:resource-lists">

<list style="hanging">

<t hangText="URI:">urn:ietf:params:xml:schema:resource-lists</t>

<t hangText="Registrant Contact:">IETF, SIMPLE working group,
(simple@ietf.org), Jonathan Rosenberg
(jdrosen@jdrosen.net).</t>
</list>

<t>The XML for this schema can be found as the sole content of <xref
target="sec:rl-schema"/>.</t>

</section>

<?rfc needLines="9" ?>
<section title="urn:ietf:params:xml:schema:rls-services">

<list style="hanging">

<t hangText="URI:">urn:ietf:params:xml:schema:rls-services</t>

<t hangText="Registrant Contact:">IETF, SIMPLE working group,
(simple@ietf.org), Jonathan Rosenberg
(jdrosen@jdrosen.net).</t>
</list>

<t>The XML for this schema can be found as the sole content of <xref
target="sec:rs-schema"/>.</t>

</section>

</section>

</section>

<section title="Acknowledgements">

<t> The authors would like to thank Hisham Khartabil, Jari Urpalainen,
and Spencer Dawkins for their comments and input. Thanks to Ted Hardie
for his encouragement and support of this work.  </t>

</section>

</middle>






<back>
<references title="Normative References">
<?rfc include="reference.RFC.2119"?>
<?rfc include="reference.W3C.REC-xml-20001006"?>
<?rfc include="reference.RFC.2141"?>
<?rfc include="reference.RFC.3261"?>
<?rfc include="reference.RFC.3023"?>
<?rfc include="reference.RFC.2648"?>
<?rfc include="reference.RFC.3986"?>
<?rfc include="reference.RFC.3688"?>
<?rfc include="reference.RFC.4288"?> 
<!--"reference.RFC.2048" was obsoleted by 4288 and 4289 -->

<!-- draft-ietf-simple-xcap will be RFC 4825 -->
<reference anchor="RFC4825">
        <front>
	        <title>The Extensible Markup Language (XML) Configuration Access Protocol (XCAP)</title>
                <author initials="J" surname="Rosenberg" fullname="Jonathan Rosenberg">
                        <organization/>
                </author>
                <date month="May" year="2007"/>
        </front>
        <seriesInfo name="RFC" value="4825"/>
</reference>
</references>

<references title="Informative References">

<?rfc include="reference.RFC.3856"?>

<!--<?rfc include="reference.I-D.ietf-simple-presence-rules"?>-->
<reference anchor="I-D.ietf-simple-presence-rules">
        <front>
                <title>Presence Authorization Rules</title>
                <author initials='J' surname='Rosenberg' fullname='Jonathan Rosenberg'>
                        <organization />
                </author>
                <date month='October' year='2006' />
        </front>
        <seriesInfo name='Work in' value='Progress' />
        <format type='TXT' target='http://www.ietf.org/internet-drafts/draft-ietf-simple-presence-rules-08.txt' />
</reference>

<?rfc include="reference.RFC.3265"?>
<!-- draft-ietf-simple-event-list published as 4662-->
<reference anchor="RFC4662">
	<front>
        	<title>A Session Initiation Protocol (SIP) Event Notification Extension for Resource Lists</title>
        	<author initials="A" surname="Roach" fullname="Adam Roach">
                        <organization/>
                </author>
        	<author initials="J" surname="Rosenberg" fullname="Jonathan Rosenberg">
                        <organization/>
                </author>
                <author initials="B" surname="Campbell" fullname="Ben Campbell">
                        <organization/>
                </author>
                <date month="January" day="3" year="2005"/>
        </front>
        <seriesInfo name="RFC" value="4662"/>
        <format type="TXT" target="http://www.ietf.org/internet-drafts/draft-ietf-simple-event-list-07.txt"/>
</reference>

<?rfc include="reference.RFC.3859"?>
</references>

</back>
</rfc>
