1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-23 17:52:15 -05:00

harmony with XEP-0060 for examples

git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@2984 4b5297f7-1745-476d-ba37-a9c6900126ab
This commit is contained in:
Peter Saint-Andre 2009-04-05 17:19:29 +00:00
parent e97abf1bf1
commit 76458a46cd

View File

@ -132,7 +132,7 @@
]]></example> ]]></example>
</section2> </section2>
<section2 topic='Correctly Specified FORM_TYPE' anchor='usecases-correct'> <section2 topic='Correctly Specified FORM_TYPE' anchor='usecases-correct'>
<p>In the following example, the FORM_TYPE is 'http://jabber.org/protocol/pubsub', and all of the fields whose var names start with pubsub_ would be registered with the XMPP Registrar, associated with that namespace.</p> <p>In the following example, the FORM_TYPE is 'http://jabber.org/protocol/pubsub', and all of the fields whose var names start with "pubsub#" would be registered with the XMPP Registrar, associated with that namespace.</p>
<example caption='Message with FORM_TYPE'><![CDATA[ <example caption='Message with FORM_TYPE'><![CDATA[
<message to="node-owner" from="pubsub.jabber.org"> <message to="node-owner" from="pubsub.jabber.org">
@ -144,13 +144,10 @@
<field var="FORM_TYPE" type="hidden"> <field var="FORM_TYPE" type="hidden">
<value>http://jabber.org/protocol/pubsub</value> <value>http://jabber.org/protocol/pubsub</value>
</field> </field>
<field var="pubsub_node" type="hidden"> <field var="pubsub#node" type="hidden">
<value>generic/pgm-mp3-player</value> <value>generic/pgm-mp3-player</value>
</field> </field>
<field var="pubsub_node_label" type="fixed"> <field var="pubsub#subscriber_jid" type="jid-single"
<value>The pub-sub node is: generic/pgm-mp3-player</value>
</field>
<field var="pubsub_subscriber_jid" type="jid-single"
label="Jabber ID of Subscriber"> label="Jabber ID of Subscriber">
<value>sub1@foo.com</value> <value>sub1@foo.com</value>
</field> </field>