1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-12-21 15:18:51 -05:00
This commit is contained in:
stpeter 2011-07-06 09:21:30 -06:00
parent 89d1498907
commit b09d6a1f5a

View File

@ -27,6 +27,12 @@
<jid>me@matthewwild.co.uk</jid>
</author>
&ksmith;
<revision>
<version>0.2</version>
<date>2011-07-06</date>
<initials>psa</initials>
<remark><p>Corrected XML namespace to reflect official publication.</p></remark>
</revision>
<revision>
<version>0.1</version>
<date>2011-04-11</date>
@ -67,11 +73,11 @@
</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:tmp'.</p>
<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:tmp'>
<forwarded xmlns='urn:xmpp:forward:0'>
<delay xmlns='urn:xmpp:delay' stamp='2010-07-10T23:08:25Z'/>
<message to='romeo@montague.lit' from='juliet@capulet.lit/orchard' type='chat' id='0202197' xmlns='jabber:client'>
<body>Yet I should kill thee with much cherishing.</body>
@ -96,7 +102,7 @@
message. The format of this element is described in &xep0203;.</li>
<li>The namespace of the forwarded stanza MUST be preserved (this is typically 'jabber:client').
If no 'xmlns' is set for the stanza then as per XML namespacing rules it would inherit the
'urn:xmpp:forward:tmp' namespace, which is wrong.</li>
'urn:xmpp:forward:0' namespace, which is wrong.</li>
<li>When this extension is employed simply for a user to forward a given message to a contact, the
outer &lt;message/&gt; SHOULD contain a body (even if empty) and a receiving client should pay
particular attention to ensure it renders both the sender's text and the forwarded message
@ -115,8 +121,8 @@
<xs:schema
xmlns:xs='http://www.w3.org/2001/XMLSchema'
targetNamespace='urn:xmpp:forward:tmp'
xmlns='urn:xmpp:forward:tmp'
targetNamespace='urn:xmpp:forward:0'
xmlns='urn:xmpp:forward:0'
elementFormDefault='qualified'>
<xs:annotation>
@ -139,6 +145,6 @@
]]></code>
</section1>
<section1 topic='Acknowledgements' anchor='ack'>
<p>Thanks to Florian Zeitz for feedback.</p>
<p>Thanks to Matt Miller and Florian Zeitz for feedback.</p>
</section1>
</xep>