Browse Source

XEP-0297: Fix indentation in examples.

hacx
Emmanuel Gil Peyrot 6 years ago committed by Sam Whited
parent
commit
301b3ca24f
  1. 54
      xep-0297.xml

54
xep-0297.xml

@ -91,35 +91,35 @@ @@ -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 &lt;forwarded/&gt; 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 @@ @@ -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…
Cancel
Save