mirror of
https://github.com/moparisthebest/xeps
synced 2024-12-21 07:08:51 -05:00
XEP-0297: Fix indentation in examples.
This commit is contained in:
parent
6c6d66208e
commit
301b3ca24f
54
xep-0297.xml
54
xep-0297.xml
@ -91,35 +91,35 @@
|
||||
<section2 topic='Overview'>
|
||||
<p>Let us suppose that a Romeo receives a message from Juliet:</p>
|
||||
<example caption='Receiving a message'><![CDATA[
|
||||
<message from='juliet@capulet.lit/orchard'
|
||||
id='0202197'
|
||||
to='romeo@montague.lit'
|
||||
type='chat'>
|
||||
<body>Yet I should kill thee with much cherishing.</body>
|
||||
<mood xmlns='http://jabber.org/protocol/mood'>
|
||||
<amorous/>
|
||||
</mood>
|
||||
</message>
|
||||
<message from='juliet@capulet.lit/orchard'
|
||||
id='0202197'
|
||||
to='romeo@montague.lit'
|
||||
type='chat'>
|
||||
<body>Yet I should kill thee with much cherishing.</body>
|
||||
<mood xmlns='http://jabber.org/protocol/mood'>
|
||||
<amorous/>
|
||||
</mood>
|
||||
</message>
|
||||
]]></example>
|
||||
|
||||
<p>To forward this to Mercutio, Romeo would send a new message with a <forwarded/> payload of namespace 'urn:xmpp:forward:0'.</p>
|
||||
<example caption='Forwarding a message'><![CDATA[
|
||||
<message to='mercutio@verona.lit' from='romeo@montague.lit/orchard' type='chat' id='28gs'>
|
||||
<body>A most courteous exposition!</body>
|
||||
<forwarded xmlns='urn:xmpp:forward:0'>
|
||||
<delay xmlns='urn:xmpp:delay' stamp='2010-07-10T23:08:25Z'/>
|
||||
<message from='juliet@capulet.lit/orchard'
|
||||
id='0202197'
|
||||
to='romeo@montague.lit'
|
||||
type='chat'
|
||||
xmlns='jabber:client'>
|
||||
<body>Yet I should kill thee with much cherishing.</body>
|
||||
<mood xmlns='http://jabber.org/protocol/mood'>
|
||||
<amorous/>
|
||||
</mood>
|
||||
</message>
|
||||
</forwarded>
|
||||
</message>
|
||||
<message to='mercutio@verona.lit' from='romeo@montague.lit/orchard' type='chat' id='28gs'>
|
||||
<body>A most courteous exposition!</body>
|
||||
<forwarded xmlns='urn:xmpp:forward:0'>
|
||||
<delay xmlns='urn:xmpp:delay' stamp='2010-07-10T23:08:25Z'/>
|
||||
<message from='juliet@capulet.lit/orchard'
|
||||
id='0202197'
|
||||
to='romeo@montague.lit'
|
||||
type='chat'
|
||||
xmlns='jabber:client'>
|
||||
<body>Yet I should kill thee with much cherishing.</body>
|
||||
<mood xmlns='http://jabber.org/protocol/mood'>
|
||||
<amorous/>
|
||||
</mood>
|
||||
</message>
|
||||
</forwarded>
|
||||
</message>
|
||||
]]></example>
|
||||
</section2>
|
||||
<section2 topic='Business rules'>
|
||||
@ -149,9 +149,9 @@
|
||||
from='juliet@capulet.lit/balcony'
|
||||
id='info1'>
|
||||
<query xmlns='http://jabber.org/protocol/disco#info'>
|
||||
...
|
||||
...
|
||||
<feature var='urn:xmpp:forward:0'/>
|
||||
...
|
||||
...
|
||||
</query>
|
||||
</iq>]]></example>
|
||||
<p>Senders SHOULD NOT forward messages using this protocol to recipients that have not indicated support for it. However they may still
|
||||
|
Loading…
Reference in New Issue
Block a user