mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-23 17:52:15 -05:00
XEP-0422: Fix missing '=' in examples
This commit is contained in:
parent
fdc31d7007
commit
a0717dc0dd
@ -89,7 +89,7 @@
|
||||
<p>Where the payload being fastened needs top-level child elements of the stanza holding the fastening (e.g. if a message edit uses the top-level <body> child), these can be listed in <external> child elements of the <apply-to> element, in the same namespace. An <external> element has two attributes: the 'name' attribute MUST be included, and is the name of the top-level stanza child element; the 'element-namespace' attribute specifies the namespace of the element, or if absent indicates that the element is in the same namespace as the stanza (eliding the stream namespace in this way avoids issues when transporting fastenings across combinations of 'jabber:server' and 'jabber:client' streams.</p>
|
||||
<p>If "user2@chatservice.example" wanted to send an edit (using a fictional protocol) of a message they previously sent with origin-id 'origin-id-2', and the edit protocol used top-level <body> and <custom> elements, it would look like this.</p>
|
||||
<example caption="User2 applies"><![CDATA[
|
||||
<message id="4" from="user2@chatservice.example" to "chatroom@chatservice.example">
|
||||
<message id="4" from="user2@chatservice.example" to="chatroom@chatservice.example">
|
||||
<apply-to xmlns="urn:xmpp:fasten:0" id="origin-id-2">
|
||||
<external name='body'/>
|
||||
<external name='custom' element-namespace='urn:example:custom'/>
|
||||
@ -104,9 +104,9 @@
|
||||
<p>When an entity wishes to replace a fastening they have previously applied it does this by including an attribute 'replace' with value 'true' on the <apply-to> element. The child payload of the <apply-to> element then logically replaces a fastening previously applied by the sending entity with the same name and namespace.</p>
|
||||
<p>For example, if user2 wished to update the fastening from the first example they would send:</p>
|
||||
<example caption="User2 applies"><![CDATA[
|
||||
<message id="6" from="user2@chatservice.example" to "chatroom@chatservice.example">
|
||||
<message id="6" from="user2@chatservice.example" to="chatroom@chatservice.example">
|
||||
<apply-to xmlns="urn:xmpp:fasten:0" id="origin-id-1" replace='true'>
|
||||
<i-like-this xmlns='urn:example:lik'>Vary much</i-like-this>
|
||||
<i-like-this xmlns='urn:example:lik'>Very much</i-like-this>
|
||||
</apply-to>
|
||||
</message>
|
||||
]]></example>
|
||||
|
Loading…
Reference in New Issue
Block a user