1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-24 02:02:16 -05:00

corrected examples

git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@3963 4b5297f7-1745-476d-ba37-a9c6900126ab
This commit is contained in:
Peter Saint-Andre 2010-02-22 04:05:00 +00:00
parent 8e49f04f9f
commit 57f9d3df89

View File

@ -1948,7 +1948,6 @@ And by opposing end them?
<value>away</value> <value>away</value>
</field> </field>
</x> </x>
</options>
</default> </default>
</pubsub> </pubsub>
</iq> </iq>
@ -4385,7 +4384,7 @@ And by opposing end them?
<iq type='error' <iq type='error'
from='pubsub.shakespeare.lit' from='pubsub.shakespeare.lit'
to='hamlet@denmark.lit/elsinore' to='hamlet@denmark.lit/elsinore'
id='subman3'/> id='subman3'>
<error type='modify'> <error type='modify'>
<not-acceptable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/> <not-acceptable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
</error> </error>
@ -4597,7 +4596,7 @@ And by opposing end them?
<iq type='error' <iq type='error'
from='pubsub.shakespeare.lit' from='pubsub.shakespeare.lit'
to='hamlet@denmark.lit/elsinore' to='hamlet@denmark.lit/elsinore'
id='ent3'/> id='ent3'>
<error type='modify'> <error type='modify'>
<not-acceptable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/> <not-acceptable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
</error> </error>
@ -4716,7 +4715,7 @@ And by opposing end them?
<p>The server shall also query the identity+features for &lt;romeo@montague.lit&gt;:</p> <p>The server shall also query the identity+features for &lt;romeo@montague.lit&gt;:</p>
<example caption='Account server queries contact'><![CDATA[ <example caption='Account server queries contact'><![CDATA[
<iq from='juliet@capulet.lit' <iq from='juliet@capulet.lit'
to='romeo@montague.lit/orchard to='romeo@montague.lit/orchard'
type='get' type='get'
id='disco234'> id='disco234'>
<query xmlns='http://jabber.org/protocol/disco#info'/> <query xmlns='http://jabber.org/protocol/disco#info'/>
@ -5235,7 +5234,7 @@ And by opposing end them?
</section2> </section2>
<section2 topic='IQ Notifications' anchor='impl-iqnotify'> <section2 topic='IQ Notifications' anchor='impl-iqnotify'>
<p>If the pubsub service supports presence-based delivery and a node is configured to enable such delivery, the service MAY offer a value of "iq" for the "pubsub#notification_type" node configuration option. If this value is chosen, the service shall deliver notifications in XMPP IQ stanzas instead of in XMPP message stanzas. Because IQ stanzas are addressed to full JIDs &LOCALFULL;, if the service does not know the full JID of a given subscriber then it SHOULD NOT send an event notification at all (just as it would not for presence-based delivery via &MESSAGE; stanzas). The IQ stanza containing an event notification shall be of type "set", and in accordance with the semantics of the IQ stanza defined in <cite>RFC 3920</cite> the recipient MUST return either an IQ stanza of type "result" or an IQ stanza of type "error". An example follows</p> <p>If the pubsub service supports presence-based delivery and a node is configured to enable such delivery, the service MAY offer a value of "iq" for the "pubsub#notification_type" node configuration option. If this value is chosen, the service shall deliver notifications in XMPP IQ stanzas instead of in XMPP message stanzas. Because IQ stanzas are addressed to full JIDs &LOCALFULL;, if the service does not know the full JID of a given subscriber then it SHOULD NOT send an event notification at all (just as it would not for presence-based delivery via &MESSAGE; stanzas). The IQ stanza containing an event notification shall be of type "set", and in accordance with the semantics of the IQ stanza defined in <cite>RFC 3920</cite> the recipient MUST return either an IQ stanza of type "result" or an IQ stanza of type "error". An example follows.</p>
<example caption='Service Notifies Subscriber via IQ'><![CDATA[ <example caption='Service Notifies Subscriber via IQ'><![CDATA[
<iq from='pubsub.shakespeare.lit' <iq from='pubsub.shakespeare.lit'
id='jc9jn253' id='jc9jn253'