mirror of
https://github.com/moparisthebest/xeps
synced 2025-02-07 02:40:22 -05:00
XEP-0402: Fix inconsistent indent in examples.
This commit is contained in:
parent
c6d68207e7
commit
e074a99d81
86
xep-0402.xml
86
xep-0402.xml
@ -16,7 +16,7 @@
|
|||||||
<sig>Standards</sig>
|
<sig>Standards</sig>
|
||||||
<approver>Council</approver>
|
<approver>Council</approver>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<spec>XEP-0223</spec>
|
<spec>XEP-0223</spec>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<supersedes/>
|
<supersedes/>
|
||||||
<supersededby/>
|
<supersededby/>
|
||||||
@ -102,7 +102,7 @@
|
|||||||
<conference xmlns=']]>&namespace;<![CDATA['
|
<conference xmlns=']]>&namespace;<![CDATA['
|
||||||
name='Council of Oberon'
|
name='Council of Oberon'
|
||||||
autojoin='true'>
|
autojoin='true'>
|
||||||
<nick>Puck</nick>
|
<nick>Puck</nick>
|
||||||
</conference>
|
</conference>
|
||||||
]]></example>
|
]]></example>
|
||||||
<p>This bookmark would be displayed as 'Council of Oberon' and, if activated, would attempt to join the conference room 'council@conference.underhill.org' with nickname 'Puck'.</p>
|
<p>This bookmark would be displayed as 'Council of Oberon' and, if activated, would attempt to join the conference room 'council@conference.underhill.org' with nickname 'Puck'.</p>
|
||||||
@ -128,16 +128,16 @@
|
|||||||
</query>
|
</query>
|
||||||
</iq>
|
</iq>
|
||||||
]]></example>
|
]]></example>
|
||||||
</section2>
|
</section2>
|
||||||
|
|
||||||
<section2 topic='Retrieving all bookmarks' anchor='retrieving-bookmarks'>
|
<section2 topic='Retrieving all bookmarks' anchor='retrieving-bookmarks'>
|
||||||
<p>Once connected, a client SHOULD first retrieve the current list of bookmarks:</p>
|
<p>Once connected, a client SHOULD first retrieve the current list of bookmarks:</p>
|
||||||
<p>NOTE: A future version of this specification might refer to &xep0312; or a similar protocol to reduce the need for full synchronisation on each connection.</p>
|
<p>NOTE: A future version of this specification might refer to &xep0312; or a similar protocol to reduce the need for full synchronisation on each connection.</p>
|
||||||
<example caption='Client retrieves all bookmarks'><![CDATA[
|
<example caption='Client retrieves all bookmarks'><![CDATA[
|
||||||
<iq from='juliet@capulet.lit/balcony' type='get' id='retrieve1'>
|
<iq from='juliet@capulet.lit/balcony' type='get' id='retrieve1'>
|
||||||
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
|
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
|
||||||
<items node='urn:xmpp:bookmarks:0'/>
|
<items node='urn:xmpp:bookmarks:0'/>
|
||||||
</pubsub>
|
</pubsub>
|
||||||
</iq>
|
</iq>
|
||||||
]]></example>
|
]]></example>
|
||||||
<example caption='Server returns the bookmarks'><![CDATA[
|
<example caption='Server returns the bookmarks'><![CDATA[
|
||||||
@ -171,36 +171,36 @@
|
|||||||
|
|
||||||
<example caption='Client adds a new bookmark'><![CDATA[
|
<example caption='Client adds a new bookmark'><![CDATA[
|
||||||
<iq from='juliet@capulet.lit/balcony' type='set' id='pip1'>
|
<iq from='juliet@capulet.lit/balcony' type='set' id='pip1'>
|
||||||
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
|
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
|
||||||
<publish node='urn:xmpp:bookmarks:0'>
|
<publish node='urn:xmpp:bookmarks:0'>
|
||||||
<item id='theplay@conference.shakespeare.lit'>
|
<item id='theplay@conference.shakespeare.lit'>
|
||||||
<conference xmlns=']]>&namespace;<![CDATA['
|
<conference xmlns=']]>&namespace;<![CDATA['
|
||||||
name='The Play's the Thing'
|
name='The Play's the Thing'
|
||||||
autojoin='true'>
|
autojoin='true'>
|
||||||
<nick>JC</nick>
|
<nick>JC</nick>
|
||||||
</conference>
|
</conference>
|
||||||
</item>
|
</item>
|
||||||
</publish>
|
</publish>
|
||||||
<publish-options>
|
<publish-options>
|
||||||
<x xmlns='jabber:x:data' type='submit'>
|
<x xmlns='jabber:x:data' type='submit'>
|
||||||
<field var='FORM_TYPE' type='hidden'>
|
<field var='FORM_TYPE' type='hidden'>
|
||||||
<value>http://jabber.org/protocol/pubsub#publish-options</value>
|
<value>http://jabber.org/protocol/pubsub#publish-options</value>
|
||||||
</field>
|
</field>
|
||||||
<field var='pubsub#persist_items'>
|
<field var='pubsub#persist_items'>
|
||||||
<value>true</value>
|
<value>true</value>
|
||||||
</field>
|
</field>
|
||||||
<field var='pubsub#max_items'>
|
<field var='pubsub#max_items'>
|
||||||
<value>10000</value>
|
<value>10000</value>
|
||||||
</field>
|
</field>
|
||||||
<field var='pubsub#send_last_published_item'>
|
<field var='pubsub#send_last_published_item'>
|
||||||
<value>never</value>
|
<value>never</value>
|
||||||
</field>
|
</field>
|
||||||
<field var='pubsub#access_model'>
|
<field var='pubsub#access_model'>
|
||||||
<value>whitelist</value>
|
<value>whitelist</value>
|
||||||
</field>
|
</field>
|
||||||
</x>
|
</x>
|
||||||
</publish-options>
|
</publish-options>
|
||||||
</pubsub>
|
</pubsub>
|
||||||
</iq>
|
</iq>
|
||||||
]]></example>
|
]]></example>
|
||||||
<example caption='Server acknowledges successful storage'><![CDATA[
|
<example caption='Server acknowledges successful storage'><![CDATA[
|
||||||
@ -211,15 +211,15 @@
|
|||||||
<section2 topic='Removing a bookmark' anchor='removing-a-bookmark'>
|
<section2 topic='Removing a bookmark' anchor='removing-a-bookmark'>
|
||||||
<p>Removing a bookmark means retracting an existing item, identified by the bookmark's JID, form the '&namespace;' node.</p>
|
<p>Removing a bookmark means retracting an existing item, identified by the bookmark's JID, form the '&namespace;' node.</p>
|
||||||
<p>This implies that server support for the "delete-items" pubsub feature is REQUIRED.</p>
|
<p>This implies that server support for the "delete-items" pubsub feature is REQUIRED.</p>
|
||||||
<p>A 'notify' attribute SHOULD be included on the <retract/> element in order to inform other online clients of the deletion.</p>
|
<p>A 'notify' attribute SHOULD be included on the <retract/> element in order to inform other online clients of the deletion.</p>
|
||||||
|
|
||||||
<example caption='Client removes a new bookmark'><![CDATA[
|
<example caption='Client removes a new bookmark'><![CDATA[
|
||||||
<iq from='juliet@capulet.lit/balcony' type='set' id='remove-bookmark1'>
|
<iq from='juliet@capulet.lit/balcony' type='set' id='remove-bookmark1'>
|
||||||
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
|
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
|
||||||
<retract node='urn:xmpp:bookmarks:0' notify='true'>
|
<retract node='urn:xmpp:bookmarks:0' notify='true'>
|
||||||
<item id='theplay@conference.shakespeare.lit'/>
|
<item id='theplay@conference.shakespeare.lit'/>
|
||||||
</retract>
|
</retract>
|
||||||
</pubsub>
|
</pubsub>
|
||||||
</iq>
|
</iq>
|
||||||
]]></example>
|
]]></example>
|
||||||
<example caption='Server acknowledges successful retraction'><![CDATA[
|
<example caption='Server acknowledges successful retraction'><![CDATA[
|
||||||
@ -249,7 +249,7 @@
|
|||||||
</iq>
|
</iq>
|
||||||
]]></example>
|
]]></example>
|
||||||
|
|
||||||
<p>On the other hand, if the 'autojoin' attribute is absent or false, or when the event is a retract notification, the client MUST leave the room.</p>
|
<p>On the other hand, if the 'autojoin' attribute is absent or false, or when the event is a retract notification, the client MUST leave the room.</p>
|
||||||
|
|
||||||
<example caption='Client receives a bookmark retraction notification'><![CDATA[
|
<example caption='Client receives a bookmark retraction notification'><![CDATA[
|
||||||
<message from='juliet@capulet.lit' to='juliet@capulet.lit/balcony' type='headline' id='removed-room1'>
|
<message from='juliet@capulet.lit' to='juliet@capulet.lit/balcony' type='headline' id='removed-room1'>
|
||||||
|
Loading…
Reference in New Issue
Block a user