Hi,

I am wondering why the XML schema for PubSub events (
https://xmpp.org/extensions/xep-0060.html#schemas-event) specifies that
the "items" element of events may contain multiple "item" and "retract"
elements:

<xs:element name='items'>
  <xs:complexType>
    <xs:choice>
      <xs:element ref='item' minOccurs='0' maxOccurs='unbounded'/>
      <xs:element ref='retract' minOccurs='0' maxOccurs='unbounded'/>
    </xs:choice>
    <xs:attribute name='node' type='xs:string' use='required'/>
  </xs:complexType>
</xs:element>

While 
https://xmpp.org/extensions/xep-0060.html#publisher-publish-request
and https://xmpp.org/extensions/xep-0060.html#publisher-delete-request
 specify that it is not allowed to publish multiple items, 
https://xmpp.org/extensions/xep-0060.html#impl-batch allows that
explicitly.

I could imagine an event containing multiple items triggered after such
a batch processing or if the server caches multiple single item
publications before sending an event notification. But if that should
be possible and handled by clients, where is that specified?

_______________________________________________
Standards mailing list
Info: https://mail.jabber.org/mailman/listinfo/standards
Unsubscribe: standards-unsubscr...@xmpp.org
_______________________________________________

Reply via email to