1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-12-21 23:28:51 -05:00

Merge branch 'feature/xep-0402'

This commit is contained in:
Jonas Schäfer 2020-05-26 17:30:27 +02:00
commit a6e9b48803

View File

@ -27,6 +27,12 @@
<discuss>standards</discuss>
&dcridland;
&jcbrand;
<revision>
<version>1.1.0</version>
<date>2020-05-26</date>
<initials>mb</initials>
<remark><p>Add schema + other editorial changes</p></remark>
</revision>
<revision>
<version>1.0.0</version>
<date>2020-03-31</date>
@ -347,7 +353,7 @@
</item>
</items>
</event>
</iq>
</message>
]]></example>
<p>On the other hand, if the event is a retract notification, the client SHOULD leave the room immediately.</p>
@ -359,7 +365,7 @@
<retract id='theplay@conference.shakespeare.lit'/>
</items>
</event>
</iq>
</message>
]]></example>
</section1>
@ -402,4 +408,45 @@
<p>Security considerations related to object persistence via publish-subscribe are described in <cite>XEP-0060</cite> and <cite>XEP-0223</cite>.</p>
<p>The client needs to make sure that the server actually supports the "http://jabber.org/protocol/pubsub#publish-options" feature, before relying on it. If it's not supported, the client should configure the '&namespace;' node first (see <cite>xep-0060</cite>), before adding any bookmarks.</p>
</section1>
<section1 topic='XML Schema' anchor='schema'>
<code><![CDATA[
<?xml version='1.0' encoding='UTF-8'?>
<xs:schema
xmlns:xs='http://www.w3.org/2001/XMLSchema'
targetNamespace=']]>&namespace;<![CDATA['
xmlns=']]>&namespace;<![CDATA['
elementFormDefault='qualified'>
<xs:annotation>
<xs:documentation>
The protocol documented by this schema is defined in
XEP-0402: http://www.xmpp.org/extensions/xep-0402.html
</xs:documentation>
</xs:annotation>
<xs:element name='conference'>
<xs:complexType>
<xs:sequence>
<xs:element name='nick' type='xs:string' minOccurs='0'/>
<xs:element name='password' type='xs:string' minOccurs='0'/>
<xs:element ref='extensions'/>
</xs:sequence>
<xs:attribute name='autojoin' type='xs:boolean' use='optional' default='false'/>
<xs:attribute name='name' type='xs:string' use='optional'/>
</xs:complexType>
</xs:element>
<xs:element name='extensions'>
<xs:complexType>
<xs:sequence>
<xs:any namespace='##other'
minOccurs='0'
maxOccurs='unbounded'
processContents='lax'/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>]]></code>
</section1>
</xep>