1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-24 18:22:24 -05:00

Merge XEP-0284 example fix

This commit is contained in:
Maxime “pep” Buquet 2019-12-16 23:42:42 +01:00
commit 33b239bbc2

View File

@ -33,6 +33,16 @@
<surname>Pusateri</surname> <surname>Pusateri</surname>
<email>pusateri@bangj.com</email> <email>pusateri@bangj.com</email>
</author> </author>
<revision>
<version>0.1.1</version>
<date>2019-11-23</date>
<initials>egp</initials>
<remark><ul>
<li>Add missing &lt;state/&gt; wrapper in example.</li>
<li>Fix duplicated new element in example.</li>
<li>Fix indentation.</li>
</ul></remark>
</revision>
<revision> <revision>
<version>0.1.1</version> <version>0.1.1</version>
<date>2019-02-20</date> <date>2019-02-20</date>
@ -242,9 +252,9 @@
host='chamber@conference.shakespeare.lit' host='chamber@conference.shakespeare.lit'
initiator='kingclaudius@shakespeare.lit/castle' initiator='kingclaudius@shakespeare.lit/castle'
sid='851ba2'> sid='851ba2'>
<reason> <reason>
<unsupported-applications/> <unsupported-applications/>
</reason> </reason>
</jingle> </jingle>
</iq> </iq>
]]></example> ]]></example>
@ -351,8 +361,8 @@
]]></example> ]]></example>
</section2> </section2>
<section2 topic='Refusing a State Offer'> <section2 topic='Refusing a State Offer'>
<p>If a multiple state offers were received, one should be accepted and the others should be refused by sending a &lt;refuse-state/&gt; element.</p> <p>If a multiple state offers were received, one should be accepted and the others should be refused by sending a &lt;refuse-state/&gt; element.</p>
<example caption='Refusing a state offer'><![CDATA[ <example caption='Refusing a state offer'><![CDATA[
<message <message
from='laertes@shakespeare.lit/castle' from='laertes@shakespeare.lit/castle'
to='kingclaudius@shakespeare.lit/castle'> to='kingclaudius@shakespeare.lit/castle'>
@ -443,10 +453,6 @@
rid='GUID6' rid='GUID6'
parent='GUID4' parent='GUID4'
primary-weight='-2.43'/> primary-weight='-2.43'/>
<new type='element'
name='title'
parent='GUID3'
rid='GUID4' />
<new type='element' <new type='element'
name='body' name='body'
parent='GUID1' parent='GUID1'
@ -471,19 +477,19 @@
<sxe xmlns='urn:xmpp:sxe:0' <sxe xmlns='urn:xmpp:sxe:0'
session='851ba2' session='851ba2'
id='4'> id='4'>
<state> <state>
<new type='element' <new type='element'
name='p' name='p'
parent='GUID7' parent='GUID7'
rid='GUID8' /> rid='GUID8' />
<new type='text' <new type='text'
chdata='It&apos;s good to be the king!' chdata='It&apos;s good to be the king!'
parent='GUID8' parent='GUID8'
rid='GUID9'/> rid='GUID9'/>
<set target='GUID5' <set target='GUID5'
version='1' version='1'
chdata='It&apos;s good to be the king!'/> chdata='It&apos;s good to be the king!'/>
</state> </state>
</sxe> </sxe>
</message> </message>
]]></example> ]]></example>
@ -495,27 +501,29 @@
<sxe xmlns='urn:xmpp:sxe:0' <sxe xmlns='urn:xmpp:sxe:0'
session='851ba2' session='851ba2'
id='4'> id='4'>
<new type='element' <state>
name='p' <new type='element'
parent='GUID7' name='p'
rid='GUID10' /> parent='GUID7'
<new type='text' rid='GUID10' />
chdata='It certainly is!' <new type='text'
parent='GUID10' chdata='It certainly is!'
rid='GUID11' /> parent='GUID10'
<set target='GUID5' rid='GUID11' />
version='1' <set target='GUID5'
chdata='It certainly is' /> version='1'
<set target='GUID6' chdata='It certainly is' />
version='1' <set target='GUID6'
replacefrom='9' version='1'
replacen='16' replacefrom='9'
chdata='' /> replacen='16'
<set target='GUID6' chdata='' />
version='2' <set target='GUID6'
replacefrom='3' version='2'
replacen='0' replacefrom='3'
chdata='document'/> replacen='0'
chdata='document'/>
</state>
</sxe> </sxe>
</message> </message>
]]></example> ]]></example>