PIDF status values
"Adrian Bateman" <[email protected]>
| Newsgroups | gmane.ietf.impp |
|---|---|
| Organization | VisionTech Limited |
| Message-ID | <002701c1e5fc$28e01d20$6405010a@ADRIANXP> |
This is a draft describing the my proposal for the structure of the
status values within PIDF. My example reflects the urn change
recommended by Graham and the use of the 'entity' attribute as discussed
previously on the list.
When it came down to it, I couldn't think of a tremendous amount to
write for the 4.2.4 section so if there are gaps you'd like mentioned,
please let me know, or fill them in :o).
To address Graham's issue with a status value registry, aren't we
covered by simply registering the xml namespace urn?
Regards,
Adrian.
4.1.4 The <status> element
The <status> element contains one or more elements indicating status
values. It can have multiple status values at the same time. By
allowing multiple status values in a single <tuple> element,
different
types of status values, e.g. reachability and location, can be
represented by a <tuple>. See Section 4.3 for an example with
multiple
status values.
This memo only defines the <basic> status value element. Other status
values may be included using the standard extensibility framework
(see Section 4.2.4). Applications encountering unrecognized elements
within <status> may ignore them, unless they carry a
mustUnderstand="YES"
attribute (see section 4.2.3).
4.1.5 The <basic> element
The <basic> element contains a CDATA value whose possible values are
either "open" or "closed". The values "open" and "closed" has the
same meaning as OPEN and CLOSED defined in RFC 2778 respectively, and
stand for availability of receiving instant messages if the <tuple>
is
for an instant messaging address. They also have meanings of general
availability for other communication means. But, this memo does not
specify them in detail.
---
4.2.4 Status value extensibility
This memo only defines the <basic> status value with values of "open"
and "closed". Other status values are possible using the standard
namespace-based extensibility rules defined above.
For example, a location status value might be included thus:
<presence xmlns="urn:ietf:params:xml:ns:cpim-pidf"
xmlns:local="urn:example-com:pidf-status-type"
entity="pres:[email protected]">
<tuple id="im">
<status>
<basic>open</basic>
<local:location>home</local:location>
</status>
<contact>im:[email protected]</contact>
</tuple>
</presence>
Some new status values will 'extend' the value of the <basic>
element.
For example, a status value defined for use with instant messaging
may
include values such as 'away', 'busy' and 'offline'. In order that
some level of interoperability be maintained with user agents that
don't recognise the new extension, the <basic> status value must also
be included. This means that extensions are not obligated to define a
mapping from each of their values to OPEN or CLOSED.
[reminder: [email protected] for non-technical discussions, please]