1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-24 10:12:19 -05:00
This commit is contained in:
Peter Saint-Andre 2012-05-09 11:50:23 -06:00
parent 3863423fd8
commit 5962e92667

View File

@ -25,10 +25,10 @@
&hildjj; &hildjj;
&stpeter; &stpeter;
<revision> <revision>
<version>1.2rc3</version> <version>1.2rc4</version>
<date>2012-05-09</date> <date>2012-05-09</date>
<initials>psa</initials> <initials>psa</initials>
<remark>Removed mandates about x- prefix in accordance with IETF recommendations.</remark> <remark>Removed mandates about x- prefix in accordance with IETF BCP, and added more specific recommendations for naming of fields in XSF and non-XSF forms.</remark>
</revision> </revision>
<revision> <revision>
<version>1.1</version> <version>1.1</version>
@ -103,6 +103,7 @@
</ol> </ol>
<p>For FORM_TYPEs that are not registered with the XMPP Registrar, the field name SHALL follow the extension fules described below and the field typically will not be registered with the XMPP Registrar.</p> <p>For FORM_TYPEs that are not registered with the XMPP Registrar, the field name SHALL follow the extension fules described below and the field typically will not be registered with the XMPP Registrar.</p>
<p>The "namespace" of a field is assumed to be inherited from the FORM_TYPE. When an organization or project defines a field that is used in the context of a FORM_TYPE it does not manage (e.g., a non-XSF field contained in a form whose FORM_TYPE is managed by the XSF, or a third-party field contained in a form whose FORM_TYPE is managed by some other organization), the name of the field MUST be namespaced with a URI controlled by the extending organization or project, where the namespacing mechanism MUST be &clark;, e.g., a field name of "{http://example.com/pubsub}time_restrictions".</p> <p>The "namespace" of a field is assumed to be inherited from the FORM_TYPE. When an organization or project defines a field that is used in the context of a FORM_TYPE it does not manage (e.g., a non-XSF field contained in a form whose FORM_TYPE is managed by the XSF, or a third-party field contained in a form whose FORM_TYPE is managed by some other organization), the name of the field MUST be namespaced with a URI controlled by the extending organization or project, where the namespacing mechanism MUST be &clark;, e.g., a field name of "{http://example.com/pubsub}time_restrictions".</p>
<p>For reasons that are lost in the mists of time, some XMPP extension protocols produced by the XSF, such as &xep0045; and &xep0060;, prefix their field names with strings like "muc#" and "pubsub#". There is no good reason to apply that convention to new XSF extensions. Indeed, there is even no good reason to apply that convention to the names of new fields defined by the XSF for those existing XSF extensions; however, the practice is harmless for those existing extensions (since a string such as "{http://jabber.org/protocol/pubsub#subscribe_authorization}pubsub#subscriber_jid" can be considered equivalent to a string such as "pubsub#subscriber_jid"), and this document does not actively recommend deprecating the convention.</p>
<p class='box'>Note: Older versions of this specification mandated that unregistered field names had to begin with the prefix "x-". In accordance with &xdash;, that mandate has been removed. However, existing "x-" field names are acceptable and can be registered with the XMPP Registrar as described above.</p> <p class='box'>Note: Older versions of this specification mandated that unregistered field names had to begin with the prefix "x-". In accordance with &xdash;, that mandate has been removed. However, existing "x-" field names are acceptable and can be registered with the XMPP Registrar as described above.</p>
</section2> </section2>
<section2 topic='Field Values' anchor='approach-fieldvalues'> <section2 topic='Field Values' anchor='approach-fieldvalues'>
@ -148,7 +149,7 @@
click the OK button. To deny the request, click the click the OK button. To deny the request, click the
cancel button.</instructions> cancel button.</instructions>
<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#subscribe_authorization</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>