Add forgotten node attribute in example 2.
Add forgotten namespace in example 3, and change the text to describe the correct element.
Initial published version.
Corrected example to use full JIDs and SubIDs.
First draft.
Entity Capabilities (XEP-0115)
Before a requesting entity asks for service discovery items with notifications, it SHOULD send directed presence to the responding entity so that the responding entity knows when to stop sending notifications.
The requesting entity then sends a disco#items request to the responding entity, including a <subscribe/> element qualified by the 'http://jabber.org/protocol/pubsub' namespace, which in turn specifies a node of 'http://jabber.org/protocol/disco#items'.
If the responding entity does not recognize inclusion of the <subscribe/> element as a child of the <query/> element, it MUST return the service discovery items but MUST NOT send subsequent notifications to the requesting entity.
If the requesting entity did not share presence with the responding entity, the responding entity MUST return the service discovery items but SHOULD NOT send subsequent notifications to the requesting entity.
If the responding entity recognizes inclusion of the <subscribe/> element as a child of the <query/> element and the requesting entity is allowed to receive notifications, the responding entity MUST return the service discovery items (including a <subscription/> element) and SHOULD send subsequent notifications to the requesting entity.
The responding entity then SHOULD send subsequent notifications to the requesting entity when associated items are added to or deleted from the potential result set.
When the requesting entity goes offline, the responding entity will receive unavailable presence.
The responding entity then MUST NOT send further notifications.
This document introduces no new security considerations above and beyond those already defined for service discovery and publish-subscribe.
This document requires no interaction with the Internet Assigned Numbers Authority (IANA)
This document requires no interaction with the XMPP Registrar