<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.jabbercn.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-cn">
		<id>http://wiki.jabbercn.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Xiong</id>
		<title>Jabber/XMPP中文翻译计划 - 用户贡献 [zh-cn]</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.jabbercn.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Xiong"/>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/%E7%89%B9%E6%AE%8A:%E7%94%A8%E6%88%B7%E8%B4%A1%E7%8C%AE/Xiong"/>
		<updated>2026-04-24T00:14:23Z</updated>
		<subtitle>用户贡献</subtitle>
		<generator>MediaWiki 1.18.2</generator>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-23T10:03:14Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
开发人员觉得[http://xmpp.org/extensions/xep-0030.html 发现服务]不能包含更多的信息. 例如, &amp;lt;identity/&amp;gt; 元素不包含'description'属性, 我们可以增加这个属性吗? 答案是可以,但现在不行,太迟了(因为XEP-0030是最终版). 因此,最好的办法是制定一个扩充机制.&lt;br /&gt;
&lt;br /&gt;
让我们参考一个示例. 一个[http://xmpp.org/extensions/xep-0045.html 多用户聊天室][http://xmpp.org/extensions/xep-0128.html#nt-id92624[2]] 可能想要获取更多的信息, 包括房间描述信息,房间主题,房间在线人数和房间所有者的JID.&lt;br /&gt;
&lt;br /&gt;
增加一个新属性的服务发现架构(即使真的是一个选项)不能解决的问题,因为一MUC的服务可能需要提供某些信息，而发布，[http://xmpp.org/extensions/xep-0060.html 订阅] [http://xmpp.org/extensions/xep-0128.html#nt-id92653[3]]服务可能需要提供其信息。 &lt;br /&gt;
&lt;br /&gt;
一个更好的解决办法是通过一个扩展的信息包括命名空间，提供了一种灵活的结构化数据格式定义合格。 谢天谢地，我们已经拥有了这样一个协议： [http://xmpp.org/extensions/xep-0004.html 数据表格] [http://xmpp.org/extensions/xep-0128.html#nt-id92681[4]]。 此外，我们拥有一个共同的方式来定义字段形式用于数据： [http://xmpp.org/extensions/xep-0068.html 数据表格现场标准化] [http://xmpp.org/extensions/xep-0128.html#nt-id92702 [5]]。 使用这些构建模块，我们可以定义为扩展服务发现结果的一些最佳做法。&lt;br /&gt;
&lt;br /&gt;
==建议==&lt;br /&gt;
如果一个实体的希望提供服务发现协议的扩展信息,出现在回复信息内,它应该这样做:每个独立的&amp;lt;field/&amp;gt;元素包含&amp;lt;value/&amp;gt;点数据信息子节点,所有&amp;lt;field/&amp;gt;元素包含在一个类型为&amp;quot;result&amp;quot;命名空间值为'jabber:x:data'的&amp;lt;x/&amp;gt;元素里.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;iq type=&amp;quot;result&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;query xmlns=&amp;quot;http://jabber.org/protocol/disco#info&amp;quot;&amp;gt;  &lt;br /&gt;
  ...&lt;br /&gt;
  &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt;&lt;br /&gt;
    &amp;lt;field var='[var-name]' label='[optional]'&amp;gt;&lt;br /&gt;
    &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt;&lt;br /&gt;
    &amp;lt;/field&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
  &amp;lt;/x&amp;gt;&lt;br /&gt;
&amp;lt;/query&amp;gt;&lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
如果数据字段被用来在由XMPP标准基金会核准的议定书时，他们应该符合相关的XMPP扩展协议规范并按照XEP - 0068定义的规则注册，返回信息中包含一个&amp;lt;field/&amp;gt;元素,其'var'属性为&amp;quot;FORM_TYPE&amp;quot;，其'type'属性的值为&amp;quot;hidden&amp;quot;。&lt;br /&gt;
&lt;br /&gt;
一个实体不能提供'http://jabber.org/protocol/disco#items' 命名空间相关子信息,因为服务发现的核心原则是：一个实体必须确定其身份,不界定的身份与子节点的实体.&lt;br /&gt;
&lt;br /&gt;
==示例==&lt;br /&gt;
===IM服务器===&lt;br /&gt;
&lt;br /&gt;
以下是即时消息服务器返回一个标准的服务查询的例子.&lt;br /&gt;
&lt;br /&gt;
'''例1. 实体查询信息服务器'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt;&lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result' from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===群===&lt;br /&gt;
&lt;br /&gt;
下面是在多用户房间里查询服务的例子.&lt;br /&gt;
&lt;br /&gt;
'''例2. 用户查询房间信息'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==实现说明==&lt;br /&gt;
&lt;br /&gt;
一般来说，XMPP标准基金会给每一个发现服务在注册登记时指定一个FORM_TYPE.此外，特定的应用可以定义应用程序以及具体FORM_TYPEs，一个实体可以有多个服务发现的身份（例如，一个XMPP服务器也可能作为一个发布，订阅服务）。因此，它是可能的（允许一个单一的服务发现的结果，发现含有多种服务扩展元素（可能高达2为每个标识元素））。然而，在实践中是不可能发现任何特定服务的结果将包含多个服务扩展元素的发现。&lt;br /&gt;
&lt;br /&gt;
==安全注意事项==&lt;br /&gt;
&lt;br /&gt;
应用程序应确网络上任何实体都能发现服务扩展信息.&lt;br /&gt;
&lt;br /&gt;
==IANA注意事项==&lt;br /&gt;
&lt;br /&gt;
这份文件并不需要与互联网分配编码机构(IANA) [6]互动.&lt;br /&gt;
&lt;br /&gt;
==XMPP协议注册事项==&lt;br /&gt;
&lt;br /&gt;
本文件并不需要的相互作用的XMPP注册 [ 7 ]，但是，最佳做法是在XMPP的登记FORM_TYPEs和field值.&lt;br /&gt;
&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
&lt;br /&gt;
系列：[http://xmpp.org/extensions/ XEP]&lt;br /&gt;
&lt;br /&gt;
序号：0128&lt;br /&gt;
&lt;br /&gt;
发布者：[http://xmpp.org/xsf/ XMPP标准基金会]&lt;br /&gt;
&lt;br /&gt;
状态：[http://www.xmpp.org/extensions/xep-0001.html#states-Final 终结版]&lt;br /&gt;
&lt;br /&gt;
类型：[http://www.xmpp.org/extensions/xep-0001.html#types-Standards%20Track 标准跟踪]&lt;br /&gt;
&lt;br /&gt;
版本：1.0&lt;br /&gt;
&lt;br /&gt;
最后更新：2004-10-20&lt;br /&gt;
&lt;br /&gt;
批准机构：[http://xmpp.org/council/ XMPP理事会]&lt;br /&gt;
&lt;br /&gt;
依赖标准：[[XEP-0004|XEP-0030|XEP-0068|XMPP Core]]&lt;br /&gt;
&lt;br /&gt;
取代: 无&lt;br /&gt;
&lt;br /&gt;
被替代标准：无&lt;br /&gt;
&lt;br /&gt;
缩略名：N/A&lt;br /&gt;
&lt;br /&gt;
原文控制： [http://svn.xmpp.org:18080/browse/XMPP/trunk/extensions/xep-0128.xml HTML] [http://svn.xmpp.org:18080//changelog/~rss/XMPP/trunk/extensions/xep-0128.xml/rss.xml RSS]&lt;br /&gt;
&lt;br /&gt;
本文的其它格式： [http://xmpp.org/extensions/xep-0030.xml XML] [http://xmpp.org/extensions/xep-0128.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Template:XEP附录CDEF}}&lt;br /&gt;
&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
结束&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-23T10:00:21Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
开发人员觉得[http://xmpp.org/extensions/xep-0030.html 发现服务]不能包含更多的信息. 例如, &amp;lt;identity/&amp;gt; 元素不包含'description'属性, 我们可以增加这个属性吗? 答案是可以,但现在不行,太迟了(因为XEP-0030是最终版). 因此,最好的办法是制定一个扩充机制.&lt;br /&gt;
&lt;br /&gt;
让我们参考一个示例. 一个[http://xmpp.org/extensions/xep-0045.html 多用户聊天室][http://xmpp.org/extensions/xep-0128.html#nt-id92624[2]] 可能想要获取更多的信息, 包括房间描述信息,房间主题,房间在线人数和房间所有者的JID.&lt;br /&gt;
&lt;br /&gt;
增加一个新属性的服务发现架构(即使真的是一个选项)不能解决的问题,因为一MUC的服务可能需要提供某些信息，而发布，[http://xmpp.org/extensions/xep-0060.html 订阅] [http://xmpp.org/extensions/xep-0128.html#nt-id92653[3]]服务可能需要提供其信息。 &lt;br /&gt;
&lt;br /&gt;
一个更好的解决办法是通过一个扩展的信息包括命名空间，提供了一种灵活的结构化数据格式定义合格。 谢天谢地，我们已经拥有了这样一个协议： [http://xmpp.org/extensions/xep-0004.html 数据表格] [http://xmpp.org/extensions/xep-0128.html#nt-id92681[4]]。 此外，我们拥有一个共同的方式来定义字段形式用于数据： [http://xmpp.org/extensions/xep-0068.html 数据表格现场标准化] [http://xmpp.org/extensions/xep-0128.html#nt-id92702 [5]]。 使用这些构建模块，我们可以定义为扩展服务发现结果的一些最佳做法。&lt;br /&gt;
&lt;br /&gt;
==建议==&lt;br /&gt;
如果一个实体的希望提供服务发现协议的扩展信息,出现在回复信息内,它应该这样做:每个独立的&amp;lt;field/&amp;gt;元素包含&amp;lt;value/&amp;gt;点数据信息子节点,所有&amp;lt;field/&amp;gt;元素包含在一个类型为&amp;quot;result&amp;quot;命名空间值为'jabber:x:data'的&amp;lt;x/&amp;gt;元素里.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type=&amp;quot;result&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;query xmlns=&amp;quot;http://jabber.org/protocol/disco#info&amp;quot;&amp;gt;  &lt;br /&gt;
  ...&lt;br /&gt;
  &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt;&lt;br /&gt;
    &amp;lt;field var='[var-name]' label='[optional]'&amp;gt;&lt;br /&gt;
    &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt;&lt;br /&gt;
    &amp;lt;/field&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
  &amp;lt;/x&amp;gt;&lt;br /&gt;
&amp;lt;/query&amp;gt;&lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
如果数据字段被用来在由XMPP标准基金会核准的议定书时，他们应该符合相关的XMPP扩展协议规范并按照XEP - 0068定义的规则注册，返回信息中包含一个&amp;lt;field/&amp;gt;元素,其'var'属性为&amp;quot;FORM_TYPE&amp;quot;，其'type'属性的值为&amp;quot;hidden&amp;quot;。&lt;br /&gt;
&lt;br /&gt;
一个实体不能提供'http://jabber.org/protocol/disco#items' 命名空间相关子信息,因为服务发现的核心原则是：一个实体必须确定其身份,不界定的身份与子节点的实体.&lt;br /&gt;
&lt;br /&gt;
==示例==&lt;br /&gt;
===IM服务器===&lt;br /&gt;
&lt;br /&gt;
以下是即时消息服务器返回一个标准的服务查询的例子.&lt;br /&gt;
&lt;br /&gt;
'''例1. 实体查询信息服务器'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt;&lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===群===&lt;br /&gt;
&lt;br /&gt;
下面是在多用户房间里查询服务的例子.&lt;br /&gt;
&lt;br /&gt;
'''例2. 用户查询房间信息'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==实现说明==&lt;br /&gt;
&lt;br /&gt;
一般来说，XMPP标准基金会给每一个发现服务在注册登记时指定一个FORM_TYPE.此外，特定的应用可以定义应用程序以及具体FORM_TYPEs，一个实体可以有多个服务发现的身份（例如，一个XMPP服务器也可能作为一个发布，订阅服务）。因此，它是可能的（允许一个单一的服务发现的结果，发现含有多种服务扩展元素（可能高达2为每个标识元素））。然而，在实践中是不可能发现任何特定服务的结果将包含多个服务扩展元素的发现。&lt;br /&gt;
&lt;br /&gt;
==安全注意事项==&lt;br /&gt;
&lt;br /&gt;
应用程序应确网络上任何实体都能发现服务扩展信息.&lt;br /&gt;
&lt;br /&gt;
==IANA注意事项==&lt;br /&gt;
&lt;br /&gt;
这份文件并不需要与互联网分配编码机构(IANA) [6]互动.&lt;br /&gt;
&lt;br /&gt;
==XMPP协议注册事项==&lt;br /&gt;
&lt;br /&gt;
本文件并不需要的相互作用的XMPP注册 [ 7 ]，但是，最佳做法是在XMPP的登记FORM_TYPEs和field值.&lt;br /&gt;
&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
&lt;br /&gt;
系列：[http://xmpp.org/extensions/ XEP]&lt;br /&gt;
&lt;br /&gt;
序号：0128&lt;br /&gt;
&lt;br /&gt;
发布者：[http://xmpp.org/xsf/ XMPP标准基金会]&lt;br /&gt;
&lt;br /&gt;
状态：[http://www.xmpp.org/extensions/xep-0001.html#states-Final 终结版]&lt;br /&gt;
&lt;br /&gt;
类型：[http://www.xmpp.org/extensions/xep-0001.html#types-Standards%20Track 标准跟踪]&lt;br /&gt;
&lt;br /&gt;
版本：1.0&lt;br /&gt;
&lt;br /&gt;
最后更新：2004-10-20&lt;br /&gt;
&lt;br /&gt;
批准机构：[http://xmpp.org/council/ XMPP理事会]&lt;br /&gt;
&lt;br /&gt;
依赖标准：[[XEP-0004|XEP-0030|XEP-0068|XMPP Core]]&lt;br /&gt;
&lt;br /&gt;
取代: 无&lt;br /&gt;
&lt;br /&gt;
被替代标准：无&lt;br /&gt;
&lt;br /&gt;
缩略名：N/A&lt;br /&gt;
&lt;br /&gt;
原文控制： [http://svn.xmpp.org:18080/browse/XMPP/trunk/extensions/xep-0128.xml HTML] [http://svn.xmpp.org:18080//changelog/~rss/XMPP/trunk/extensions/xep-0128.xml/rss.xml RSS]&lt;br /&gt;
&lt;br /&gt;
本文的其它格式： [http://xmpp.org/extensions/xep-0030.xml XML] [http://xmpp.org/extensions/xep-0128.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Template:XEP附录CDEF}}&lt;br /&gt;
&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
结束&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-23T09:52:54Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
开发人员觉得[http://xmpp.org/extensions/xep-0030.html 发现服务]不能包含更多的信息. 例如, &amp;lt;identity/&amp;gt; 元素不包含'description'属性, 我们可以增加这个属性吗? 答案是可以,但现在不行,太迟了(因为XEP-0030是最终版). 因此,最好的办法是制定一个扩充机制.&lt;br /&gt;
&lt;br /&gt;
让我们参考一个示例. 一个[http://xmpp.org/extensions/xep-0045.html 多用户聊天室][http://xmpp.org/extensions/xep-0128.html#nt-id92624[2]] 可能想要获取更多的信息, 包括房间描述信息,房间主题,房间在线人数和房间所有者的JID.&lt;br /&gt;
&lt;br /&gt;
增加一个新属性的服务发现架构(即使真的是一个选项)不能解决的问题,因为一MUC的服务可能需要提供某些信息，而发布，[http://xmpp.org/extensions/xep-0060.html 订阅] [http://xmpp.org/extensions/xep-0128.html#nt-id92653[3]]服务可能需要提供其信息。 &lt;br /&gt;
&lt;br /&gt;
一个更好的解决办法是通过一个扩展的信息包括命名空间，提供了一种灵活的结构化数据格式定义合格。 谢天谢地，我们已经拥有了这样一个协议： [http://xmpp.org/extensions/xep-0004.html 数据表格] [http://xmpp.org/extensions/xep-0128.html#nt-id92681[4]]。 此外，我们拥有一个共同的方式来定义字段形式用于数据： [http://xmpp.org/extensions/xep-0068.html 数据表格现场标准化] [http://xmpp.org/extensions/xep-0128.html#nt-id92702 [5]]。 使用这些构建模块，我们可以定义为扩展服务发现结果的一些最佳做法。&lt;br /&gt;
&lt;br /&gt;
==建议==&lt;br /&gt;
如果一个实体的希望提供服务发现协议的扩展信息,出现在回复信息内,它应该这样做:每个独立的&amp;lt;field/&amp;gt;元素包含&amp;lt;value/&amp;gt;点数据信息子节点,所有&amp;lt;field/&amp;gt;元素包含在一个类型为&amp;quot;result&amp;quot;命名空间值为'jabber:x:data'的&amp;lt;x/&amp;gt;元素里.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type=&amp;quot;result&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;query xmlns=&amp;quot;http://jabber.org/protocol/disco#info&amp;quot;&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt;&lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt;&lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt;&lt;br /&gt;
      &amp;lt;/field&amp;gt;&lt;br /&gt;
      ...&lt;br /&gt;
    &amp;lt;/x&amp;gt;&lt;br /&gt;
  &amp;lt;/query&amp;gt;&lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
如果数据字段被用来在由XMPP标准基金会核准的议定书时，他们应该符合相关的XMPP扩展协议规范并按照XEP - 0068定义的规则注册，返回信息中包含一个&amp;lt;field/&amp;gt;元素,其'var'属性为&amp;quot;FORM_TYPE&amp;quot;，其'type'属性的值为&amp;quot;hidden&amp;quot;。&lt;br /&gt;
&lt;br /&gt;
一个实体不能提供'http://jabber.org/protocol/disco#items' 命名空间相关子信息,因为服务发现的核心原则是：一个实体必须确定其身份,不界定的身份与子节点的实体.&lt;br /&gt;
&lt;br /&gt;
==示例==&lt;br /&gt;
===IM服务器===&lt;br /&gt;
&lt;br /&gt;
以下是即时消息服务器返回一个标准的服务查询的例子.&lt;br /&gt;
&lt;br /&gt;
'''例1. 实体查询信息服务器'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt;&lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===群===&lt;br /&gt;
&lt;br /&gt;
下面是在多用户房间里查询服务的例子.&lt;br /&gt;
&lt;br /&gt;
'''例2. 用户查询房间信息'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==实现说明==&lt;br /&gt;
&lt;br /&gt;
一般来说，XMPP标准基金会给每一个发现服务在注册登记时指定一个FORM_TYPE.此外，特定的应用可以定义应用程序以及具体FORM_TYPEs，一个实体可以有多个服务发现的身份（例如，一个XMPP服务器也可能作为一个发布，订阅服务）。因此，它是可能的（允许一个单一的服务发现的结果，发现含有多种服务扩展元素（可能高达2为每个标识元素））。然而，在实践中是不可能发现任何特定服务的结果将包含多个服务扩展元素的发现。&lt;br /&gt;
&lt;br /&gt;
==安全注意事项==&lt;br /&gt;
&lt;br /&gt;
应用程序应确网络上任何实体都能发现服务扩展信息.&lt;br /&gt;
&lt;br /&gt;
==IANA注意事项==&lt;br /&gt;
&lt;br /&gt;
这份文件并不需要与互联网分配编码机构(IANA) [6]互动.&lt;br /&gt;
&lt;br /&gt;
==XMPP协议注册事项==&lt;br /&gt;
&lt;br /&gt;
本文件并不需要的相互作用的XMPP注册 [ 7 ]，但是，最佳做法是在XMPP的登记FORM_TYPEs和field值.&lt;br /&gt;
&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
&lt;br /&gt;
系列：[http://xmpp.org/extensions/ XEP]&lt;br /&gt;
&lt;br /&gt;
序号：0128&lt;br /&gt;
&lt;br /&gt;
发布者：[http://xmpp.org/xsf/ XMPP标准基金会]&lt;br /&gt;
&lt;br /&gt;
状态：[http://www.xmpp.org/extensions/xep-0001.html#states-Final 终结版]&lt;br /&gt;
&lt;br /&gt;
类型：[http://www.xmpp.org/extensions/xep-0001.html#types-Standards%20Track 标准跟踪]&lt;br /&gt;
&lt;br /&gt;
版本：1.0&lt;br /&gt;
&lt;br /&gt;
最后更新：2004-10-20&lt;br /&gt;
&lt;br /&gt;
批准机构：[http://xmpp.org/council/ XMPP理事会]&lt;br /&gt;
&lt;br /&gt;
依赖标准：[[XEP-0004|XEP-0030|XEP-0068|XMPP Core]]&lt;br /&gt;
&lt;br /&gt;
取代: 无&lt;br /&gt;
&lt;br /&gt;
被替代标准：无&lt;br /&gt;
&lt;br /&gt;
缩略名：N/A&lt;br /&gt;
&lt;br /&gt;
原文控制： [http://svn.xmpp.org:18080/browse/XMPP/trunk/extensions/xep-0128.xml HTML] [http://svn.xmpp.org:18080//changelog/~rss/XMPP/trunk/extensions/xep-0128.xml/rss.xml RSS]&lt;br /&gt;
&lt;br /&gt;
本文的其它格式： [http://xmpp.org/extensions/xep-0030.xml XML] [http://xmpp.org/extensions/xep-0128.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Template:XEP附录CDEF}}&lt;br /&gt;
&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
结束&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-23T09:51:44Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
开发人员觉得[http://xmpp.org/extensions/xep-0030.html 发现服务]不能包含更多的信息. 例如, &amp;lt;identity/&amp;gt; 元素不包含'description'属性, 我们可以增加这个属性吗? 答案是可以,但现在不行,太迟了(因为XEP-0030是最终版). 因此,最好的办法是制定一个扩充机制.&lt;br /&gt;
&lt;br /&gt;
让我们参考一个示例. 一个[http://xmpp.org/extensions/xep-0045.html 多用户聊天室][http://xmpp.org/extensions/xep-0128.html#nt-id92624[2]] 可能想要获取更多的信息, 包括房间描述信息,房间主题,房间在线人数和房间所有者的JID.&lt;br /&gt;
&lt;br /&gt;
增加一个新属性的服务发现架构(即使真的是一个选项)不能解决的问题,因为一MUC的服务可能需要提供某些信息，而发布，[http://xmpp.org/extensions/xep-0060.html 订阅] [http://xmpp.org/extensions/xep-0128.html#nt-id92653[3]]服务可能需要提供其信息。 &lt;br /&gt;
&lt;br /&gt;
一个更好的解决办法是通过一个扩展的信息包括命名空间，提供了一种灵活的结构化数据格式定义合格。 谢天谢地，我们已经拥有了这样一个协议： [http://xmpp.org/extensions/xep-0004.html 数据表格] [http://xmpp.org/extensions/xep-0128.html#nt-id92681[4]]。 此外，我们拥有一个共同的方式来定义字段形式用于数据： [http://xmpp.org/extensions/xep-0068.html 数据表格现场标准化] [http://xmpp.org/extensions/xep-0128.html#nt-id92702 [5]]。 使用这些构建模块，我们可以定义为扩展服务发现结果的一些最佳做法。&lt;br /&gt;
&lt;br /&gt;
==建议==&lt;br /&gt;
如果一个实体的希望提供服务发现协议的扩展信息,出现在回复信息内,它应该这样做:每个独立的&amp;lt;field/&amp;gt;元素包含&amp;lt;value/&amp;gt;点数据信息子节点,所有&amp;lt;field/&amp;gt;元素包含在一个类型为&amp;quot;result&amp;quot;命名空间值为'jabber:x:data'的&amp;lt;x/&amp;gt;元素里.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type=&amp;quot;result&amp;quot;&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns=&amp;quot;http://jabber.org/protocol/disco#info&amp;quot;&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;node&amp;gt;&lt;br /&gt;
  &amp;lt;name&amp;gt;the name of the node&amp;lt;/name&amp;gt;&lt;br /&gt;
  &amp;lt;desc&amp;gt;a natural-language description of the node&amp;lt;/desc&amp;gt;&lt;br /&gt;
  &amp;lt;doc&amp;gt;the document (e.g., XEP) in which this node is specified&amp;lt;/doc&amp;gt;&lt;br /&gt;
&amp;lt;/node&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt;&lt;br /&gt;
&amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt;&lt;br /&gt;
  ...&lt;br /&gt;
  &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt;&lt;br /&gt;
    &amp;lt;field var='[var-name]' label='[optional]'&amp;gt;&lt;br /&gt;
      &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt;&lt;br /&gt;
    &amp;lt;/field&amp;gt;&lt;br /&gt;
    ..&lt;br /&gt;
  &amp;lt;/x&amp;gt;&lt;br /&gt;
&amp;lt;/query&amp;gt;&lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
如果数据字段被用来在由XMPP标准基金会核准的议定书时，他们应该符合相关的XMPP扩展协议规范并按照XEP - 0068定义的规则注册，返回信息中包含一个&amp;lt;field/&amp;gt;元素,其'var'属性为&amp;quot;FORM_TYPE&amp;quot;，其'type'属性的值为&amp;quot;hidden&amp;quot;。&lt;br /&gt;
&lt;br /&gt;
一个实体不能提供'http://jabber.org/protocol/disco#items' 命名空间相关子信息,因为服务发现的核心原则是：一个实体必须确定其身份,不界定的身份与子节点的实体.&lt;br /&gt;
&lt;br /&gt;
==示例==&lt;br /&gt;
===IM服务器===&lt;br /&gt;
&lt;br /&gt;
以下是即时消息服务器返回一个标准的服务查询的例子.&lt;br /&gt;
&lt;br /&gt;
'''例1. 实体查询信息服务器'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt;&lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===群===&lt;br /&gt;
&lt;br /&gt;
下面是在多用户房间里查询服务的例子.&lt;br /&gt;
&lt;br /&gt;
'''例2. 用户查询房间信息'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==实现说明==&lt;br /&gt;
&lt;br /&gt;
一般来说，XMPP标准基金会给每一个发现服务在注册登记时指定一个FORM_TYPE.此外，特定的应用可以定义应用程序以及具体FORM_TYPEs，一个实体可以有多个服务发现的身份（例如，一个XMPP服务器也可能作为一个发布，订阅服务）。因此，它是可能的（允许一个单一的服务发现的结果，发现含有多种服务扩展元素（可能高达2为每个标识元素））。然而，在实践中是不可能发现任何特定服务的结果将包含多个服务扩展元素的发现。&lt;br /&gt;
&lt;br /&gt;
==安全注意事项==&lt;br /&gt;
&lt;br /&gt;
应用程序应确网络上任何实体都能发现服务扩展信息.&lt;br /&gt;
&lt;br /&gt;
==IANA注意事项==&lt;br /&gt;
&lt;br /&gt;
这份文件并不需要与互联网分配编码机构(IANA) [6]互动.&lt;br /&gt;
&lt;br /&gt;
==XMPP协议注册事项==&lt;br /&gt;
&lt;br /&gt;
本文件并不需要的相互作用的XMPP注册 [ 7 ]，但是，最佳做法是在XMPP的登记FORM_TYPEs和field值.&lt;br /&gt;
&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
&lt;br /&gt;
系列：[http://xmpp.org/extensions/ XEP]&lt;br /&gt;
&lt;br /&gt;
序号：0128&lt;br /&gt;
&lt;br /&gt;
发布者：[http://xmpp.org/xsf/ XMPP标准基金会]&lt;br /&gt;
&lt;br /&gt;
状态：[http://www.xmpp.org/extensions/xep-0001.html#states-Final 终结版]&lt;br /&gt;
&lt;br /&gt;
类型：[http://www.xmpp.org/extensions/xep-0001.html#types-Standards%20Track 标准跟踪]&lt;br /&gt;
&lt;br /&gt;
版本：1.0&lt;br /&gt;
&lt;br /&gt;
最后更新：2004-10-20&lt;br /&gt;
&lt;br /&gt;
批准机构：[http://xmpp.org/council/ XMPP理事会]&lt;br /&gt;
&lt;br /&gt;
依赖标准：[[XEP-0004|XEP-0030|XEP-0068|XMPP Core]]&lt;br /&gt;
&lt;br /&gt;
取代: 无&lt;br /&gt;
&lt;br /&gt;
被替代标准：无&lt;br /&gt;
&lt;br /&gt;
缩略名：N/A&lt;br /&gt;
&lt;br /&gt;
原文控制： [http://svn.xmpp.org:18080/browse/XMPP/trunk/extensions/xep-0128.xml HTML] [http://svn.xmpp.org:18080//changelog/~rss/XMPP/trunk/extensions/xep-0128.xml/rss.xml RSS]&lt;br /&gt;
&lt;br /&gt;
本文的其它格式： [http://xmpp.org/extensions/xep-0030.xml XML] [http://xmpp.org/extensions/xep-0128.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Template:XEP附录CDEF}}&lt;br /&gt;
&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
结束&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-23T09:50:31Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
开发人员觉得[http://xmpp.org/extensions/xep-0030.html 发现服务]不能包含更多的信息. 例如, &amp;lt;identity/&amp;gt; 元素不包含'description'属性, 我们可以增加这个属性吗? 答案是可以,但现在不行,太迟了(因为XEP-0030是最终版). 因此,最好的办法是制定一个扩充机制.&lt;br /&gt;
&lt;br /&gt;
让我们参考一个示例. 一个[http://xmpp.org/extensions/xep-0045.html 多用户聊天室][http://xmpp.org/extensions/xep-0128.html#nt-id92624[2]] 可能想要获取更多的信息, 包括房间描述信息,房间主题,房间在线人数和房间所有者的JID.&lt;br /&gt;
&lt;br /&gt;
增加一个新属性的服务发现架构(即使真的是一个选项)不能解决的问题,因为一MUC的服务可能需要提供某些信息，而发布，[http://xmpp.org/extensions/xep-0060.html 订阅] [http://xmpp.org/extensions/xep-0128.html#nt-id92653[3]]服务可能需要提供其信息。 &lt;br /&gt;
&lt;br /&gt;
一个更好的解决办法是通过一个扩展的信息包括命名空间，提供了一种灵活的结构化数据格式定义合格。 谢天谢地，我们已经拥有了这样一个协议： [http://xmpp.org/extensions/xep-0004.html 数据表格] [http://xmpp.org/extensions/xep-0128.html#nt-id92681[4]]。 此外，我们拥有一个共同的方式来定义字段形式用于数据： [http://xmpp.org/extensions/xep-0068.html 数据表格现场标准化] [http://xmpp.org/extensions/xep-0128.html#nt-id92702 [5]]。 使用这些构建模块，我们可以定义为扩展服务发现结果的一些最佳做法。&lt;br /&gt;
&lt;br /&gt;
==建议==&lt;br /&gt;
如果一个实体的希望提供服务发现协议的扩展信息,出现在回复信息内,它应该这样做:每个独立的&amp;lt;field/&amp;gt;元素包含&amp;lt;value/&amp;gt;点数据信息子节点,所有&amp;lt;field/&amp;gt;元素包含在一个类型为&amp;quot;result&amp;quot;命名空间值为'jabber:x:data'的&amp;lt;x/&amp;gt;元素里.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type=&amp;quot;result&amp;quot;&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns=&amp;quot;http://jabber.org/protocol/disco#info&amp;quot;&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt;&lt;br /&gt;
&amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt;&lt;br /&gt;
  ...&lt;br /&gt;
  &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt;&lt;br /&gt;
    &amp;lt;field var='[var-name]' label='[optional]'&amp;gt;&lt;br /&gt;
      &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt;&lt;br /&gt;
    &amp;lt;/field&amp;gt;&lt;br /&gt;
    ..&lt;br /&gt;
  &amp;lt;/x&amp;gt;&lt;br /&gt;
&amp;lt;/query&amp;gt;&lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;node&amp;gt;&lt;br /&gt;
  &amp;lt;name&amp;gt;the name of the node&amp;lt;/name&amp;gt;&lt;br /&gt;
  &amp;lt;desc&amp;gt;a natural-language description of the node&amp;lt;/desc&amp;gt;&lt;br /&gt;
  &amp;lt;doc&amp;gt;the document (e.g., XEP) in which this node is specified&amp;lt;/doc&amp;gt;&lt;br /&gt;
&amp;lt;/node&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
如果数据字段被用来在由XMPP标准基金会核准的议定书时，他们应该符合相关的XMPP扩展协议规范并按照XEP - 0068定义的规则注册，返回信息中包含一个&amp;lt;field/&amp;gt;元素,其'var'属性为&amp;quot;FORM_TYPE&amp;quot;，其'type'属性的值为&amp;quot;hidden&amp;quot;。&lt;br /&gt;
&lt;br /&gt;
一个实体不能提供'http://jabber.org/protocol/disco#items' 命名空间相关子信息,因为服务发现的核心原则是：一个实体必须确定其身份,不界定的身份与子节点的实体.&lt;br /&gt;
&lt;br /&gt;
==示例==&lt;br /&gt;
===IM服务器===&lt;br /&gt;
&lt;br /&gt;
以下是即时消息服务器返回一个标准的服务查询的例子.&lt;br /&gt;
&lt;br /&gt;
'''例1. 实体查询信息服务器'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt;&lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===群===&lt;br /&gt;
&lt;br /&gt;
下面是在多用户房间里查询服务的例子.&lt;br /&gt;
&lt;br /&gt;
'''例2. 用户查询房间信息'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==实现说明==&lt;br /&gt;
&lt;br /&gt;
一般来说，XMPP标准基金会给每一个发现服务在注册登记时指定一个FORM_TYPE.此外，特定的应用可以定义应用程序以及具体FORM_TYPEs，一个实体可以有多个服务发现的身份（例如，一个XMPP服务器也可能作为一个发布，订阅服务）。因此，它是可能的（允许一个单一的服务发现的结果，发现含有多种服务扩展元素（可能高达2为每个标识元素））。然而，在实践中是不可能发现任何特定服务的结果将包含多个服务扩展元素的发现。&lt;br /&gt;
&lt;br /&gt;
==安全注意事项==&lt;br /&gt;
&lt;br /&gt;
应用程序应确网络上任何实体都能发现服务扩展信息.&lt;br /&gt;
&lt;br /&gt;
==IANA注意事项==&lt;br /&gt;
&lt;br /&gt;
这份文件并不需要与互联网分配编码机构(IANA) [6]互动.&lt;br /&gt;
&lt;br /&gt;
==XMPP协议注册事项==&lt;br /&gt;
&lt;br /&gt;
本文件并不需要的相互作用的XMPP注册 [ 7 ]，但是，最佳做法是在XMPP的登记FORM_TYPEs和field值.&lt;br /&gt;
&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
&lt;br /&gt;
系列：[http://xmpp.org/extensions/ XEP]&lt;br /&gt;
&lt;br /&gt;
序号：0128&lt;br /&gt;
&lt;br /&gt;
发布者：[http://xmpp.org/xsf/ XMPP标准基金会]&lt;br /&gt;
&lt;br /&gt;
状态：[http://www.xmpp.org/extensions/xep-0001.html#states-Final 终结版]&lt;br /&gt;
&lt;br /&gt;
类型：[http://www.xmpp.org/extensions/xep-0001.html#types-Standards%20Track 标准跟踪]&lt;br /&gt;
&lt;br /&gt;
版本：1.0&lt;br /&gt;
&lt;br /&gt;
最后更新：2004-10-20&lt;br /&gt;
&lt;br /&gt;
批准机构：[http://xmpp.org/council/ XMPP理事会]&lt;br /&gt;
&lt;br /&gt;
依赖标准：[[XEP-0004|XEP-0030|XEP-0068|XMPP Core]]&lt;br /&gt;
&lt;br /&gt;
取代: 无&lt;br /&gt;
&lt;br /&gt;
被替代标准：无&lt;br /&gt;
&lt;br /&gt;
缩略名：N/A&lt;br /&gt;
&lt;br /&gt;
原文控制： [http://svn.xmpp.org:18080/browse/XMPP/trunk/extensions/xep-0128.xml HTML] [http://svn.xmpp.org:18080//changelog/~rss/XMPP/trunk/extensions/xep-0128.xml/rss.xml RSS]&lt;br /&gt;
&lt;br /&gt;
本文的其它格式： [http://xmpp.org/extensions/xep-0030.xml XML] [http://xmpp.org/extensions/xep-0128.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Template:XEP附录CDEF}}&lt;br /&gt;
&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
结束&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-23T09:47:03Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
开发人员觉得[http://xmpp.org/extensions/xep-0030.html 发现服务]不能包含更多的信息. 例如, &amp;lt;identity/&amp;gt; 元素不包含'description'属性, 我们可以增加这个属性吗? 答案是可以,但现在不行,太迟了(因为XEP-0030是最终版). 因此,最好的办法是制定一个扩充机制.&lt;br /&gt;
&lt;br /&gt;
让我们参考一个示例. 一个[http://xmpp.org/extensions/xep-0045.html 多用户聊天室][http://xmpp.org/extensions/xep-0128.html#nt-id92624[2]] 可能想要获取更多的信息, 包括房间描述信息,房间主题,房间在线人数和房间所有者的JID.&lt;br /&gt;
&lt;br /&gt;
增加一个新属性的服务发现架构(即使真的是一个选项)不能解决的问题,因为一MUC的服务可能需要提供某些信息，而发布，[http://xmpp.org/extensions/xep-0060.html 订阅] [http://xmpp.org/extensions/xep-0128.html#nt-id92653[3]]服务可能需要提供其信息。 &lt;br /&gt;
&lt;br /&gt;
一个更好的解决办法是通过一个扩展的信息包括命名空间，提供了一种灵活的结构化数据格式定义合格。 谢天谢地，我们已经拥有了这样一个协议： [http://xmpp.org/extensions/xep-0004.html 数据表格] [http://xmpp.org/extensions/xep-0128.html#nt-id92681[4]]。 此外，我们拥有一个共同的方式来定义字段形式用于数据： [http://xmpp.org/extensions/xep-0068.html 数据表格现场标准化] [http://xmpp.org/extensions/xep-0128.html#nt-id92702 [5]]。 使用这些构建模块，我们可以定义为扩展服务发现结果的一些最佳做法。&lt;br /&gt;
&lt;br /&gt;
==建议==&lt;br /&gt;
如果一个实体的希望提供服务发现协议的扩展信息,出现在回复信息内,它应该这样做:每个独立的&amp;lt;field/&amp;gt;元素包含&amp;lt;value/&amp;gt;点数据信息子节点,所有&amp;lt;field/&amp;gt;元素包含在一个类型为&amp;quot;result&amp;quot;命名空间值为'jabber:x:data'的&amp;lt;x/&amp;gt;元素里.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type=&amp;quot;result&amp;quot;&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns=&amp;quot;http://jabber.org/protocol/disco#info&amp;quot;&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;node&amp;gt;&lt;br /&gt;
  &amp;lt;name&amp;gt;the name of the node&amp;lt;/name&amp;gt;&lt;br /&gt;
  &amp;lt;desc&amp;gt;a natural-language description of the node&amp;lt;/desc&amp;gt;&lt;br /&gt;
  &amp;lt;doc&amp;gt;the document (e.g., XEP) in which this node is specified&amp;lt;/doc&amp;gt;&lt;br /&gt;
&amp;lt;/node&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
如果数据字段被用来在由XMPP标准基金会核准的议定书时，他们应该符合相关的XMPP扩展协议规范并按照XEP - 0068定义的规则注册，返回信息中包含一个&amp;lt;field/&amp;gt;元素,其'var'属性为&amp;quot;FORM_TYPE&amp;quot;，其'type'属性的值为&amp;quot;hidden&amp;quot;。&lt;br /&gt;
&lt;br /&gt;
一个实体不能提供'http://jabber.org/protocol/disco#items' 命名空间相关子信息,因为服务发现的核心原则是：一个实体必须确定其身份,不界定的身份与子节点的实体.&lt;br /&gt;
&lt;br /&gt;
==示例==&lt;br /&gt;
===IM服务器===&lt;br /&gt;
&lt;br /&gt;
以下是即时消息服务器返回一个标准的服务查询的例子.&lt;br /&gt;
&lt;br /&gt;
'''例1. 实体查询信息服务器'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt;&lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===群===&lt;br /&gt;
&lt;br /&gt;
下面是在多用户房间里查询服务的例子.&lt;br /&gt;
&lt;br /&gt;
'''例2. 用户查询房间信息'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==实现说明==&lt;br /&gt;
&lt;br /&gt;
一般来说，XMPP标准基金会给每一个发现服务在注册登记时指定一个FORM_TYPE.此外，特定的应用可以定义应用程序以及具体FORM_TYPEs，一个实体可以有多个服务发现的身份（例如，一个XMPP服务器也可能作为一个发布，订阅服务）。因此，它是可能的（允许一个单一的服务发现的结果，发现含有多种服务扩展元素（可能高达2为每个标识元素））。然而，在实践中是不可能发现任何特定服务的结果将包含多个服务扩展元素的发现。&lt;br /&gt;
&lt;br /&gt;
==安全注意事项==&lt;br /&gt;
&lt;br /&gt;
应用程序应确网络上任何实体都能发现服务扩展信息.&lt;br /&gt;
&lt;br /&gt;
==IANA注意事项==&lt;br /&gt;
&lt;br /&gt;
这份文件并不需要与互联网分配编码机构(IANA) [6]互动.&lt;br /&gt;
&lt;br /&gt;
==XMPP协议注册事项==&lt;br /&gt;
&lt;br /&gt;
本文件并不需要的相互作用的XMPP注册 [ 7 ]，但是，最佳做法是在XMPP的登记FORM_TYPEs和field值.&lt;br /&gt;
&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
&lt;br /&gt;
系列：[http://xmpp.org/extensions/ XEP]&lt;br /&gt;
&lt;br /&gt;
序号：0128&lt;br /&gt;
&lt;br /&gt;
发布者：[http://xmpp.org/xsf/ XMPP标准基金会]&lt;br /&gt;
&lt;br /&gt;
状态：[http://www.xmpp.org/extensions/xep-0001.html#states-Final 终结版]&lt;br /&gt;
&lt;br /&gt;
类型：[http://www.xmpp.org/extensions/xep-0001.html#types-Standards%20Track 标准跟踪]&lt;br /&gt;
&lt;br /&gt;
版本：1.0&lt;br /&gt;
&lt;br /&gt;
最后更新：2004-10-20&lt;br /&gt;
&lt;br /&gt;
批准机构：[http://xmpp.org/council/ XMPP理事会]&lt;br /&gt;
&lt;br /&gt;
依赖标准：[[XEP-0004|XEP-0030|XEP-0068|XMPP Core]]&lt;br /&gt;
&lt;br /&gt;
取代: 无&lt;br /&gt;
&lt;br /&gt;
被替代标准：无&lt;br /&gt;
&lt;br /&gt;
缩略名：N/A&lt;br /&gt;
&lt;br /&gt;
原文控制： [http://svn.xmpp.org:18080/browse/XMPP/trunk/extensions/xep-0128.xml HTML] [http://svn.xmpp.org:18080//changelog/~rss/XMPP/trunk/extensions/xep-0128.xml/rss.xml RSS]&lt;br /&gt;
&lt;br /&gt;
本文的其它格式： [http://xmpp.org/extensions/xep-0030.xml XML] [http://xmpp.org/extensions/xep-0128.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Template:XEP附录CDEF}}&lt;br /&gt;
&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
结束&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-23T09:45:52Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
开发人员觉得[http://xmpp.org/extensions/xep-0030.html 发现服务]不能包含更多的信息. 例如, &amp;lt;identity/&amp;gt; 元素不包含'description'属性, 我们可以增加这个属性吗? 答案是可以,但现在不行,太迟了(因为XEP-0030是最终版). 因此,最好的办法是制定一个扩充机制.&lt;br /&gt;
&lt;br /&gt;
让我们参考一个示例. 一个[http://xmpp.org/extensions/xep-0045.html 多用户聊天室][http://xmpp.org/extensions/xep-0128.html#nt-id92624[2]] 可能想要获取更多的信息, 包括房间描述信息,房间主题,房间在线人数和房间所有者的JID.&lt;br /&gt;
&lt;br /&gt;
增加一个新属性的服务发现架构(即使真的是一个选项)不能解决的问题,因为一MUC的服务可能需要提供某些信息，而发布，[http://xmpp.org/extensions/xep-0060.html 订阅] [http://xmpp.org/extensions/xep-0128.html#nt-id92653[3]]服务可能需要提供其信息。 &lt;br /&gt;
&lt;br /&gt;
一个更好的解决办法是通过一个扩展的信息包括命名空间，提供了一种灵活的结构化数据格式定义合格。 谢天谢地，我们已经拥有了这样一个协议： [http://xmpp.org/extensions/xep-0004.html 数据表格] [http://xmpp.org/extensions/xep-0128.html#nt-id92681[4]]。 此外，我们拥有一个共同的方式来定义字段形式用于数据： [http://xmpp.org/extensions/xep-0068.html 数据表格现场标准化] [http://xmpp.org/extensions/xep-0128.html#nt-id92702 [5]]。 使用这些构建模块，我们可以定义为扩展服务发现结果的一些最佳做法。&lt;br /&gt;
&lt;br /&gt;
==建议==&lt;br /&gt;
如果一个实体的希望提供服务发现协议的扩展信息,出现在回复信息内,它应该这样做:每个独立的&amp;lt;field/&amp;gt;元素包含&amp;lt;value/&amp;gt;点数据信息子节点,所有&amp;lt;field/&amp;gt;元素包含在一个类型为&amp;quot;result&amp;quot;命名空间值为'jabber:x:data'的&amp;lt;x/&amp;gt;元素里.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;node&amp;gt;&lt;br /&gt;
  &amp;lt;name&amp;gt;the name of the node&amp;lt;/name&amp;gt;&lt;br /&gt;
  &amp;lt;desc&amp;gt;a natural-language description of the node&amp;lt;/desc&amp;gt;&lt;br /&gt;
  &amp;lt;doc&amp;gt;the document (e.g., XEP) in which this node is specified&amp;lt;/doc&amp;gt;&lt;br /&gt;
&amp;lt;/node&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
如果数据字段被用来在由XMPP标准基金会核准的议定书时，他们应该符合相关的XMPP扩展协议规范并按照XEP - 0068定义的规则注册，返回信息中包含一个&amp;lt;field/&amp;gt;元素,其'var'属性为&amp;quot;FORM_TYPE&amp;quot;，其'type'属性的值为&amp;quot;hidden&amp;quot;。&lt;br /&gt;
&lt;br /&gt;
一个实体不能提供'http://jabber.org/protocol/disco#items' 命名空间相关子信息,因为服务发现的核心原则是：一个实体必须确定其身份,不界定的身份与子节点的实体.&lt;br /&gt;
&lt;br /&gt;
==示例==&lt;br /&gt;
===IM服务器===&lt;br /&gt;
&lt;br /&gt;
以下是即时消息服务器返回一个标准的服务查询的例子.&lt;br /&gt;
&lt;br /&gt;
'''例1. 实体查询信息服务器'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt;&lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===群===&lt;br /&gt;
&lt;br /&gt;
下面是在多用户房间里查询服务的例子.&lt;br /&gt;
&lt;br /&gt;
'''例2. 用户查询房间信息'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==实现说明==&lt;br /&gt;
&lt;br /&gt;
一般来说，XMPP标准基金会给每一个发现服务在注册登记时指定一个FORM_TYPE.此外，特定的应用可以定义应用程序以及具体FORM_TYPEs，一个实体可以有多个服务发现的身份（例如，一个XMPP服务器也可能作为一个发布，订阅服务）。因此，它是可能的（允许一个单一的服务发现的结果，发现含有多种服务扩展元素（可能高达2为每个标识元素））。然而，在实践中是不可能发现任何特定服务的结果将包含多个服务扩展元素的发现。&lt;br /&gt;
&lt;br /&gt;
==安全注意事项==&lt;br /&gt;
&lt;br /&gt;
应用程序应确网络上任何实体都能发现服务扩展信息.&lt;br /&gt;
&lt;br /&gt;
==IANA注意事项==&lt;br /&gt;
&lt;br /&gt;
这份文件并不需要与互联网分配编码机构(IANA) [6]互动.&lt;br /&gt;
&lt;br /&gt;
==XMPP协议注册事项==&lt;br /&gt;
&lt;br /&gt;
本文件并不需要的相互作用的XMPP注册 [ 7 ]，但是，最佳做法是在XMPP的登记FORM_TYPEs和field值.&lt;br /&gt;
&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
&lt;br /&gt;
系列：[http://xmpp.org/extensions/ XEP]&lt;br /&gt;
&lt;br /&gt;
序号：0128&lt;br /&gt;
&lt;br /&gt;
发布者：[http://xmpp.org/xsf/ XMPP标准基金会]&lt;br /&gt;
&lt;br /&gt;
状态：[http://www.xmpp.org/extensions/xep-0001.html#states-Final 终结版]&lt;br /&gt;
&lt;br /&gt;
类型：[http://www.xmpp.org/extensions/xep-0001.html#types-Standards%20Track 标准跟踪]&lt;br /&gt;
&lt;br /&gt;
版本：1.0&lt;br /&gt;
&lt;br /&gt;
最后更新：2004-10-20&lt;br /&gt;
&lt;br /&gt;
批准机构：[http://xmpp.org/council/ XMPP理事会]&lt;br /&gt;
&lt;br /&gt;
依赖标准：[[XEP-0004|XEP-0030|XEP-0068|XMPP Core]]&lt;br /&gt;
&lt;br /&gt;
取代: 无&lt;br /&gt;
&lt;br /&gt;
被替代标准：无&lt;br /&gt;
&lt;br /&gt;
缩略名：N/A&lt;br /&gt;
&lt;br /&gt;
原文控制： [http://svn.xmpp.org:18080/browse/XMPP/trunk/extensions/xep-0128.xml HTML] [http://svn.xmpp.org:18080//changelog/~rss/XMPP/trunk/extensions/xep-0128.xml/rss.xml RSS]&lt;br /&gt;
&lt;br /&gt;
本文的其它格式： [http://xmpp.org/extensions/xep-0030.xml XML] [http://xmpp.org/extensions/xep-0128.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Template:XEP附录CDEF}}&lt;br /&gt;
&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
结束&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-23T09:44:35Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
开发人员觉得[http://xmpp.org/extensions/xep-0030.html 发现服务]不能包含更多的信息. 例如, &amp;lt;identity/&amp;gt; 元素不包含'description'属性, 我们可以增加这个属性吗? 答案是可以,但现在不行,太迟了(因为XEP-0030是最终版). 因此,最好的办法是制定一个扩充机制.&lt;br /&gt;
&lt;br /&gt;
让我们参考一个示例. 一个[http://xmpp.org/extensions/xep-0045.html 多用户聊天室][http://xmpp.org/extensions/xep-0128.html#nt-id92624[2]] 可能想要获取更多的信息, 包括房间描述信息,房间主题,房间在线人数和房间所有者的JID.&lt;br /&gt;
&lt;br /&gt;
增加一个新属性的服务发现架构(即使真的是一个选项)不能解决的问题,因为一MUC的服务可能需要提供某些信息，而发布，[http://xmpp.org/extensions/xep-0060.html 订阅] [http://xmpp.org/extensions/xep-0128.html#nt-id92653[3]]服务可能需要提供其信息。 &lt;br /&gt;
&lt;br /&gt;
一个更好的解决办法是通过一个扩展的信息包括命名空间，提供了一种灵活的结构化数据格式定义合格。 谢天谢地，我们已经拥有了这样一个协议： [http://xmpp.org/extensions/xep-0004.html 数据表格] [http://xmpp.org/extensions/xep-0128.html#nt-id92681[4]]。 此外，我们拥有一个共同的方式来定义字段形式用于数据： [http://xmpp.org/extensions/xep-0068.html 数据表格现场标准化] [http://xmpp.org/extensions/xep-0128.html#nt-id92702 [5]]。 使用这些构建模块，我们可以定义为扩展服务发现结果的一些最佳做法。&lt;br /&gt;
&lt;br /&gt;
==建议==&lt;br /&gt;
如果一个实体的希望提供服务发现协议的扩展信息,出现在回复信息内,它应该这样做:每个独立的&amp;lt;field/&amp;gt;元素包含&amp;lt;value/&amp;gt;点数据信息子节点,所有&amp;lt;field/&amp;gt;元素包含在一个类型为&amp;quot;result&amp;quot;命名空间值为'jabber:x:data'的&amp;lt;x/&amp;gt;元素里.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
如果数据字段被用来在由XMPP标准基金会核准的议定书时，他们应该符合相关的XMPP扩展协议规范并按照XEP - 0068定义的规则注册，返回信息中包含一个&amp;lt;field/&amp;gt;元素,其'var'属性为&amp;quot;FORM_TYPE&amp;quot;，其'type'属性的值为&amp;quot;hidden&amp;quot;。&lt;br /&gt;
&lt;br /&gt;
一个实体不能提供'http://jabber.org/protocol/disco#items' 命名空间相关子信息,因为服务发现的核心原则是：一个实体必须确定其身份,不界定的身份与子节点的实体.&lt;br /&gt;
&lt;br /&gt;
==示例==&lt;br /&gt;
===IM服务器===&lt;br /&gt;
&lt;br /&gt;
以下是即时消息服务器返回一个标准的服务查询的例子.&lt;br /&gt;
&lt;br /&gt;
'''例1. 实体查询信息服务器'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt;&lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===群===&lt;br /&gt;
&lt;br /&gt;
下面是在多用户房间里查询服务的例子.&lt;br /&gt;
&lt;br /&gt;
'''例2. 用户查询房间信息'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==实现说明==&lt;br /&gt;
&lt;br /&gt;
一般来说，XMPP标准基金会给每一个发现服务在注册登记时指定一个FORM_TYPE.此外，特定的应用可以定义应用程序以及具体FORM_TYPEs，一个实体可以有多个服务发现的身份（例如，一个XMPP服务器也可能作为一个发布，订阅服务）。因此，它是可能的（允许一个单一的服务发现的结果，发现含有多种服务扩展元素（可能高达2为每个标识元素））。然而，在实践中是不可能发现任何特定服务的结果将包含多个服务扩展元素的发现。&lt;br /&gt;
&lt;br /&gt;
==安全注意事项==&lt;br /&gt;
&lt;br /&gt;
应用程序应确网络上任何实体都能发现服务扩展信息.&lt;br /&gt;
&lt;br /&gt;
==IANA注意事项==&lt;br /&gt;
&lt;br /&gt;
这份文件并不需要与互联网分配编码机构(IANA) [6]互动.&lt;br /&gt;
&lt;br /&gt;
==XMPP协议注册事项==&lt;br /&gt;
&lt;br /&gt;
本文件并不需要的相互作用的XMPP注册 [ 7 ]，但是，最佳做法是在XMPP的登记FORM_TYPEs和field值.&lt;br /&gt;
&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
&lt;br /&gt;
系列：[http://xmpp.org/extensions/ XEP]&lt;br /&gt;
&lt;br /&gt;
序号：0128&lt;br /&gt;
&lt;br /&gt;
发布者：[http://xmpp.org/xsf/ XMPP标准基金会]&lt;br /&gt;
&lt;br /&gt;
状态：[http://www.xmpp.org/extensions/xep-0001.html#states-Final 终结版]&lt;br /&gt;
&lt;br /&gt;
类型：[http://www.xmpp.org/extensions/xep-0001.html#types-Standards%20Track 标准跟踪]&lt;br /&gt;
&lt;br /&gt;
版本：1.0&lt;br /&gt;
&lt;br /&gt;
最后更新：2004-10-20&lt;br /&gt;
&lt;br /&gt;
批准机构：[http://xmpp.org/council/ XMPP理事会]&lt;br /&gt;
&lt;br /&gt;
依赖标准：[[XEP-0004|XEP-0030|XEP-0068|XMPP Core]]&lt;br /&gt;
&lt;br /&gt;
取代: 无&lt;br /&gt;
&lt;br /&gt;
被替代标准：无&lt;br /&gt;
&lt;br /&gt;
缩略名：N/A&lt;br /&gt;
&lt;br /&gt;
原文控制： [http://svn.xmpp.org:18080/browse/XMPP/trunk/extensions/xep-0128.xml HTML] [http://svn.xmpp.org:18080//changelog/~rss/XMPP/trunk/extensions/xep-0128.xml/rss.xml RSS]&lt;br /&gt;
&lt;br /&gt;
本文的其它格式： [http://xmpp.org/extensions/xep-0030.xml XML] [http://xmpp.org/extensions/xep-0128.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Template:XEP附录CDEF}}&lt;br /&gt;
&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
结束&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-23T09:43:40Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: 清空页面&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-23T09:42:09Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
开发人员觉得[http://xmpp.org/extensions/xep-0030.html 发现服务]不能包含更多的信息. 例如, &amp;lt;identity/&amp;gt; 元素不包含'description'属性, 我们可以增加这个属性吗? 答案是可以,但现在不行,太迟了(因为XEP-0030是最终版). 因此,最好的办法是制定一个扩充机制.&lt;br /&gt;
&lt;br /&gt;
让我们参考一个示例. 一个[http://xmpp.org/extensions/xep-0045.html 多用户聊天室][http://xmpp.org/extensions/xep-0128.html#nt-id92624[2]] 可能想要获取更多的信息, 包括房间描述信息,房间主题,房间在线人数和房间所有者的JID.&lt;br /&gt;
&lt;br /&gt;
增加一个新属性的服务发现架构(即使真的是一个选项)不能解决的问题,因为一MUC的服务可能需要提供某些信息，而发布，[http://xmpp.org/extensions/xep-0060.html 订阅] [http://xmpp.org/extensions/xep-0128.html#nt-id92653[3]]服务可能需要提供其信息。 &lt;br /&gt;
&lt;br /&gt;
一个更好的解决办法是通过一个扩展的信息包括命名空间，提供了一种灵活的结构化数据格式定义合格。 谢天谢地，我们已经拥有了这样一个协议： [http://xmpp.org/extensions/xep-0004.html 数据表格] [http://xmpp.org/extensions/xep-0128.html#nt-id92681[4]]。 此外，我们拥有一个共同的方式来定义字段形式用于数据： [http://xmpp.org/extensions/xep-0068.html 数据表格现场标准化] [http://xmpp.org/extensions/xep-0128.html#nt-id92702 [5]]。 使用这些构建模块，我们可以定义为扩展服务发现结果的一些最佳做法。&lt;br /&gt;
&lt;br /&gt;
==建议==&lt;br /&gt;
如果一个实体的希望提供服务发现协议的扩展信息,出现在回复信息内,它应该这样做:每个独立的&amp;lt;field/&amp;gt;元素包含&amp;lt;value/&amp;gt;点数据信息子节点,所有&amp;lt;field/&amp;gt;元素包含在一个类型为&amp;quot;result&amp;quot;命名空间值为'jabber:x:data'的&amp;lt;x/&amp;gt;元素里.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
如果数据字段被用来在由XMPP标准基金会核准的议定书时，他们应该符合相关的XMPP扩展协议规范并按照XEP - 0068定义的规则注册，返回信息中包含一个&amp;lt;field/&amp;gt;元素,其'var'属性为&amp;quot;FORM_TYPE&amp;quot;，其'type'属性的值为&amp;quot;hidden&amp;quot;。&lt;br /&gt;
&lt;br /&gt;
一个实体不能提供'http://jabber.org/protocol/disco#items' 命名空间相关子信息,因为服务发现的核心原则是：一个实体必须确定其身份,不界定的身份与子节点的实体.&lt;br /&gt;
&lt;br /&gt;
==示例==&lt;br /&gt;
===IM服务器===&lt;br /&gt;
&lt;br /&gt;
以下是即时消息服务器返回一个标准的服务查询的例子.&lt;br /&gt;
&lt;br /&gt;
'''例1. 实体查询信息服务器'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt;&lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===群===&lt;br /&gt;
&lt;br /&gt;
下面是在多用户房间里查询服务的例子.&lt;br /&gt;
&lt;br /&gt;
'''例2. 用户查询房间信息'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==实现说明==&lt;br /&gt;
&lt;br /&gt;
一般来说，XMPP标准基金会给每一个发现服务在注册登记时指定一个FORM_TYPE.此外，特定的应用可以定义应用程序以及具体FORM_TYPEs，一个实体可以有多个服务发现的身份（例如，一个XMPP服务器也可能作为一个发布，订阅服务）。因此，它是可能的（允许一个单一的服务发现的结果，发现含有多种服务扩展元素（可能高达2为每个标识元素））。然而，在实践中是不可能发现任何特定服务的结果将包含多个服务扩展元素的发现。&lt;br /&gt;
&lt;br /&gt;
==安全注意事项==&lt;br /&gt;
&lt;br /&gt;
应用程序应确网络上任何实体都能发现服务扩展信息.&lt;br /&gt;
&lt;br /&gt;
==IANA注意事项==&lt;br /&gt;
&lt;br /&gt;
这份文件并不需要与互联网分配编码机构(IANA) [6]互动.&lt;br /&gt;
&lt;br /&gt;
==XMPP协议注册事项==&lt;br /&gt;
&lt;br /&gt;
本文件并不需要的相互作用的XMPP注册 [ 7 ]，但是，最佳做法是在XMPP的登记FORM_TYPEs和field值.&lt;br /&gt;
&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
&lt;br /&gt;
系列：[http://xmpp.org/extensions/ XEP]&lt;br /&gt;
&lt;br /&gt;
序号：0128&lt;br /&gt;
&lt;br /&gt;
发布者：[http://xmpp.org/xsf/ XMPP标准基金会]&lt;br /&gt;
&lt;br /&gt;
状态：[http://www.xmpp.org/extensions/xep-0001.html#states-Final 终结版]&lt;br /&gt;
&lt;br /&gt;
类型：[http://www.xmpp.org/extensions/xep-0001.html#types-Standards%20Track 标准跟踪]&lt;br /&gt;
&lt;br /&gt;
版本：1.0&lt;br /&gt;
&lt;br /&gt;
最后更新：2004-10-20&lt;br /&gt;
&lt;br /&gt;
批准机构：[http://xmpp.org/council/ XMPP理事会]&lt;br /&gt;
&lt;br /&gt;
依赖标准：[[XEP-0004|XEP-0030|XEP-0068|XMPP Core]]&lt;br /&gt;
&lt;br /&gt;
取代: 无&lt;br /&gt;
&lt;br /&gt;
被替代标准：无&lt;br /&gt;
&lt;br /&gt;
缩略名：N/A&lt;br /&gt;
&lt;br /&gt;
原文控制： [http://svn.xmpp.org:18080/browse/XMPP/trunk/extensions/xep-0128.xml HTML] [http://svn.xmpp.org:18080//changelog/~rss/XMPP/trunk/extensions/xep-0128.xml/rss.xml RSS]&lt;br /&gt;
&lt;br /&gt;
本文的其它格式： [http://xmpp.org/extensions/xep-0030.xml XML] [http://xmpp.org/extensions/xep-0128.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Template:XEP附录CDEF}}&lt;br /&gt;
&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
END&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-23T09:37:09Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
开发人员觉得[http://xmpp.org/extensions/xep-0030.html 发现服务]不能包含更多的信息. 例如, &amp;lt;identity/&amp;gt; 元素不包含'description'属性, 我们可以增加这个属性吗? 答案是可以,但现在不行,太迟了(因为XEP-0030是最终版). 因此,最好的办法是制定一个扩充机制.&lt;br /&gt;
&lt;br /&gt;
让我们参考一个示例. 一个[http://xmpp.org/extensions/xep-0045.html 多用户聊天室][http://xmpp.org/extensions/xep-0128.html#nt-id92624[2]] 可能想要获取更多的信息, 包括房间描述信息,房间主题,房间在线人数和房间所有者的JID.&lt;br /&gt;
&lt;br /&gt;
增加一个新属性的服务发现架构(即使真的是一个选项)不能解决的问题,因为一MUC的服务可能需要提供某些信息，而发布，[http://xmpp.org/extensions/xep-0060.html 订阅] [http://xmpp.org/extensions/xep-0128.html#nt-id92653[3]]服务可能需要提供其信息。 &lt;br /&gt;
&lt;br /&gt;
一个更好的解决办法是通过一个扩展的信息包括命名空间，提供了一种灵活的结构化数据格式定义合格。 谢天谢地，我们已经拥有了这样一个协议： [http://xmpp.org/extensions/xep-0004.html 数据表格] [http://xmpp.org/extensions/xep-0128.html#nt-id92681[4]]。 此外，我们拥有一个共同的方式来定义字段形式用于数据： [http://xmpp.org/extensions/xep-0068.html 数据表格现场标准化] [http://xmpp.org/extensions/xep-0128.html#nt-id92702 [5]]。 使用这些构建模块，我们可以定义为扩展服务发现结果的一些最佳做法。&lt;br /&gt;
&lt;br /&gt;
==建议==&lt;br /&gt;
如果一个实体的希望提供服务发现协议的扩展信息,出现在回复信息内,它应该这样做:每个独立的&amp;lt;field/&amp;gt;元素包含&amp;lt;value/&amp;gt;点数据信息子节点,所有&amp;lt;field/&amp;gt;元素包含在一个类型为&amp;quot;result&amp;quot;命名空间值为'jabber:x:data'的&amp;lt;x/&amp;gt;元素里.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;Note: A &amp;lt;field/&amp;gt; element MAY contain more than one &amp;lt;value/&amp;gt; child if appropriate.&lt;br /&gt;
&lt;br /&gt;
如果数据字段被用来在由XMPP标准基金会核准的议定书时，他们应该符合相关的XMPP扩展协议规范并按照XEP - 0068定义的规则注册，返回信息中包含一个&amp;lt;field/&amp;gt;元素,其'var'属性为&amp;quot;FORM_TYPE&amp;quot;，其'type'属性的值为&amp;quot;hidden&amp;quot;。&lt;br /&gt;
&lt;br /&gt;
一个实体不能提供'http://jabber.org/protocol/disco#items' 命名空间相关子信息,因为服务发现的核心原则是：一个实体必须确定其身份,不界定的身份与子节点的实体.&lt;br /&gt;
&lt;br /&gt;
==示例==&lt;br /&gt;
===IM服务器===&lt;br /&gt;
&lt;br /&gt;
以下是即时消息服务器返回一个标准的服务查询的例子.&lt;br /&gt;
&lt;br /&gt;
'''例1. 实体查询信息服务器'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt;&lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===群===&lt;br /&gt;
&lt;br /&gt;
下面是在多用户房间里查询服务的例子.&lt;br /&gt;
&lt;br /&gt;
'''例2. 用户查询房间信息'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==实现说明==&lt;br /&gt;
&lt;br /&gt;
一般来说，XMPP标准基金会给每一个发现服务在注册登记时指定一个FORM_TYPE.此外，特定的应用可以定义应用程序以及具体FORM_TYPEs，一个实体可以有多个服务发现的身份（例如，一个XMPP服务器也可能作为一个发布，订阅服务）。因此，它是可能的（允许一个单一的服务发现的结果，发现含有多种服务扩展元素（可能高达2为每个标识元素））。然而，在实践中是不可能发现任何特定服务的结果将包含多个服务扩展元素的发现。&lt;br /&gt;
&lt;br /&gt;
==安全注意事项==&lt;br /&gt;
&lt;br /&gt;
应用程序应确网络上任何实体都能发现服务扩展信息.&lt;br /&gt;
&lt;br /&gt;
==IANA注意事项==&lt;br /&gt;
&lt;br /&gt;
这份文件并不需要与互联网分配编码机构(IANA) [6]互动.&lt;br /&gt;
&lt;br /&gt;
==XMPP协议注册事项==&lt;br /&gt;
&lt;br /&gt;
本文件并不需要的相互作用的XMPP注册 [ 7 ]，但是，最佳做法是在XMPP的登记FORM_TYPEs和field值.&lt;br /&gt;
&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
&lt;br /&gt;
系列：[http://xmpp.org/extensions/ XEP]&lt;br /&gt;
&lt;br /&gt;
序号：0128&lt;br /&gt;
&lt;br /&gt;
发布者：[http://xmpp.org/xsf/ XMPP标准基金会]&lt;br /&gt;
&lt;br /&gt;
状态：[http://www.xmpp.org/extensions/xep-0001.html#states-Final 终结版]&lt;br /&gt;
&lt;br /&gt;
类型：[http://www.xmpp.org/extensions/xep-0001.html#types-Standards%20Track 标准跟踪]&lt;br /&gt;
&lt;br /&gt;
版本：1.0&lt;br /&gt;
&lt;br /&gt;
最后更新：2004-10-20&lt;br /&gt;
&lt;br /&gt;
批准机构：[http://xmpp.org/council/ XMPP理事会]&lt;br /&gt;
&lt;br /&gt;
依赖标准：[[XEP-0004|XEP-0030|XEP-0068|XMPP Core]]&lt;br /&gt;
&lt;br /&gt;
取代: 无&lt;br /&gt;
&lt;br /&gt;
被替代标准：无&lt;br /&gt;
&lt;br /&gt;
缩略名：N/A&lt;br /&gt;
&lt;br /&gt;
原文控制： [http://svn.xmpp.org:18080/browse/XMPP/trunk/extensions/xep-0128.xml HTML] [http://svn.xmpp.org:18080//changelog/~rss/XMPP/trunk/extensions/xep-0128.xml/rss.xml RSS]&lt;br /&gt;
&lt;br /&gt;
本文的其它格式： [http://xmpp.org/extensions/xep-0030.xml XML] [http://xmpp.org/extensions/xep-0128.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Template:XEP附录CDEF}}&lt;br /&gt;
&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
END&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-16T08:33:03Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: /* 简介 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
开发人员觉得[http://xmpp.org/extensions/xep-0030.html 发现服务]不能包含更多的信息. 例如, &amp;lt;identity/&amp;gt; 元素不包含'description'属性, 我们可以增加这个属性吗? 答案是可以,但现在不行,太迟了(因为XEP-0030是最终版). 因此,最好的办法是制定一个扩充机制.&lt;br /&gt;
&lt;br /&gt;
让我们参考一个示例. 一个[http://xmpp.org/extensions/xep-0045.html 多用户聊天室][http://xmpp.org/extensions/xep-0128.html#nt-id92624[2]] 可能想要获取更多的信息, 包括房间描述信息,房间主题,房间在线人数和房间所有者的JID.&lt;br /&gt;
&lt;br /&gt;
增加一个新属性的服务发现架构(即使真的是一个选项)不能解决的问题,因为一MUC的服务可能需要提供某些信息，而发布，[http://xmpp.org/extensions/xep-0060.html 订阅] [http://xmpp.org/extensions/xep-0128.html#nt-id92653[3]]服务可能需要提供其信息。 &lt;br /&gt;
&lt;br /&gt;
一个更好的解决办法是通过一个扩展的信息包括命名空间，提供了一种灵活的结构化数据格式定义合格。 谢天谢地，我们已经拥有了这样一个协议： [http://xmpp.org/extensions/xep-0004.html 数据表格] [http://xmpp.org/extensions/xep-0128.html#nt-id92681[4]]。 此外，我们拥有一个共同的方式来定义字段形式用于数据： [http://xmpp.org/extensions/xep-0068.html 数据表格现场标准化] [http://xmpp.org/extensions/xep-0128.html#nt-id92702 [5]]。 使用这些构建模块，我们可以定义为扩展服务发现结果的一些最佳做法。&lt;br /&gt;
&lt;br /&gt;
==建议==&lt;br /&gt;
如果一个实体的希望提供服务发现协议的扩展信息,出现在回复信息内,它应该这样做:每个独立的&amp;lt;field/&amp;gt;元素包含&amp;lt;value/&amp;gt;点数据信息子节点,所有&amp;lt;field/&amp;gt;元素包含在一个类型为&amp;quot;result&amp;quot;命名空间值为'jabber:x:data'的&amp;lt;x/&amp;gt;元素里.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;Note: A &amp;lt;field/&amp;gt; element MAY contain more than one &amp;lt;value/&amp;gt; child if appropriate.&lt;br /&gt;
&lt;br /&gt;
如果数据字段被用来在由XMPP标准基金会核准的议定书时，他们应该符合相关的XMPP扩展协议规范并按照XEP - 0068定义的规则注册，返回信息中包含一个&amp;lt;field/&amp;gt;元素,其'var'属性为&amp;quot;FORM_TYPE&amp;quot;，其'type'属性的值为&amp;quot;hidden&amp;quot;。&lt;br /&gt;
&lt;br /&gt;
一个实体不能提供'http://jabber.org/protocol/disco#items' 命名空间相关子信息,因为服务发现的核心原则是：一个实体必须确定其身份,不界定的身份与子节点的实体.&lt;br /&gt;
&lt;br /&gt;
==示例==&lt;br /&gt;
===IM服务器===&lt;br /&gt;
&lt;br /&gt;
以下是即时消息服务器返回一个标准的服务查询的例子.&lt;br /&gt;
&lt;br /&gt;
Example 1. 实体查询信息服务器&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt;&lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===群===&lt;br /&gt;
&lt;br /&gt;
下面是在多用户房间里查询服务的例子.&lt;br /&gt;
&lt;br /&gt;
Example 2. 用户查询房间信息&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==实现说明==&lt;br /&gt;
&lt;br /&gt;
一般来说，XMPP标准基金会给每一个发现服务在注册登记时指定一个FORM_TYPE.此外，特定的应用可以定义应用程序以及具体FORM_TYPEs，一个实体可以有多个服务发现的身份（例如，一个XMPP服务器也可能作为一个发布，订阅服务）。因此，它是可能的（允许一个单一的服务发现的结果，发现含有多种服务扩展元素（可能高达2为每个标识元素））。然而，在实践中是不可能发现任何特定服务的结果将包含多个服务扩展元素的发现。&lt;br /&gt;
&lt;br /&gt;
==安全注意事项==&lt;br /&gt;
&lt;br /&gt;
应用程序应确网络上任何实体都能发现服务扩展信息.&lt;br /&gt;
&lt;br /&gt;
==IANA注意事项==&lt;br /&gt;
&lt;br /&gt;
这份文件并不需要与互联网分配编码机构(IANA) [6]互动.&lt;br /&gt;
&lt;br /&gt;
==XMPP协议注册事项==&lt;br /&gt;
&lt;br /&gt;
本文件并不需要的相互作用的XMPP注册 [ 7 ]，但是，最佳做法是在XMPP的登记FORM_TYPEs和field值.&lt;br /&gt;
&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
&lt;br /&gt;
系列：[http://xmpp.org/extensions/ XEP]&lt;br /&gt;
&lt;br /&gt;
序号：0128&lt;br /&gt;
&lt;br /&gt;
发布者：[http://xmpp.org/xsf/ XMPP标准基金会]&lt;br /&gt;
&lt;br /&gt;
状态：[http://www.xmpp.org/extensions/xep-0001.html#states-Final 终结版]&lt;br /&gt;
&lt;br /&gt;
类型：[http://www.xmpp.org/extensions/xep-0001.html#types-Standards%20Track 标准跟踪]&lt;br /&gt;
&lt;br /&gt;
版本：1.0&lt;br /&gt;
&lt;br /&gt;
最后更新：2004-10-20&lt;br /&gt;
&lt;br /&gt;
批准机构：[http://xmpp.org/council/ XMPP理事会]&lt;br /&gt;
&lt;br /&gt;
依赖标准：[[XEP-0004|XEP-0030|XEP-0068|XMPP Core]]&lt;br /&gt;
&lt;br /&gt;
取代: 无&lt;br /&gt;
&lt;br /&gt;
被替代标准：无&lt;br /&gt;
&lt;br /&gt;
缩略名：N/A&lt;br /&gt;
&lt;br /&gt;
原文控制： [http://svn.xmpp.org:18080/browse/XMPP/trunk/extensions/xep-0128.xml HTML] [http://svn.xmpp.org:18080//changelog/~rss/XMPP/trunk/extensions/xep-0128.xml/rss.xml RSS]&lt;br /&gt;
&lt;br /&gt;
本文的其它格式： [http://xmpp.org/extensions/xep-0030.xml XML] [http://xmpp.org/extensions/xep-0128.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Template:XEP附录CDEF}}&lt;br /&gt;
&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
END&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-16T08:32:33Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: /* 简介 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
开发人员觉得[http://xmpp.org/extensions/xep-0030.html 发现服务]不能包含更多的信息. 例如, &amp;lt;identity/&amp;gt; 元素不包含'description'属性, 我们可以增加这个属性吗? 答案是可以,但现在不行,太迟了(因为XEP-0030是最终版). 因此,最好的办法是制定一个扩充机制.&lt;br /&gt;
&lt;br /&gt;
让我们参考一个示例. 一个[http://xmpp.org/extensions/xep-0045.html 多用户聊天室][http://xmpp.org/extensions/xep-0128.html#nt-id92624[2]] 可能想要获取更多的信息, 包括房间描述信息,房间主题,房间在线人数和房间所有者的JID.&lt;br /&gt;
&lt;br /&gt;
增加一个新属性的服务发现架构(即使真的是一个选项)不能解决的问题,因为一MUC的服务可能需要提供某些信息，而发布，[http://xmpp.org/extensions/xep-0060.html订阅] [http://xmpp.org/extensions/xep-0128.html#nt-id92653[3]]服务可能需要提供其信息。 &lt;br /&gt;
&lt;br /&gt;
一个更好的解决办法是通过一个扩展的信息包括命名空间，提供了一种灵活的结构化数据格式定义合格。 谢天谢地，我们已经拥有了这样一个协议： [http://xmpp.org/extensions/xep-0004.html 数据表格] [http://xmpp.org/extensions/xep-0128.html#nt-id92681[4]]。 此外，我们拥有一个共同的方式来定义字段形式用于数据： [http://xmpp.org/extensions/xep-0068.html 数据表格现场标准化] [http://xmpp.org/extensions/xep-0128.html#nt-id92702 [5]]。 使用这些构建模块，我们可以定义为扩展服务发现结果的一些最佳做法。&lt;br /&gt;
&lt;br /&gt;
==建议==&lt;br /&gt;
如果一个实体的希望提供服务发现协议的扩展信息,出现在回复信息内,它应该这样做:每个独立的&amp;lt;field/&amp;gt;元素包含&amp;lt;value/&amp;gt;点数据信息子节点,所有&amp;lt;field/&amp;gt;元素包含在一个类型为&amp;quot;result&amp;quot;命名空间值为'jabber:x:data'的&amp;lt;x/&amp;gt;元素里.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;Note: A &amp;lt;field/&amp;gt; element MAY contain more than one &amp;lt;value/&amp;gt; child if appropriate.&lt;br /&gt;
&lt;br /&gt;
如果数据字段被用来在由XMPP标准基金会核准的议定书时，他们应该符合相关的XMPP扩展协议规范并按照XEP - 0068定义的规则注册，返回信息中包含一个&amp;lt;field/&amp;gt;元素,其'var'属性为&amp;quot;FORM_TYPE&amp;quot;，其'type'属性的值为&amp;quot;hidden&amp;quot;。&lt;br /&gt;
&lt;br /&gt;
一个实体不能提供'http://jabber.org/protocol/disco#items' 命名空间相关子信息,因为服务发现的核心原则是：一个实体必须确定其身份,不界定的身份与子节点的实体.&lt;br /&gt;
&lt;br /&gt;
==示例==&lt;br /&gt;
===IM服务器===&lt;br /&gt;
&lt;br /&gt;
以下是即时消息服务器返回一个标准的服务查询的例子.&lt;br /&gt;
&lt;br /&gt;
Example 1. 实体查询信息服务器&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt;&lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===群===&lt;br /&gt;
&lt;br /&gt;
下面是在多用户房间里查询服务的例子.&lt;br /&gt;
&lt;br /&gt;
Example 2. 用户查询房间信息&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==实现说明==&lt;br /&gt;
&lt;br /&gt;
一般来说，XMPP标准基金会给每一个发现服务在注册登记时指定一个FORM_TYPE.此外，特定的应用可以定义应用程序以及具体FORM_TYPEs，一个实体可以有多个服务发现的身份（例如，一个XMPP服务器也可能作为一个发布，订阅服务）。因此，它是可能的（允许一个单一的服务发现的结果，发现含有多种服务扩展元素（可能高达2为每个标识元素））。然而，在实践中是不可能发现任何特定服务的结果将包含多个服务扩展元素的发现。&lt;br /&gt;
&lt;br /&gt;
==安全注意事项==&lt;br /&gt;
&lt;br /&gt;
应用程序应确网络上任何实体都能发现服务扩展信息.&lt;br /&gt;
&lt;br /&gt;
==IANA注意事项==&lt;br /&gt;
&lt;br /&gt;
这份文件并不需要与互联网分配编码机构(IANA) [6]互动.&lt;br /&gt;
&lt;br /&gt;
==XMPP协议注册事项==&lt;br /&gt;
&lt;br /&gt;
本文件并不需要的相互作用的XMPP注册 [ 7 ]，但是，最佳做法是在XMPP的登记FORM_TYPEs和field值.&lt;br /&gt;
&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
&lt;br /&gt;
系列：[http://xmpp.org/extensions/ XEP]&lt;br /&gt;
&lt;br /&gt;
序号：0128&lt;br /&gt;
&lt;br /&gt;
发布者：[http://xmpp.org/xsf/ XMPP标准基金会]&lt;br /&gt;
&lt;br /&gt;
状态：[http://www.xmpp.org/extensions/xep-0001.html#states-Final 终结版]&lt;br /&gt;
&lt;br /&gt;
类型：[http://www.xmpp.org/extensions/xep-0001.html#types-Standards%20Track 标准跟踪]&lt;br /&gt;
&lt;br /&gt;
版本：1.0&lt;br /&gt;
&lt;br /&gt;
最后更新：2004-10-20&lt;br /&gt;
&lt;br /&gt;
批准机构：[http://xmpp.org/council/ XMPP理事会]&lt;br /&gt;
&lt;br /&gt;
依赖标准：[[XEP-0004|XEP-0030|XEP-0068|XMPP Core]]&lt;br /&gt;
&lt;br /&gt;
取代: 无&lt;br /&gt;
&lt;br /&gt;
被替代标准：无&lt;br /&gt;
&lt;br /&gt;
缩略名：N/A&lt;br /&gt;
&lt;br /&gt;
原文控制： [http://svn.xmpp.org:18080/browse/XMPP/trunk/extensions/xep-0128.xml HTML] [http://svn.xmpp.org:18080//changelog/~rss/XMPP/trunk/extensions/xep-0128.xml/rss.xml RSS]&lt;br /&gt;
&lt;br /&gt;
本文的其它格式： [http://xmpp.org/extensions/xep-0030.xml XML] [http://xmpp.org/extensions/xep-0128.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Template:XEP附录CDEF}}&lt;br /&gt;
&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
END&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-16T08:30:16Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: /* 简介 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
开发人员觉得[http://xmpp.org/extensions/xep-0030.html 发现服务]不能包含更多的信息. 例如, &amp;lt;identity/&amp;gt; 元素不包含'description'属性, 我们可以增加这个属性吗? 答案是可以,但现在不行,太迟了(因为XEP-0030是最终版). 因此,最好的办法是制定一个扩充机制.&lt;br /&gt;
&lt;br /&gt;
让我们参考一个示例. 一个[http://xmpp.org/extensions/xep-0045.html 多用户聊天室][http://xmpp.org/extensions/xep-0128.html#nt-id92624[2]] 可能想要获取更多的信息, 包括房间描述信息,房间主题,房间在线人数和房间所有者的JID.&lt;br /&gt;
&lt;br /&gt;
增加一个新属性的服务发现架构(即使真的是一个选项)不能解决的问题,因为一MUC的服务可能需要提供某些信息，而发布，订阅 [ 3 ]服务可能需要提供其信息。 &lt;br /&gt;
&lt;br /&gt;
一个更好的解决办法是通过一个扩展的信息包括命名空间，提供了一种灵活的结构化数据格式定义合格。 谢天谢地，我们已经拥有了这样一个协议： 数据表格 [ 4 ]。 此外，我们拥有一个共同的方式来定义字段形式用于数据： 数据表格现场标准化 [ 5 ]。 使用这些构建模块，我们可以定义为扩展服务发现结果的一些最佳做法。&lt;br /&gt;
&lt;br /&gt;
==建议==&lt;br /&gt;
如果一个实体的希望提供服务发现协议的扩展信息,出现在回复信息内,它应该这样做:每个独立的&amp;lt;field/&amp;gt;元素包含&amp;lt;value/&amp;gt;点数据信息子节点,所有&amp;lt;field/&amp;gt;元素包含在一个类型为&amp;quot;result&amp;quot;命名空间值为'jabber:x:data'的&amp;lt;x/&amp;gt;元素里.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;Note: A &amp;lt;field/&amp;gt; element MAY contain more than one &amp;lt;value/&amp;gt; child if appropriate.&lt;br /&gt;
&lt;br /&gt;
如果数据字段被用来在由XMPP标准基金会核准的议定书时，他们应该符合相关的XMPP扩展协议规范并按照XEP - 0068定义的规则注册，返回信息中包含一个&amp;lt;field/&amp;gt;元素,其'var'属性为&amp;quot;FORM_TYPE&amp;quot;，其'type'属性的值为&amp;quot;hidden&amp;quot;。&lt;br /&gt;
&lt;br /&gt;
一个实体不能提供'http://jabber.org/protocol/disco#items' 命名空间相关子信息,因为服务发现的核心原则是：一个实体必须确定其身份,不界定的身份与子节点的实体.&lt;br /&gt;
&lt;br /&gt;
==示例==&lt;br /&gt;
===IM服务器===&lt;br /&gt;
&lt;br /&gt;
以下是即时消息服务器返回一个标准的服务查询的例子.&lt;br /&gt;
&lt;br /&gt;
Example 1. 实体查询信息服务器&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt;&lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===群===&lt;br /&gt;
&lt;br /&gt;
下面是在多用户房间里查询服务的例子.&lt;br /&gt;
&lt;br /&gt;
Example 2. 用户查询房间信息&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==实现说明==&lt;br /&gt;
&lt;br /&gt;
一般来说，XMPP标准基金会给每一个发现服务在注册登记时指定一个FORM_TYPE.此外，特定的应用可以定义应用程序以及具体FORM_TYPEs，一个实体可以有多个服务发现的身份（例如，一个XMPP服务器也可能作为一个发布，订阅服务）。因此，它是可能的（允许一个单一的服务发现的结果，发现含有多种服务扩展元素（可能高达2为每个标识元素））。然而，在实践中是不可能发现任何特定服务的结果将包含多个服务扩展元素的发现。&lt;br /&gt;
&lt;br /&gt;
==安全注意事项==&lt;br /&gt;
&lt;br /&gt;
应用程序应确网络上任何实体都能发现服务扩展信息.&lt;br /&gt;
&lt;br /&gt;
==IANA注意事项==&lt;br /&gt;
&lt;br /&gt;
这份文件并不需要与互联网分配编码机构(IANA) [6]互动.&lt;br /&gt;
&lt;br /&gt;
==XMPP协议注册事项==&lt;br /&gt;
&lt;br /&gt;
本文件并不需要的相互作用的XMPP注册 [ 7 ]，但是，最佳做法是在XMPP的登记FORM_TYPEs和field值.&lt;br /&gt;
&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
&lt;br /&gt;
系列：[http://xmpp.org/extensions/ XEP]&lt;br /&gt;
&lt;br /&gt;
序号：0128&lt;br /&gt;
&lt;br /&gt;
发布者：[http://xmpp.org/xsf/ XMPP标准基金会]&lt;br /&gt;
&lt;br /&gt;
状态：[http://www.xmpp.org/extensions/xep-0001.html#states-Final 终结版]&lt;br /&gt;
&lt;br /&gt;
类型：[http://www.xmpp.org/extensions/xep-0001.html#types-Standards%20Track 标准跟踪]&lt;br /&gt;
&lt;br /&gt;
版本：1.0&lt;br /&gt;
&lt;br /&gt;
最后更新：2004-10-20&lt;br /&gt;
&lt;br /&gt;
批准机构：[http://xmpp.org/council/ XMPP理事会]&lt;br /&gt;
&lt;br /&gt;
依赖标准：[[XEP-0004|XEP-0030|XEP-0068|XMPP Core]]&lt;br /&gt;
&lt;br /&gt;
取代: 无&lt;br /&gt;
&lt;br /&gt;
被替代标准：无&lt;br /&gt;
&lt;br /&gt;
缩略名：N/A&lt;br /&gt;
&lt;br /&gt;
原文控制： [http://svn.xmpp.org:18080/browse/XMPP/trunk/extensions/xep-0128.xml HTML] [http://svn.xmpp.org:18080//changelog/~rss/XMPP/trunk/extensions/xep-0128.xml/rss.xml RSS]&lt;br /&gt;
&lt;br /&gt;
本文的其它格式： [http://xmpp.org/extensions/xep-0030.xml XML] [http://xmpp.org/extensions/xep-0128.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Template:XEP附录CDEF}}&lt;br /&gt;
&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
END&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-16T08:29:44Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: /* 简介 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
开发人员觉得[http://xmpp.org/extensions/xep-0030.html 发现服务]不能包含更多的信息. 例如, &amp;lt;identity/&amp;gt; 元素不包含'description'属性, 我们可以增加这个属性吗? 答案是可以,但现在不行,太迟了(因为XEP-0030是最终版). 因此,最好的办法是制定一个扩充机制.&lt;br /&gt;
&lt;br /&gt;
让我们参考一个示例. 一个[http://xmpp.org/extensions/xep-0045.html 多用户聊天室[2]] 可能想要获取更多的信息, 包括房间描述信息,房间主题,房间在线人数和房间所有者的JID.&lt;br /&gt;
&lt;br /&gt;
增加一个新属性的服务发现架构(即使真的是一个选项)不能解决的问题,因为一MUC的服务可能需要提供某些信息，而发布，订阅 [ 3 ]服务可能需要提供其信息。 &lt;br /&gt;
&lt;br /&gt;
一个更好的解决办法是通过一个扩展的信息包括命名空间，提供了一种灵活的结构化数据格式定义合格。 谢天谢地，我们已经拥有了这样一个协议： 数据表格 [ 4 ]。 此外，我们拥有一个共同的方式来定义字段形式用于数据： 数据表格现场标准化 [ 5 ]。 使用这些构建模块，我们可以定义为扩展服务发现结果的一些最佳做法。&lt;br /&gt;
&lt;br /&gt;
==建议==&lt;br /&gt;
如果一个实体的希望提供服务发现协议的扩展信息,出现在回复信息内,它应该这样做:每个独立的&amp;lt;field/&amp;gt;元素包含&amp;lt;value/&amp;gt;点数据信息子节点,所有&amp;lt;field/&amp;gt;元素包含在一个类型为&amp;quot;result&amp;quot;命名空间值为'jabber:x:data'的&amp;lt;x/&amp;gt;元素里.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;Note: A &amp;lt;field/&amp;gt; element MAY contain more than one &amp;lt;value/&amp;gt; child if appropriate.&lt;br /&gt;
&lt;br /&gt;
如果数据字段被用来在由XMPP标准基金会核准的议定书时，他们应该符合相关的XMPP扩展协议规范并按照XEP - 0068定义的规则注册，返回信息中包含一个&amp;lt;field/&amp;gt;元素,其'var'属性为&amp;quot;FORM_TYPE&amp;quot;，其'type'属性的值为&amp;quot;hidden&amp;quot;。&lt;br /&gt;
&lt;br /&gt;
一个实体不能提供'http://jabber.org/protocol/disco#items' 命名空间相关子信息,因为服务发现的核心原则是：一个实体必须确定其身份,不界定的身份与子节点的实体.&lt;br /&gt;
&lt;br /&gt;
==示例==&lt;br /&gt;
===IM服务器===&lt;br /&gt;
&lt;br /&gt;
以下是即时消息服务器返回一个标准的服务查询的例子.&lt;br /&gt;
&lt;br /&gt;
Example 1. 实体查询信息服务器&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt;&lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===群===&lt;br /&gt;
&lt;br /&gt;
下面是在多用户房间里查询服务的例子.&lt;br /&gt;
&lt;br /&gt;
Example 2. 用户查询房间信息&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==实现说明==&lt;br /&gt;
&lt;br /&gt;
一般来说，XMPP标准基金会给每一个发现服务在注册登记时指定一个FORM_TYPE.此外，特定的应用可以定义应用程序以及具体FORM_TYPEs，一个实体可以有多个服务发现的身份（例如，一个XMPP服务器也可能作为一个发布，订阅服务）。因此，它是可能的（允许一个单一的服务发现的结果，发现含有多种服务扩展元素（可能高达2为每个标识元素））。然而，在实践中是不可能发现任何特定服务的结果将包含多个服务扩展元素的发现。&lt;br /&gt;
&lt;br /&gt;
==安全注意事项==&lt;br /&gt;
&lt;br /&gt;
应用程序应确网络上任何实体都能发现服务扩展信息.&lt;br /&gt;
&lt;br /&gt;
==IANA注意事项==&lt;br /&gt;
&lt;br /&gt;
这份文件并不需要与互联网分配编码机构(IANA) [6]互动.&lt;br /&gt;
&lt;br /&gt;
==XMPP协议注册事项==&lt;br /&gt;
&lt;br /&gt;
本文件并不需要的相互作用的XMPP注册 [ 7 ]，但是，最佳做法是在XMPP的登记FORM_TYPEs和field值.&lt;br /&gt;
&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
&lt;br /&gt;
系列：[http://xmpp.org/extensions/ XEP]&lt;br /&gt;
&lt;br /&gt;
序号：0128&lt;br /&gt;
&lt;br /&gt;
发布者：[http://xmpp.org/xsf/ XMPP标准基金会]&lt;br /&gt;
&lt;br /&gt;
状态：[http://www.xmpp.org/extensions/xep-0001.html#states-Final 终结版]&lt;br /&gt;
&lt;br /&gt;
类型：[http://www.xmpp.org/extensions/xep-0001.html#types-Standards%20Track 标准跟踪]&lt;br /&gt;
&lt;br /&gt;
版本：1.0&lt;br /&gt;
&lt;br /&gt;
最后更新：2004-10-20&lt;br /&gt;
&lt;br /&gt;
批准机构：[http://xmpp.org/council/ XMPP理事会]&lt;br /&gt;
&lt;br /&gt;
依赖标准：[[XEP-0004|XEP-0030|XEP-0068|XMPP Core]]&lt;br /&gt;
&lt;br /&gt;
取代: 无&lt;br /&gt;
&lt;br /&gt;
被替代标准：无&lt;br /&gt;
&lt;br /&gt;
缩略名：N/A&lt;br /&gt;
&lt;br /&gt;
原文控制： [http://svn.xmpp.org:18080/browse/XMPP/trunk/extensions/xep-0128.xml HTML] [http://svn.xmpp.org:18080//changelog/~rss/XMPP/trunk/extensions/xep-0128.xml/rss.xml RSS]&lt;br /&gt;
&lt;br /&gt;
本文的其它格式： [http://xmpp.org/extensions/xep-0030.xml XML] [http://xmpp.org/extensions/xep-0128.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Template:XEP附录CDEF}}&lt;br /&gt;
&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
END&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-16T08:29:08Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: /* 简介 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
开发人员觉得[http://xmpp.org/extensions/xep-0030.html 发现服务]不能包含更多的信息. 例如, &amp;lt;identity/&amp;gt; 元素不包含'description'属性, 我们可以增加这个属性吗? 答案是可以,但现在不行,太迟了(因为XEP-0030是最终版). 因此,最好的办法是制定一个扩充机制.&lt;br /&gt;
&lt;br /&gt;
让我们参考一个示例. 一个多用户聊天室[2] 可能想要获取更多的信息, 包括房间描述信息,房间主题,房间在线人数和房间所有者的JID.&lt;br /&gt;
&lt;br /&gt;
增加一个新属性的服务发现架构(即使真的是一个选项)不能解决的问题,因为一MUC的服务可能需要提供某些信息，而发布，订阅 [ 3 ]服务可能需要提供其信息。 &lt;br /&gt;
&lt;br /&gt;
一个更好的解决办法是通过一个扩展的信息包括命名空间，提供了一种灵活的结构化数据格式定义合格。 谢天谢地，我们已经拥有了这样一个协议： 数据表格 [ 4 ]。 此外，我们拥有一个共同的方式来定义字段形式用于数据： 数据表格现场标准化 [ 5 ]。 使用这些构建模块，我们可以定义为扩展服务发现结果的一些最佳做法。&lt;br /&gt;
&lt;br /&gt;
==建议==&lt;br /&gt;
如果一个实体的希望提供服务发现协议的扩展信息,出现在回复信息内,它应该这样做:每个独立的&amp;lt;field/&amp;gt;元素包含&amp;lt;value/&amp;gt;点数据信息子节点,所有&amp;lt;field/&amp;gt;元素包含在一个类型为&amp;quot;result&amp;quot;命名空间值为'jabber:x:data'的&amp;lt;x/&amp;gt;元素里.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;Note: A &amp;lt;field/&amp;gt; element MAY contain more than one &amp;lt;value/&amp;gt; child if appropriate.&lt;br /&gt;
&lt;br /&gt;
如果数据字段被用来在由XMPP标准基金会核准的议定书时，他们应该符合相关的XMPP扩展协议规范并按照XEP - 0068定义的规则注册，返回信息中包含一个&amp;lt;field/&amp;gt;元素,其'var'属性为&amp;quot;FORM_TYPE&amp;quot;，其'type'属性的值为&amp;quot;hidden&amp;quot;。&lt;br /&gt;
&lt;br /&gt;
一个实体不能提供'http://jabber.org/protocol/disco#items' 命名空间相关子信息,因为服务发现的核心原则是：一个实体必须确定其身份,不界定的身份与子节点的实体.&lt;br /&gt;
&lt;br /&gt;
==示例==&lt;br /&gt;
===IM服务器===&lt;br /&gt;
&lt;br /&gt;
以下是即时消息服务器返回一个标准的服务查询的例子.&lt;br /&gt;
&lt;br /&gt;
Example 1. 实体查询信息服务器&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt;&lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===群===&lt;br /&gt;
&lt;br /&gt;
下面是在多用户房间里查询服务的例子.&lt;br /&gt;
&lt;br /&gt;
Example 2. 用户查询房间信息&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==实现说明==&lt;br /&gt;
&lt;br /&gt;
一般来说，XMPP标准基金会给每一个发现服务在注册登记时指定一个FORM_TYPE.此外，特定的应用可以定义应用程序以及具体FORM_TYPEs，一个实体可以有多个服务发现的身份（例如，一个XMPP服务器也可能作为一个发布，订阅服务）。因此，它是可能的（允许一个单一的服务发现的结果，发现含有多种服务扩展元素（可能高达2为每个标识元素））。然而，在实践中是不可能发现任何特定服务的结果将包含多个服务扩展元素的发现。&lt;br /&gt;
&lt;br /&gt;
==安全注意事项==&lt;br /&gt;
&lt;br /&gt;
应用程序应确网络上任何实体都能发现服务扩展信息.&lt;br /&gt;
&lt;br /&gt;
==IANA注意事项==&lt;br /&gt;
&lt;br /&gt;
这份文件并不需要与互联网分配编码机构(IANA) [6]互动.&lt;br /&gt;
&lt;br /&gt;
==XMPP协议注册事项==&lt;br /&gt;
&lt;br /&gt;
本文件并不需要的相互作用的XMPP注册 [ 7 ]，但是，最佳做法是在XMPP的登记FORM_TYPEs和field值.&lt;br /&gt;
&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
&lt;br /&gt;
系列：[http://xmpp.org/extensions/ XEP]&lt;br /&gt;
&lt;br /&gt;
序号：0128&lt;br /&gt;
&lt;br /&gt;
发布者：[http://xmpp.org/xsf/ XMPP标准基金会]&lt;br /&gt;
&lt;br /&gt;
状态：[http://www.xmpp.org/extensions/xep-0001.html#states-Final 终结版]&lt;br /&gt;
&lt;br /&gt;
类型：[http://www.xmpp.org/extensions/xep-0001.html#types-Standards%20Track 标准跟踪]&lt;br /&gt;
&lt;br /&gt;
版本：1.0&lt;br /&gt;
&lt;br /&gt;
最后更新：2004-10-20&lt;br /&gt;
&lt;br /&gt;
批准机构：[http://xmpp.org/council/ XMPP理事会]&lt;br /&gt;
&lt;br /&gt;
依赖标准：[[XEP-0004|XEP-0030|XEP-0068|XMPP Core]]&lt;br /&gt;
&lt;br /&gt;
取代: 无&lt;br /&gt;
&lt;br /&gt;
被替代标准：无&lt;br /&gt;
&lt;br /&gt;
缩略名：N/A&lt;br /&gt;
&lt;br /&gt;
原文控制： [http://svn.xmpp.org:18080/browse/XMPP/trunk/extensions/xep-0128.xml HTML] [http://svn.xmpp.org:18080//changelog/~rss/XMPP/trunk/extensions/xep-0128.xml/rss.xml RSS]&lt;br /&gt;
&lt;br /&gt;
本文的其它格式： [http://xmpp.org/extensions/xep-0030.xml XML] [http://xmpp.org/extensions/xep-0128.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Template:XEP附录CDEF}}&lt;br /&gt;
&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
END&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-16T08:21:43Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: /* XMPP协议注册事项 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
开发人员觉得发现服务不能包含更多的信息. 例如, &amp;lt;identity/&amp;gt; 元素不包含'description'属性, 我们可以增加这个属性吗? 答案是可以,但现在不行,太迟了(因为XEP-0030是最终版). 因此,最好的办法是制定一个扩充机制.&lt;br /&gt;
&lt;br /&gt;
让我们参考一个示例. 一个多用户聊天室[2] 可能想要获取更多的信息, 包括房间描述信息,房间主题,房间在线人数和房间所有者的JID.&lt;br /&gt;
&lt;br /&gt;
增加一个新属性的服务发现架构(即使真的是一个选项)不能解决的问题,因为一MUC的服务可能需要提供某些信息，而发布，订阅 [ 3 ]服务可能需要提供其信息。 &lt;br /&gt;
&lt;br /&gt;
一个更好的解决办法是通过一个扩展的信息包括命名空间，提供了一种灵活的结构化数据格式定义合格。 谢天谢地，我们已经拥有了这样一个协议： 数据表格 [ 4 ]。 此外，我们拥有一个共同的方式来定义字段形式用于数据： 数据表格现场标准化 [ 5 ]。 使用这些构建模块，我们可以定义为扩展服务发现结果的一些最佳做法。&lt;br /&gt;
&lt;br /&gt;
==建议==&lt;br /&gt;
如果一个实体的希望提供服务发现协议的扩展信息,出现在回复信息内,它应该这样做:每个独立的&amp;lt;field/&amp;gt;元素包含&amp;lt;value/&amp;gt;点数据信息子节点,所有&amp;lt;field/&amp;gt;元素包含在一个类型为&amp;quot;result&amp;quot;命名空间值为'jabber:x:data'的&amp;lt;x/&amp;gt;元素里.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;Note: A &amp;lt;field/&amp;gt; element MAY contain more than one &amp;lt;value/&amp;gt; child if appropriate.&lt;br /&gt;
&lt;br /&gt;
如果数据字段被用来在由XMPP标准基金会核准的议定书时，他们应该符合相关的XMPP扩展协议规范并按照XEP - 0068定义的规则注册，返回信息中包含一个&amp;lt;field/&amp;gt;元素,其'var'属性为&amp;quot;FORM_TYPE&amp;quot;，其'type'属性的值为&amp;quot;hidden&amp;quot;。&lt;br /&gt;
&lt;br /&gt;
一个实体不能提供'http://jabber.org/protocol/disco#items' 命名空间相关子信息,因为服务发现的核心原则是：一个实体必须确定其身份,不界定的身份与子节点的实体.&lt;br /&gt;
&lt;br /&gt;
==示例==&lt;br /&gt;
===IM服务器===&lt;br /&gt;
&lt;br /&gt;
以下是即时消息服务器返回一个标准的服务查询的例子.&lt;br /&gt;
&lt;br /&gt;
Example 1. 实体查询信息服务器&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt;&lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===群===&lt;br /&gt;
&lt;br /&gt;
下面是在多用户房间里查询服务的例子.&lt;br /&gt;
&lt;br /&gt;
Example 2. 用户查询房间信息&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==实现说明==&lt;br /&gt;
&lt;br /&gt;
一般来说，XMPP标准基金会给每一个发现服务在注册登记时指定一个FORM_TYPE.此外，特定的应用可以定义应用程序以及具体FORM_TYPEs，一个实体可以有多个服务发现的身份（例如，一个XMPP服务器也可能作为一个发布，订阅服务）。因此，它是可能的（允许一个单一的服务发现的结果，发现含有多种服务扩展元素（可能高达2为每个标识元素））。然而，在实践中是不可能发现任何特定服务的结果将包含多个服务扩展元素的发现。&lt;br /&gt;
&lt;br /&gt;
==安全注意事项==&lt;br /&gt;
&lt;br /&gt;
应用程序应确网络上任何实体都能发现服务扩展信息.&lt;br /&gt;
&lt;br /&gt;
==IANA注意事项==&lt;br /&gt;
&lt;br /&gt;
这份文件并不需要与互联网分配编码机构(IANA) [6]互动.&lt;br /&gt;
&lt;br /&gt;
==XMPP协议注册事项==&lt;br /&gt;
&lt;br /&gt;
本文件并不需要的相互作用的XMPP注册 [ 7 ]，但是，最佳做法是在XMPP的登记FORM_TYPEs和field值.&lt;br /&gt;
&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
&lt;br /&gt;
系列：[http://xmpp.org/extensions/ XEP]&lt;br /&gt;
&lt;br /&gt;
序号：0128&lt;br /&gt;
&lt;br /&gt;
发布者：[http://xmpp.org/xsf/ XMPP标准基金会]&lt;br /&gt;
&lt;br /&gt;
状态：[http://www.xmpp.org/extensions/xep-0001.html#states-Final 终结版]&lt;br /&gt;
&lt;br /&gt;
类型：[http://www.xmpp.org/extensions/xep-0001.html#types-Standards%20Track 标准跟踪]&lt;br /&gt;
&lt;br /&gt;
版本：1.0&lt;br /&gt;
&lt;br /&gt;
最后更新：2004-10-20&lt;br /&gt;
&lt;br /&gt;
批准机构：[http://xmpp.org/council/ XMPP理事会]&lt;br /&gt;
&lt;br /&gt;
依赖标准：[[XEP-0004|XEP-0030|XEP-0068|XMPP Core]]&lt;br /&gt;
&lt;br /&gt;
取代: 无&lt;br /&gt;
&lt;br /&gt;
被替代标准：无&lt;br /&gt;
&lt;br /&gt;
缩略名：N/A&lt;br /&gt;
&lt;br /&gt;
原文控制： [http://svn.xmpp.org:18080/browse/XMPP/trunk/extensions/xep-0128.xml HTML] [http://svn.xmpp.org:18080//changelog/~rss/XMPP/trunk/extensions/xep-0128.xml/rss.xml RSS]&lt;br /&gt;
&lt;br /&gt;
本文的其它格式： [http://xmpp.org/extensions/xep-0030.xml XML] [http://xmpp.org/extensions/xep-0128.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Template:XEP附录CDEF}}&lt;br /&gt;
&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
END&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-16T08:17:11Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: /* IANA注意事项 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
开发人员觉得发现服务不能包含更多的信息. 例如, &amp;lt;identity/&amp;gt; 元素不包含'description'属性, 我们可以增加这个属性吗? 答案是可以,但现在不行,太迟了(因为XEP-0030是最终版). 因此,最好的办法是制定一个扩充机制.&lt;br /&gt;
&lt;br /&gt;
让我们参考一个示例. 一个多用户聊天室[2] 可能想要获取更多的信息, 包括房间描述信息,房间主题,房间在线人数和房间所有者的JID.&lt;br /&gt;
&lt;br /&gt;
增加一个新属性的服务发现架构(即使真的是一个选项)不能解决的问题,因为一MUC的服务可能需要提供某些信息，而发布，订阅 [ 3 ]服务可能需要提供其信息。 &lt;br /&gt;
&lt;br /&gt;
一个更好的解决办法是通过一个扩展的信息包括命名空间，提供了一种灵活的结构化数据格式定义合格。 谢天谢地，我们已经拥有了这样一个协议： 数据表格 [ 4 ]。 此外，我们拥有一个共同的方式来定义字段形式用于数据： 数据表格现场标准化 [ 5 ]。 使用这些构建模块，我们可以定义为扩展服务发现结果的一些最佳做法。&lt;br /&gt;
&lt;br /&gt;
==建议==&lt;br /&gt;
如果一个实体的希望提供服务发现协议的扩展信息,出现在回复信息内,它应该这样做:每个独立的&amp;lt;field/&amp;gt;元素包含&amp;lt;value/&amp;gt;点数据信息子节点,所有&amp;lt;field/&amp;gt;元素包含在一个类型为&amp;quot;result&amp;quot;命名空间值为'jabber:x:data'的&amp;lt;x/&amp;gt;元素里.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;Note: A &amp;lt;field/&amp;gt; element MAY contain more than one &amp;lt;value/&amp;gt; child if appropriate.&lt;br /&gt;
&lt;br /&gt;
如果数据字段被用来在由XMPP标准基金会核准的议定书时，他们应该符合相关的XMPP扩展协议规范并按照XEP - 0068定义的规则注册，返回信息中包含一个&amp;lt;field/&amp;gt;元素,其'var'属性为&amp;quot;FORM_TYPE&amp;quot;，其'type'属性的值为&amp;quot;hidden&amp;quot;。&lt;br /&gt;
&lt;br /&gt;
一个实体不能提供'http://jabber.org/protocol/disco#items' 命名空间相关子信息,因为服务发现的核心原则是：一个实体必须确定其身份,不界定的身份与子节点的实体.&lt;br /&gt;
&lt;br /&gt;
==示例==&lt;br /&gt;
===IM服务器===&lt;br /&gt;
&lt;br /&gt;
以下是即时消息服务器返回一个标准的服务查询的例子.&lt;br /&gt;
&lt;br /&gt;
Example 1. 实体查询信息服务器&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt;&lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===群===&lt;br /&gt;
&lt;br /&gt;
下面是在多用户房间里查询服务的例子.&lt;br /&gt;
&lt;br /&gt;
Example 2. 用户查询房间信息&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==实现说明==&lt;br /&gt;
&lt;br /&gt;
一般来说，XMPP标准基金会给每一个发现服务在注册登记时指定一个FORM_TYPE.此外，特定的应用可以定义应用程序以及具体FORM_TYPEs，一个实体可以有多个服务发现的身份（例如，一个XMPP服务器也可能作为一个发布，订阅服务）。因此，它是可能的（允许一个单一的服务发现的结果，发现含有多种服务扩展元素（可能高达2为每个标识元素））。然而，在实践中是不可能发现任何特定服务的结果将包含多个服务扩展元素的发现。&lt;br /&gt;
&lt;br /&gt;
==安全注意事项==&lt;br /&gt;
&lt;br /&gt;
应用程序应确网络上任何实体都能发现服务扩展信息.&lt;br /&gt;
&lt;br /&gt;
==IANA注意事项==&lt;br /&gt;
&lt;br /&gt;
这份文件并不需要与互联网分配编码机构(IANA) [6]互动.&lt;br /&gt;
&lt;br /&gt;
==XMPP协议注册事项==&lt;br /&gt;
This document requires no interaction with the XMPP Registrar [7]; however, specifications following the best practices defined herein may register FORM_TYPEs and field values with the XMPP Registrar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
&lt;br /&gt;
系列：[http://xmpp.org/extensions/ XEP]&lt;br /&gt;
&lt;br /&gt;
序号：0128&lt;br /&gt;
&lt;br /&gt;
发布者：[http://xmpp.org/xsf/ XMPP标准基金会]&lt;br /&gt;
&lt;br /&gt;
状态：[http://www.xmpp.org/extensions/xep-0001.html#states-Final 终结版]&lt;br /&gt;
&lt;br /&gt;
类型：[http://www.xmpp.org/extensions/xep-0001.html#types-Standards%20Track 标准跟踪]&lt;br /&gt;
&lt;br /&gt;
版本：1.0&lt;br /&gt;
&lt;br /&gt;
最后更新：2004-10-20&lt;br /&gt;
&lt;br /&gt;
批准机构：[http://xmpp.org/council/ XMPP理事会]&lt;br /&gt;
&lt;br /&gt;
依赖标准：[[XEP-0004|XEP-0030|XEP-0068|XMPP Core]]&lt;br /&gt;
&lt;br /&gt;
取代: 无&lt;br /&gt;
&lt;br /&gt;
被替代标准：无&lt;br /&gt;
&lt;br /&gt;
缩略名：N/A&lt;br /&gt;
&lt;br /&gt;
原文控制： [http://svn.xmpp.org:18080/browse/XMPP/trunk/extensions/xep-0128.xml HTML] [http://svn.xmpp.org:18080//changelog/~rss/XMPP/trunk/extensions/xep-0128.xml/rss.xml RSS]&lt;br /&gt;
&lt;br /&gt;
本文的其它格式： [http://xmpp.org/extensions/xep-0030.xml XML] [http://xmpp.org/extensions/xep-0128.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Template:XEP附录CDEF}}&lt;br /&gt;
&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
END&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-16T08:14:48Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: /* 安全注意事项 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
开发人员觉得发现服务不能包含更多的信息. 例如, &amp;lt;identity/&amp;gt; 元素不包含'description'属性, 我们可以增加这个属性吗? 答案是可以,但现在不行,太迟了(因为XEP-0030是最终版). 因此,最好的办法是制定一个扩充机制.&lt;br /&gt;
&lt;br /&gt;
让我们参考一个示例. 一个多用户聊天室[2] 可能想要获取更多的信息, 包括房间描述信息,房间主题,房间在线人数和房间所有者的JID.&lt;br /&gt;
&lt;br /&gt;
增加一个新属性的服务发现架构(即使真的是一个选项)不能解决的问题,因为一MUC的服务可能需要提供某些信息，而发布，订阅 [ 3 ]服务可能需要提供其信息。 &lt;br /&gt;
&lt;br /&gt;
一个更好的解决办法是通过一个扩展的信息包括命名空间，提供了一种灵活的结构化数据格式定义合格。 谢天谢地，我们已经拥有了这样一个协议： 数据表格 [ 4 ]。 此外，我们拥有一个共同的方式来定义字段形式用于数据： 数据表格现场标准化 [ 5 ]。 使用这些构建模块，我们可以定义为扩展服务发现结果的一些最佳做法。&lt;br /&gt;
&lt;br /&gt;
==建议==&lt;br /&gt;
如果一个实体的希望提供服务发现协议的扩展信息,出现在回复信息内,它应该这样做:每个独立的&amp;lt;field/&amp;gt;元素包含&amp;lt;value/&amp;gt;点数据信息子节点,所有&amp;lt;field/&amp;gt;元素包含在一个类型为&amp;quot;result&amp;quot;命名空间值为'jabber:x:data'的&amp;lt;x/&amp;gt;元素里.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;Note: A &amp;lt;field/&amp;gt; element MAY contain more than one &amp;lt;value/&amp;gt; child if appropriate.&lt;br /&gt;
&lt;br /&gt;
如果数据字段被用来在由XMPP标准基金会核准的议定书时，他们应该符合相关的XMPP扩展协议规范并按照XEP - 0068定义的规则注册，返回信息中包含一个&amp;lt;field/&amp;gt;元素,其'var'属性为&amp;quot;FORM_TYPE&amp;quot;，其'type'属性的值为&amp;quot;hidden&amp;quot;。&lt;br /&gt;
&lt;br /&gt;
一个实体不能提供'http://jabber.org/protocol/disco#items' 命名空间相关子信息,因为服务发现的核心原则是：一个实体必须确定其身份,不界定的身份与子节点的实体.&lt;br /&gt;
&lt;br /&gt;
==示例==&lt;br /&gt;
===IM服务器===&lt;br /&gt;
&lt;br /&gt;
以下是即时消息服务器返回一个标准的服务查询的例子.&lt;br /&gt;
&lt;br /&gt;
Example 1. 实体查询信息服务器&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt;&lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===群===&lt;br /&gt;
&lt;br /&gt;
下面是在多用户房间里查询服务的例子.&lt;br /&gt;
&lt;br /&gt;
Example 2. 用户查询房间信息&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==实现说明==&lt;br /&gt;
&lt;br /&gt;
一般来说，XMPP标准基金会给每一个发现服务在注册登记时指定一个FORM_TYPE.此外，特定的应用可以定义应用程序以及具体FORM_TYPEs，一个实体可以有多个服务发现的身份（例如，一个XMPP服务器也可能作为一个发布，订阅服务）。因此，它是可能的（允许一个单一的服务发现的结果，发现含有多种服务扩展元素（可能高达2为每个标识元素））。然而，在实践中是不可能发现任何特定服务的结果将包含多个服务扩展元素的发现。&lt;br /&gt;
&lt;br /&gt;
==安全注意事项==&lt;br /&gt;
&lt;br /&gt;
应用程序应确网络上任何实体都能发现服务扩展信息.&lt;br /&gt;
&lt;br /&gt;
==IANA注意事项==&lt;br /&gt;
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [6].&lt;br /&gt;
&lt;br /&gt;
==XMPP协议注册事项==&lt;br /&gt;
This document requires no interaction with the XMPP Registrar [7]; however, specifications following the best practices defined herein may register FORM_TYPEs and field values with the XMPP Registrar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
&lt;br /&gt;
系列：[http://xmpp.org/extensions/ XEP]&lt;br /&gt;
&lt;br /&gt;
序号：0128&lt;br /&gt;
&lt;br /&gt;
发布者：[http://xmpp.org/xsf/ XMPP标准基金会]&lt;br /&gt;
&lt;br /&gt;
状态：[http://www.xmpp.org/extensions/xep-0001.html#states-Final 终结版]&lt;br /&gt;
&lt;br /&gt;
类型：[http://www.xmpp.org/extensions/xep-0001.html#types-Standards%20Track 标准跟踪]&lt;br /&gt;
&lt;br /&gt;
版本：1.0&lt;br /&gt;
&lt;br /&gt;
最后更新：2004-10-20&lt;br /&gt;
&lt;br /&gt;
批准机构：[http://xmpp.org/council/ XMPP理事会]&lt;br /&gt;
&lt;br /&gt;
依赖标准：[[XEP-0004|XEP-0030|XEP-0068|XMPP Core]]&lt;br /&gt;
&lt;br /&gt;
取代: 无&lt;br /&gt;
&lt;br /&gt;
被替代标准：无&lt;br /&gt;
&lt;br /&gt;
缩略名：N/A&lt;br /&gt;
&lt;br /&gt;
原文控制： [http://svn.xmpp.org:18080/browse/XMPP/trunk/extensions/xep-0128.xml HTML] [http://svn.xmpp.org:18080//changelog/~rss/XMPP/trunk/extensions/xep-0128.xml/rss.xml RSS]&lt;br /&gt;
&lt;br /&gt;
本文的其它格式： [http://xmpp.org/extensions/xep-0030.xml XML] [http://xmpp.org/extensions/xep-0128.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Template:XEP附录CDEF}}&lt;br /&gt;
&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
END&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-16T08:10:37Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: /* 实现说明 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
开发人员觉得发现服务不能包含更多的信息. 例如, &amp;lt;identity/&amp;gt; 元素不包含'description'属性, 我们可以增加这个属性吗? 答案是可以,但现在不行,太迟了(因为XEP-0030是最终版). 因此,最好的办法是制定一个扩充机制.&lt;br /&gt;
&lt;br /&gt;
让我们参考一个示例. 一个多用户聊天室[2] 可能想要获取更多的信息, 包括房间描述信息,房间主题,房间在线人数和房间所有者的JID.&lt;br /&gt;
&lt;br /&gt;
增加一个新属性的服务发现架构(即使真的是一个选项)不能解决的问题,因为一MUC的服务可能需要提供某些信息，而发布，订阅 [ 3 ]服务可能需要提供其信息。 &lt;br /&gt;
&lt;br /&gt;
一个更好的解决办法是通过一个扩展的信息包括命名空间，提供了一种灵活的结构化数据格式定义合格。 谢天谢地，我们已经拥有了这样一个协议： 数据表格 [ 4 ]。 此外，我们拥有一个共同的方式来定义字段形式用于数据： 数据表格现场标准化 [ 5 ]。 使用这些构建模块，我们可以定义为扩展服务发现结果的一些最佳做法。&lt;br /&gt;
&lt;br /&gt;
==建议==&lt;br /&gt;
如果一个实体的希望提供服务发现协议的扩展信息,出现在回复信息内,它应该这样做:每个独立的&amp;lt;field/&amp;gt;元素包含&amp;lt;value/&amp;gt;点数据信息子节点,所有&amp;lt;field/&amp;gt;元素包含在一个类型为&amp;quot;result&amp;quot;命名空间值为'jabber:x:data'的&amp;lt;x/&amp;gt;元素里.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;Note: A &amp;lt;field/&amp;gt; element MAY contain more than one &amp;lt;value/&amp;gt; child if appropriate.&lt;br /&gt;
&lt;br /&gt;
如果数据字段被用来在由XMPP标准基金会核准的议定书时，他们应该符合相关的XMPP扩展协议规范并按照XEP - 0068定义的规则注册，返回信息中包含一个&amp;lt;field/&amp;gt;元素,其'var'属性为&amp;quot;FORM_TYPE&amp;quot;，其'type'属性的值为&amp;quot;hidden&amp;quot;。&lt;br /&gt;
&lt;br /&gt;
一个实体不能提供'http://jabber.org/protocol/disco#items' 命名空间相关子信息,因为服务发现的核心原则是：一个实体必须确定其身份,不界定的身份与子节点的实体.&lt;br /&gt;
&lt;br /&gt;
==示例==&lt;br /&gt;
===IM服务器===&lt;br /&gt;
&lt;br /&gt;
以下是即时消息服务器返回一个标准的服务查询的例子.&lt;br /&gt;
&lt;br /&gt;
Example 1. 实体查询信息服务器&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt;&lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===群===&lt;br /&gt;
&lt;br /&gt;
下面是在多用户房间里查询服务的例子.&lt;br /&gt;
&lt;br /&gt;
Example 2. 用户查询房间信息&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==实现说明==&lt;br /&gt;
&lt;br /&gt;
一般来说，XMPP标准基金会给每一个发现服务在注册登记时指定一个FORM_TYPE.此外，特定的应用可以定义应用程序以及具体FORM_TYPEs，一个实体可以有多个服务发现的身份（例如，一个XMPP服务器也可能作为一个发布，订阅服务）。因此，它是可能的（允许一个单一的服务发现的结果，发现含有多种服务扩展元素（可能高达2为每个标识元素））。然而，在实践中是不可能发现任何特定服务的结果将包含多个服务扩展元素的发现。&lt;br /&gt;
&lt;br /&gt;
==安全注意事项==&lt;br /&gt;
Applications SHOULD ensure that information disclosed in a disco extension is appropriate for discovery by any entity on the network.&lt;br /&gt;
&lt;br /&gt;
==IANA注意事项==&lt;br /&gt;
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [6].&lt;br /&gt;
&lt;br /&gt;
==XMPP协议注册事项==&lt;br /&gt;
This document requires no interaction with the XMPP Registrar [7]; however, specifications following the best practices defined herein may register FORM_TYPEs and field values with the XMPP Registrar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
&lt;br /&gt;
系列：[http://xmpp.org/extensions/ XEP]&lt;br /&gt;
&lt;br /&gt;
序号：0128&lt;br /&gt;
&lt;br /&gt;
发布者：[http://xmpp.org/xsf/ XMPP标准基金会]&lt;br /&gt;
&lt;br /&gt;
状态：[http://www.xmpp.org/extensions/xep-0001.html#states-Final 终结版]&lt;br /&gt;
&lt;br /&gt;
类型：[http://www.xmpp.org/extensions/xep-0001.html#types-Standards%20Track 标准跟踪]&lt;br /&gt;
&lt;br /&gt;
版本：1.0&lt;br /&gt;
&lt;br /&gt;
最后更新：2004-10-20&lt;br /&gt;
&lt;br /&gt;
批准机构：[http://xmpp.org/council/ XMPP理事会]&lt;br /&gt;
&lt;br /&gt;
依赖标准：[[XEP-0004|XEP-0030|XEP-0068|XMPP Core]]&lt;br /&gt;
&lt;br /&gt;
取代: 无&lt;br /&gt;
&lt;br /&gt;
被替代标准：无&lt;br /&gt;
&lt;br /&gt;
缩略名：N/A&lt;br /&gt;
&lt;br /&gt;
原文控制： [http://svn.xmpp.org:18080/browse/XMPP/trunk/extensions/xep-0128.xml HTML] [http://svn.xmpp.org:18080//changelog/~rss/XMPP/trunk/extensions/xep-0128.xml/rss.xml RSS]&lt;br /&gt;
&lt;br /&gt;
本文的其它格式： [http://xmpp.org/extensions/xep-0030.xml XML] [http://xmpp.org/extensions/xep-0128.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Template:XEP附录CDEF}}&lt;br /&gt;
&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
END&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-16T07:58:41Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: /* 群 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
开发人员觉得发现服务不能包含更多的信息. 例如, &amp;lt;identity/&amp;gt; 元素不包含'description'属性, 我们可以增加这个属性吗? 答案是可以,但现在不行,太迟了(因为XEP-0030是最终版). 因此,最好的办法是制定一个扩充机制.&lt;br /&gt;
&lt;br /&gt;
让我们参考一个示例. 一个多用户聊天室[2] 可能想要获取更多的信息, 包括房间描述信息,房间主题,房间在线人数和房间所有者的JID.&lt;br /&gt;
&lt;br /&gt;
增加一个新属性的服务发现架构(即使真的是一个选项)不能解决的问题,因为一MUC的服务可能需要提供某些信息，而发布，订阅 [ 3 ]服务可能需要提供其信息。 &lt;br /&gt;
&lt;br /&gt;
一个更好的解决办法是通过一个扩展的信息包括命名空间，提供了一种灵活的结构化数据格式定义合格。 谢天谢地，我们已经拥有了这样一个协议： 数据表格 [ 4 ]。 此外，我们拥有一个共同的方式来定义字段形式用于数据： 数据表格现场标准化 [ 5 ]。 使用这些构建模块，我们可以定义为扩展服务发现结果的一些最佳做法。&lt;br /&gt;
&lt;br /&gt;
==建议==&lt;br /&gt;
如果一个实体的希望提供服务发现协议的扩展信息,出现在回复信息内,它应该这样做:每个独立的&amp;lt;field/&amp;gt;元素包含&amp;lt;value/&amp;gt;点数据信息子节点,所有&amp;lt;field/&amp;gt;元素包含在一个类型为&amp;quot;result&amp;quot;命名空间值为'jabber:x:data'的&amp;lt;x/&amp;gt;元素里.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;Note: A &amp;lt;field/&amp;gt; element MAY contain more than one &amp;lt;value/&amp;gt; child if appropriate.&lt;br /&gt;
&lt;br /&gt;
如果数据字段被用来在由XMPP标准基金会核准的议定书时，他们应该符合相关的XMPP扩展协议规范并按照XEP - 0068定义的规则注册，返回信息中包含一个&amp;lt;field/&amp;gt;元素,其'var'属性为&amp;quot;FORM_TYPE&amp;quot;，其'type'属性的值为&amp;quot;hidden&amp;quot;。&lt;br /&gt;
&lt;br /&gt;
一个实体不能提供'http://jabber.org/protocol/disco#items' 命名空间相关子信息,因为服务发现的核心原则是：一个实体必须确定其身份,不界定的身份与子节点的实体.&lt;br /&gt;
&lt;br /&gt;
==示例==&lt;br /&gt;
===IM服务器===&lt;br /&gt;
&lt;br /&gt;
以下是即时消息服务器返回一个标准的服务查询的例子.&lt;br /&gt;
&lt;br /&gt;
Example 1. 实体查询信息服务器&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt;&lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===群===&lt;br /&gt;
&lt;br /&gt;
下面是在多用户房间里查询服务的例子.&lt;br /&gt;
&lt;br /&gt;
Example 2. 用户查询房间信息&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==实现说明==&lt;br /&gt;
In general, the XMPP Standards Foundation may choose to define at most one FORM_TYPE for each service discovery identity (category+type) registered with the XMPP Registrar. In addition, particular applications may define application-specific FORM_TYPEs as well, and one entity may have multiple service discovery identities (e.g., an XMPP server might also function as a publish-subscribe service). Therefore, it is possible (and allowed) for a single service discovery result to contain multiple service discovery extension elements (potentially up to two elements for each identity). However, in practice it is unlikely that any given service discovery result will contain more than one service discovery extension element.&lt;br /&gt;
&lt;br /&gt;
==安全注意事项==&lt;br /&gt;
Applications SHOULD ensure that information disclosed in a disco extension is appropriate for discovery by any entity on the network.&lt;br /&gt;
&lt;br /&gt;
==IANA注意事项==&lt;br /&gt;
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [6].&lt;br /&gt;
&lt;br /&gt;
==XMPP协议注册事项==&lt;br /&gt;
This document requires no interaction with the XMPP Registrar [7]; however, specifications following the best practices defined herein may register FORM_TYPEs and field values with the XMPP Registrar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
&lt;br /&gt;
系列：[http://xmpp.org/extensions/ XEP]&lt;br /&gt;
&lt;br /&gt;
序号：0128&lt;br /&gt;
&lt;br /&gt;
发布者：[http://xmpp.org/xsf/ XMPP标准基金会]&lt;br /&gt;
&lt;br /&gt;
状态：[http://www.xmpp.org/extensions/xep-0001.html#states-Final 终结版]&lt;br /&gt;
&lt;br /&gt;
类型：[http://www.xmpp.org/extensions/xep-0001.html#types-Standards%20Track 标准跟踪]&lt;br /&gt;
&lt;br /&gt;
版本：1.0&lt;br /&gt;
&lt;br /&gt;
最后更新：2004-10-20&lt;br /&gt;
&lt;br /&gt;
批准机构：[http://xmpp.org/council/ XMPP理事会]&lt;br /&gt;
&lt;br /&gt;
依赖标准：[[XEP-0004|XEP-0030|XEP-0068|XMPP Core]]&lt;br /&gt;
&lt;br /&gt;
取代: 无&lt;br /&gt;
&lt;br /&gt;
被替代标准：无&lt;br /&gt;
&lt;br /&gt;
缩略名：N/A&lt;br /&gt;
&lt;br /&gt;
原文控制： [http://svn.xmpp.org:18080/browse/XMPP/trunk/extensions/xep-0128.xml HTML] [http://svn.xmpp.org:18080//changelog/~rss/XMPP/trunk/extensions/xep-0128.xml/rss.xml RSS]&lt;br /&gt;
&lt;br /&gt;
本文的其它格式： [http://xmpp.org/extensions/xep-0030.xml XML] [http://xmpp.org/extensions/xep-0128.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Template:XEP附录CDEF}}&lt;br /&gt;
&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
END&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-16T07:55:54Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: /* IM服务器 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
开发人员觉得发现服务不能包含更多的信息. 例如, &amp;lt;identity/&amp;gt; 元素不包含'description'属性, 我们可以增加这个属性吗? 答案是可以,但现在不行,太迟了(因为XEP-0030是最终版). 因此,最好的办法是制定一个扩充机制.&lt;br /&gt;
&lt;br /&gt;
让我们参考一个示例. 一个多用户聊天室[2] 可能想要获取更多的信息, 包括房间描述信息,房间主题,房间在线人数和房间所有者的JID.&lt;br /&gt;
&lt;br /&gt;
增加一个新属性的服务发现架构(即使真的是一个选项)不能解决的问题,因为一MUC的服务可能需要提供某些信息，而发布，订阅 [ 3 ]服务可能需要提供其信息。 &lt;br /&gt;
&lt;br /&gt;
一个更好的解决办法是通过一个扩展的信息包括命名空间，提供了一种灵活的结构化数据格式定义合格。 谢天谢地，我们已经拥有了这样一个协议： 数据表格 [ 4 ]。 此外，我们拥有一个共同的方式来定义字段形式用于数据： 数据表格现场标准化 [ 5 ]。 使用这些构建模块，我们可以定义为扩展服务发现结果的一些最佳做法。&lt;br /&gt;
&lt;br /&gt;
==建议==&lt;br /&gt;
如果一个实体的希望提供服务发现协议的扩展信息,出现在回复信息内,它应该这样做:每个独立的&amp;lt;field/&amp;gt;元素包含&amp;lt;value/&amp;gt;点数据信息子节点,所有&amp;lt;field/&amp;gt;元素包含在一个类型为&amp;quot;result&amp;quot;命名空间值为'jabber:x:data'的&amp;lt;x/&amp;gt;元素里.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;Note: A &amp;lt;field/&amp;gt; element MAY contain more than one &amp;lt;value/&amp;gt; child if appropriate.&lt;br /&gt;
&lt;br /&gt;
如果数据字段被用来在由XMPP标准基金会核准的议定书时，他们应该符合相关的XMPP扩展协议规范并按照XEP - 0068定义的规则注册，返回信息中包含一个&amp;lt;field/&amp;gt;元素,其'var'属性为&amp;quot;FORM_TYPE&amp;quot;，其'type'属性的值为&amp;quot;hidden&amp;quot;。&lt;br /&gt;
&lt;br /&gt;
一个实体不能提供'http://jabber.org/protocol/disco#items' 命名空间相关子信息,因为服务发现的核心原则是：一个实体必须确定其身份,不界定的身份与子节点的实体.&lt;br /&gt;
&lt;br /&gt;
==示例==&lt;br /&gt;
===IM服务器===&lt;br /&gt;
&lt;br /&gt;
以下是即时消息服务器返回一个标准的服务查询的例子.&lt;br /&gt;
&lt;br /&gt;
Example 1. 实体查询信息服务器&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt;&lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===群===&lt;br /&gt;
The following is an example of including a disco extension in the IQ result sent by a Multi-User Chat room.&lt;br /&gt;
&lt;br /&gt;
Example 2. User Queries Room for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==实现说明==&lt;br /&gt;
In general, the XMPP Standards Foundation may choose to define at most one FORM_TYPE for each service discovery identity (category+type) registered with the XMPP Registrar. In addition, particular applications may define application-specific FORM_TYPEs as well, and one entity may have multiple service discovery identities (e.g., an XMPP server might also function as a publish-subscribe service). Therefore, it is possible (and allowed) for a single service discovery result to contain multiple service discovery extension elements (potentially up to two elements for each identity). However, in practice it is unlikely that any given service discovery result will contain more than one service discovery extension element.&lt;br /&gt;
&lt;br /&gt;
==安全注意事项==&lt;br /&gt;
Applications SHOULD ensure that information disclosed in a disco extension is appropriate for discovery by any entity on the network.&lt;br /&gt;
&lt;br /&gt;
==IANA注意事项==&lt;br /&gt;
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [6].&lt;br /&gt;
&lt;br /&gt;
==XMPP协议注册事项==&lt;br /&gt;
This document requires no interaction with the XMPP Registrar [7]; however, specifications following the best practices defined herein may register FORM_TYPEs and field values with the XMPP Registrar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
&lt;br /&gt;
系列：[http://xmpp.org/extensions/ XEP]&lt;br /&gt;
&lt;br /&gt;
序号：0128&lt;br /&gt;
&lt;br /&gt;
发布者：[http://xmpp.org/xsf/ XMPP标准基金会]&lt;br /&gt;
&lt;br /&gt;
状态：[http://www.xmpp.org/extensions/xep-0001.html#states-Final 终结版]&lt;br /&gt;
&lt;br /&gt;
类型：[http://www.xmpp.org/extensions/xep-0001.html#types-Standards%20Track 标准跟踪]&lt;br /&gt;
&lt;br /&gt;
版本：1.0&lt;br /&gt;
&lt;br /&gt;
最后更新：2004-10-20&lt;br /&gt;
&lt;br /&gt;
批准机构：[http://xmpp.org/council/ XMPP理事会]&lt;br /&gt;
&lt;br /&gt;
依赖标准：[[XEP-0004|XEP-0030|XEP-0068|XMPP Core]]&lt;br /&gt;
&lt;br /&gt;
取代: 无&lt;br /&gt;
&lt;br /&gt;
被替代标准：无&lt;br /&gt;
&lt;br /&gt;
缩略名：N/A&lt;br /&gt;
&lt;br /&gt;
原文控制： [http://svn.xmpp.org:18080/browse/XMPP/trunk/extensions/xep-0128.xml HTML] [http://svn.xmpp.org:18080//changelog/~rss/XMPP/trunk/extensions/xep-0128.xml/rss.xml RSS]&lt;br /&gt;
&lt;br /&gt;
本文的其它格式： [http://xmpp.org/extensions/xep-0030.xml XML] [http://xmpp.org/extensions/xep-0128.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Template:XEP附录CDEF}}&lt;br /&gt;
&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
END&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-16T07:55:12Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: /* IM服务器 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
开发人员觉得发现服务不能包含更多的信息. 例如, &amp;lt;identity/&amp;gt; 元素不包含'description'属性, 我们可以增加这个属性吗? 答案是可以,但现在不行,太迟了(因为XEP-0030是最终版). 因此,最好的办法是制定一个扩充机制.&lt;br /&gt;
&lt;br /&gt;
让我们参考一个示例. 一个多用户聊天室[2] 可能想要获取更多的信息, 包括房间描述信息,房间主题,房间在线人数和房间所有者的JID.&lt;br /&gt;
&lt;br /&gt;
增加一个新属性的服务发现架构(即使真的是一个选项)不能解决的问题,因为一MUC的服务可能需要提供某些信息，而发布，订阅 [ 3 ]服务可能需要提供其信息。 &lt;br /&gt;
&lt;br /&gt;
一个更好的解决办法是通过一个扩展的信息包括命名空间，提供了一种灵活的结构化数据格式定义合格。 谢天谢地，我们已经拥有了这样一个协议： 数据表格 [ 4 ]。 此外，我们拥有一个共同的方式来定义字段形式用于数据： 数据表格现场标准化 [ 5 ]。 使用这些构建模块，我们可以定义为扩展服务发现结果的一些最佳做法。&lt;br /&gt;
&lt;br /&gt;
==建议==&lt;br /&gt;
如果一个实体的希望提供服务发现协议的扩展信息,出现在回复信息内,它应该这样做:每个独立的&amp;lt;field/&amp;gt;元素包含&amp;lt;value/&amp;gt;点数据信息子节点,所有&amp;lt;field/&amp;gt;元素包含在一个类型为&amp;quot;result&amp;quot;命名空间值为'jabber:x:data'的&amp;lt;x/&amp;gt;元素里.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;Note: A &amp;lt;field/&amp;gt; element MAY contain more than one &amp;lt;value/&amp;gt; child if appropriate.&lt;br /&gt;
&lt;br /&gt;
如果数据字段被用来在由XMPP标准基金会核准的议定书时，他们应该符合相关的XMPP扩展协议规范并按照XEP - 0068定义的规则注册，返回信息中包含一个&amp;lt;field/&amp;gt;元素,其'var'属性为&amp;quot;FORM_TYPE&amp;quot;，其'type'属性的值为&amp;quot;hidden&amp;quot;。&lt;br /&gt;
&lt;br /&gt;
一个实体不能提供'http://jabber.org/protocol/disco#items' 命名空间相关子信息,因为服务发现的核心原则是：一个实体必须确定其身份,不界定的身份与子节点的实体.&lt;br /&gt;
&lt;br /&gt;
==示例==&lt;br /&gt;
===IM服务器===&lt;br /&gt;
&lt;br /&gt;
以下是即时消息服务器返回一个标准的服务查询的例子.&lt;br /&gt;
&lt;br /&gt;
Example 1. 实体查询信息服务器&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt;&lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===群===&lt;br /&gt;
The following is an example of including a disco extension in the IQ result sent by a Multi-User Chat room.&lt;br /&gt;
&lt;br /&gt;
Example 2. User Queries Room for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==实现说明==&lt;br /&gt;
In general, the XMPP Standards Foundation may choose to define at most one FORM_TYPE for each service discovery identity (category+type) registered with the XMPP Registrar. In addition, particular applications may define application-specific FORM_TYPEs as well, and one entity may have multiple service discovery identities (e.g., an XMPP server might also function as a publish-subscribe service). Therefore, it is possible (and allowed) for a single service discovery result to contain multiple service discovery extension elements (potentially up to two elements for each identity). However, in practice it is unlikely that any given service discovery result will contain more than one service discovery extension element.&lt;br /&gt;
&lt;br /&gt;
==安全注意事项==&lt;br /&gt;
Applications SHOULD ensure that information disclosed in a disco extension is appropriate for discovery by any entity on the network.&lt;br /&gt;
&lt;br /&gt;
==IANA注意事项==&lt;br /&gt;
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [6].&lt;br /&gt;
&lt;br /&gt;
==XMPP协议注册事项==&lt;br /&gt;
This document requires no interaction with the XMPP Registrar [7]; however, specifications following the best practices defined herein may register FORM_TYPEs and field values with the XMPP Registrar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
&lt;br /&gt;
系列：[http://xmpp.org/extensions/ XEP]&lt;br /&gt;
&lt;br /&gt;
序号：0128&lt;br /&gt;
&lt;br /&gt;
发布者：[http://xmpp.org/xsf/ XMPP标准基金会]&lt;br /&gt;
&lt;br /&gt;
状态：[http://www.xmpp.org/extensions/xep-0001.html#states-Final 终结版]&lt;br /&gt;
&lt;br /&gt;
类型：[http://www.xmpp.org/extensions/xep-0001.html#types-Standards%20Track 标准跟踪]&lt;br /&gt;
&lt;br /&gt;
版本：1.0&lt;br /&gt;
&lt;br /&gt;
最后更新：2004-10-20&lt;br /&gt;
&lt;br /&gt;
批准机构：[http://xmpp.org/council/ XMPP理事会]&lt;br /&gt;
&lt;br /&gt;
依赖标准：[[XEP-0004|XEP-0030|XEP-0068|XMPP Core]]&lt;br /&gt;
&lt;br /&gt;
取代: 无&lt;br /&gt;
&lt;br /&gt;
被替代标准：无&lt;br /&gt;
&lt;br /&gt;
缩略名：N/A&lt;br /&gt;
&lt;br /&gt;
原文控制： [http://svn.xmpp.org:18080/browse/XMPP/trunk/extensions/xep-0128.xml HTML] [http://svn.xmpp.org:18080//changelog/~rss/XMPP/trunk/extensions/xep-0128.xml/rss.xml RSS]&lt;br /&gt;
&lt;br /&gt;
本文的其它格式： [http://xmpp.org/extensions/xep-0030.xml XML] [http://xmpp.org/extensions/xep-0128.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Template:XEP附录CDEF}}&lt;br /&gt;
&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
END&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-16T07:54:43Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: /* IM服务器 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
开发人员觉得发现服务不能包含更多的信息. 例如, &amp;lt;identity/&amp;gt; 元素不包含'description'属性, 我们可以增加这个属性吗? 答案是可以,但现在不行,太迟了(因为XEP-0030是最终版). 因此,最好的办法是制定一个扩充机制.&lt;br /&gt;
&lt;br /&gt;
让我们参考一个示例. 一个多用户聊天室[2] 可能想要获取更多的信息, 包括房间描述信息,房间主题,房间在线人数和房间所有者的JID.&lt;br /&gt;
&lt;br /&gt;
增加一个新属性的服务发现架构(即使真的是一个选项)不能解决的问题,因为一MUC的服务可能需要提供某些信息，而发布，订阅 [ 3 ]服务可能需要提供其信息。 &lt;br /&gt;
&lt;br /&gt;
一个更好的解决办法是通过一个扩展的信息包括命名空间，提供了一种灵活的结构化数据格式定义合格。 谢天谢地，我们已经拥有了这样一个协议： 数据表格 [ 4 ]。 此外，我们拥有一个共同的方式来定义字段形式用于数据： 数据表格现场标准化 [ 5 ]。 使用这些构建模块，我们可以定义为扩展服务发现结果的一些最佳做法。&lt;br /&gt;
&lt;br /&gt;
==建议==&lt;br /&gt;
如果一个实体的希望提供服务发现协议的扩展信息,出现在回复信息内,它应该这样做:每个独立的&amp;lt;field/&amp;gt;元素包含&amp;lt;value/&amp;gt;点数据信息子节点,所有&amp;lt;field/&amp;gt;元素包含在一个类型为&amp;quot;result&amp;quot;命名空间值为'jabber:x:data'的&amp;lt;x/&amp;gt;元素里.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;Note: A &amp;lt;field/&amp;gt; element MAY contain more than one &amp;lt;value/&amp;gt; child if appropriate.&lt;br /&gt;
&lt;br /&gt;
如果数据字段被用来在由XMPP标准基金会核准的议定书时，他们应该符合相关的XMPP扩展协议规范并按照XEP - 0068定义的规则注册，返回信息中包含一个&amp;lt;field/&amp;gt;元素,其'var'属性为&amp;quot;FORM_TYPE&amp;quot;，其'type'属性的值为&amp;quot;hidden&amp;quot;。&lt;br /&gt;
&lt;br /&gt;
一个实体不能提供'http://jabber.org/protocol/disco#items' 命名空间相关子信息,因为服务发现的核心原则是：一个实体必须确定其身份,不界定的身份与子节点的实体.&lt;br /&gt;
&lt;br /&gt;
==示例==&lt;br /&gt;
===IM服务器===&lt;br /&gt;
&lt;br /&gt;
以下是即时消息服务器返回一个标准的服务查询的例子.&lt;br /&gt;
&lt;br /&gt;
Example 1. 实体查询信息服务器&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===群===&lt;br /&gt;
The following is an example of including a disco extension in the IQ result sent by a Multi-User Chat room.&lt;br /&gt;
&lt;br /&gt;
Example 2. User Queries Room for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==实现说明==&lt;br /&gt;
In general, the XMPP Standards Foundation may choose to define at most one FORM_TYPE for each service discovery identity (category+type) registered with the XMPP Registrar. In addition, particular applications may define application-specific FORM_TYPEs as well, and one entity may have multiple service discovery identities (e.g., an XMPP server might also function as a publish-subscribe service). Therefore, it is possible (and allowed) for a single service discovery result to contain multiple service discovery extension elements (potentially up to two elements for each identity). However, in practice it is unlikely that any given service discovery result will contain more than one service discovery extension element.&lt;br /&gt;
&lt;br /&gt;
==安全注意事项==&lt;br /&gt;
Applications SHOULD ensure that information disclosed in a disco extension is appropriate for discovery by any entity on the network.&lt;br /&gt;
&lt;br /&gt;
==IANA注意事项==&lt;br /&gt;
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [6].&lt;br /&gt;
&lt;br /&gt;
==XMPP协议注册事项==&lt;br /&gt;
This document requires no interaction with the XMPP Registrar [7]; however, specifications following the best practices defined herein may register FORM_TYPEs and field values with the XMPP Registrar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
&lt;br /&gt;
系列：[http://xmpp.org/extensions/ XEP]&lt;br /&gt;
&lt;br /&gt;
序号：0128&lt;br /&gt;
&lt;br /&gt;
发布者：[http://xmpp.org/xsf/ XMPP标准基金会]&lt;br /&gt;
&lt;br /&gt;
状态：[http://www.xmpp.org/extensions/xep-0001.html#states-Final 终结版]&lt;br /&gt;
&lt;br /&gt;
类型：[http://www.xmpp.org/extensions/xep-0001.html#types-Standards%20Track 标准跟踪]&lt;br /&gt;
&lt;br /&gt;
版本：1.0&lt;br /&gt;
&lt;br /&gt;
最后更新：2004-10-20&lt;br /&gt;
&lt;br /&gt;
批准机构：[http://xmpp.org/council/ XMPP理事会]&lt;br /&gt;
&lt;br /&gt;
依赖标准：[[XEP-0004|XEP-0030|XEP-0068|XMPP Core]]&lt;br /&gt;
&lt;br /&gt;
取代: 无&lt;br /&gt;
&lt;br /&gt;
被替代标准：无&lt;br /&gt;
&lt;br /&gt;
缩略名：N/A&lt;br /&gt;
&lt;br /&gt;
原文控制： [http://svn.xmpp.org:18080/browse/XMPP/trunk/extensions/xep-0128.xml HTML] [http://svn.xmpp.org:18080//changelog/~rss/XMPP/trunk/extensions/xep-0128.xml/rss.xml RSS]&lt;br /&gt;
&lt;br /&gt;
本文的其它格式： [http://xmpp.org/extensions/xep-0030.xml XML] [http://xmpp.org/extensions/xep-0128.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Template:XEP附录CDEF}}&lt;br /&gt;
&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
END&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-16T07:54:18Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: /* IM服务器 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
开发人员觉得发现服务不能包含更多的信息. 例如, &amp;lt;identity/&amp;gt; 元素不包含'description'属性, 我们可以增加这个属性吗? 答案是可以,但现在不行,太迟了(因为XEP-0030是最终版). 因此,最好的办法是制定一个扩充机制.&lt;br /&gt;
&lt;br /&gt;
让我们参考一个示例. 一个多用户聊天室[2] 可能想要获取更多的信息, 包括房间描述信息,房间主题,房间在线人数和房间所有者的JID.&lt;br /&gt;
&lt;br /&gt;
增加一个新属性的服务发现架构(即使真的是一个选项)不能解决的问题,因为一MUC的服务可能需要提供某些信息，而发布，订阅 [ 3 ]服务可能需要提供其信息。 &lt;br /&gt;
&lt;br /&gt;
一个更好的解决办法是通过一个扩展的信息包括命名空间，提供了一种灵活的结构化数据格式定义合格。 谢天谢地，我们已经拥有了这样一个协议： 数据表格 [ 4 ]。 此外，我们拥有一个共同的方式来定义字段形式用于数据： 数据表格现场标准化 [ 5 ]。 使用这些构建模块，我们可以定义为扩展服务发现结果的一些最佳做法。&lt;br /&gt;
&lt;br /&gt;
==建议==&lt;br /&gt;
如果一个实体的希望提供服务发现协议的扩展信息,出现在回复信息内,它应该这样做:每个独立的&amp;lt;field/&amp;gt;元素包含&amp;lt;value/&amp;gt;点数据信息子节点,所有&amp;lt;field/&amp;gt;元素包含在一个类型为&amp;quot;result&amp;quot;命名空间值为'jabber:x:data'的&amp;lt;x/&amp;gt;元素里.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;Note: A &amp;lt;field/&amp;gt; element MAY contain more than one &amp;lt;value/&amp;gt; child if appropriate.&lt;br /&gt;
&lt;br /&gt;
如果数据字段被用来在由XMPP标准基金会核准的议定书时，他们应该符合相关的XMPP扩展协议规范并按照XEP - 0068定义的规则注册，返回信息中包含一个&amp;lt;field/&amp;gt;元素,其'var'属性为&amp;quot;FORM_TYPE&amp;quot;，其'type'属性的值为&amp;quot;hidden&amp;quot;。&lt;br /&gt;
&lt;br /&gt;
一个实体不能提供'http://jabber.org/protocol/disco#items' 命名空间相关子信息,因为服务发现的核心原则是：一个实体必须确定其身份,不界定的身份与子节点的实体.&lt;br /&gt;
&lt;br /&gt;
==示例==&lt;br /&gt;
===IM服务器===&lt;br /&gt;
&lt;br /&gt;
以下是即时消息服务器返回一个标准的服务查询的例子.&lt;br /&gt;
&lt;br /&gt;
Example 1. 实体查询信息服务器&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===群===&lt;br /&gt;
The following is an example of including a disco extension in the IQ result sent by a Multi-User Chat room.&lt;br /&gt;
&lt;br /&gt;
Example 2. User Queries Room for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==实现说明==&lt;br /&gt;
In general, the XMPP Standards Foundation may choose to define at most one FORM_TYPE for each service discovery identity (category+type) registered with the XMPP Registrar. In addition, particular applications may define application-specific FORM_TYPEs as well, and one entity may have multiple service discovery identities (e.g., an XMPP server might also function as a publish-subscribe service). Therefore, it is possible (and allowed) for a single service discovery result to contain multiple service discovery extension elements (potentially up to two elements for each identity). However, in practice it is unlikely that any given service discovery result will contain more than one service discovery extension element.&lt;br /&gt;
&lt;br /&gt;
==安全注意事项==&lt;br /&gt;
Applications SHOULD ensure that information disclosed in a disco extension is appropriate for discovery by any entity on the network.&lt;br /&gt;
&lt;br /&gt;
==IANA注意事项==&lt;br /&gt;
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [6].&lt;br /&gt;
&lt;br /&gt;
==XMPP协议注册事项==&lt;br /&gt;
This document requires no interaction with the XMPP Registrar [7]; however, specifications following the best practices defined herein may register FORM_TYPEs and field values with the XMPP Registrar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
&lt;br /&gt;
系列：[http://xmpp.org/extensions/ XEP]&lt;br /&gt;
&lt;br /&gt;
序号：0128&lt;br /&gt;
&lt;br /&gt;
发布者：[http://xmpp.org/xsf/ XMPP标准基金会]&lt;br /&gt;
&lt;br /&gt;
状态：[http://www.xmpp.org/extensions/xep-0001.html#states-Final 终结版]&lt;br /&gt;
&lt;br /&gt;
类型：[http://www.xmpp.org/extensions/xep-0001.html#types-Standards%20Track 标准跟踪]&lt;br /&gt;
&lt;br /&gt;
版本：1.0&lt;br /&gt;
&lt;br /&gt;
最后更新：2004-10-20&lt;br /&gt;
&lt;br /&gt;
批准机构：[http://xmpp.org/council/ XMPP理事会]&lt;br /&gt;
&lt;br /&gt;
依赖标准：[[XEP-0004|XEP-0030|XEP-0068|XMPP Core]]&lt;br /&gt;
&lt;br /&gt;
取代: 无&lt;br /&gt;
&lt;br /&gt;
被替代标准：无&lt;br /&gt;
&lt;br /&gt;
缩略名：N/A&lt;br /&gt;
&lt;br /&gt;
原文控制： [http://svn.xmpp.org:18080/browse/XMPP/trunk/extensions/xep-0128.xml HTML] [http://svn.xmpp.org:18080//changelog/~rss/XMPP/trunk/extensions/xep-0128.xml/rss.xml RSS]&lt;br /&gt;
&lt;br /&gt;
本文的其它格式： [http://xmpp.org/extensions/xep-0030.xml XML] [http://xmpp.org/extensions/xep-0128.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Template:XEP附录CDEF}}&lt;br /&gt;
&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
END&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-16T07:54:05Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: /* IM服务器 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
开发人员觉得发现服务不能包含更多的信息. 例如, &amp;lt;identity/&amp;gt; 元素不包含'description'属性, 我们可以增加这个属性吗? 答案是可以,但现在不行,太迟了(因为XEP-0030是最终版). 因此,最好的办法是制定一个扩充机制.&lt;br /&gt;
&lt;br /&gt;
让我们参考一个示例. 一个多用户聊天室[2] 可能想要获取更多的信息, 包括房间描述信息,房间主题,房间在线人数和房间所有者的JID.&lt;br /&gt;
&lt;br /&gt;
增加一个新属性的服务发现架构(即使真的是一个选项)不能解决的问题,因为一MUC的服务可能需要提供某些信息，而发布，订阅 [ 3 ]服务可能需要提供其信息。 &lt;br /&gt;
&lt;br /&gt;
一个更好的解决办法是通过一个扩展的信息包括命名空间，提供了一种灵活的结构化数据格式定义合格。 谢天谢地，我们已经拥有了这样一个协议： 数据表格 [ 4 ]。 此外，我们拥有一个共同的方式来定义字段形式用于数据： 数据表格现场标准化 [ 5 ]。 使用这些构建模块，我们可以定义为扩展服务发现结果的一些最佳做法。&lt;br /&gt;
&lt;br /&gt;
==建议==&lt;br /&gt;
如果一个实体的希望提供服务发现协议的扩展信息,出现在回复信息内,它应该这样做:每个独立的&amp;lt;field/&amp;gt;元素包含&amp;lt;value/&amp;gt;点数据信息子节点,所有&amp;lt;field/&amp;gt;元素包含在一个类型为&amp;quot;result&amp;quot;命名空间值为'jabber:x:data'的&amp;lt;x/&amp;gt;元素里.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;Note: A &amp;lt;field/&amp;gt; element MAY contain more than one &amp;lt;value/&amp;gt; child if appropriate.&lt;br /&gt;
&lt;br /&gt;
如果数据字段被用来在由XMPP标准基金会核准的议定书时，他们应该符合相关的XMPP扩展协议规范并按照XEP - 0068定义的规则注册，返回信息中包含一个&amp;lt;field/&amp;gt;元素,其'var'属性为&amp;quot;FORM_TYPE&amp;quot;，其'type'属性的值为&amp;quot;hidden&amp;quot;。&lt;br /&gt;
&lt;br /&gt;
一个实体不能提供'http://jabber.org/protocol/disco#items' 命名空间相关子信息,因为服务发现的核心原则是：一个实体必须确定其身份,不界定的身份与子节点的实体.&lt;br /&gt;
&lt;br /&gt;
==示例==&lt;br /&gt;
===IM服务器===&lt;br /&gt;
&lt;br /&gt;
以下是即时消息服务器返回一个标准的服务查询的例子.&lt;br /&gt;
&lt;br /&gt;
Example 1. 实体查询的信息服务器&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===群===&lt;br /&gt;
The following is an example of including a disco extension in the IQ result sent by a Multi-User Chat room.&lt;br /&gt;
&lt;br /&gt;
Example 2. User Queries Room for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==实现说明==&lt;br /&gt;
In general, the XMPP Standards Foundation may choose to define at most one FORM_TYPE for each service discovery identity (category+type) registered with the XMPP Registrar. In addition, particular applications may define application-specific FORM_TYPEs as well, and one entity may have multiple service discovery identities (e.g., an XMPP server might also function as a publish-subscribe service). Therefore, it is possible (and allowed) for a single service discovery result to contain multiple service discovery extension elements (potentially up to two elements for each identity). However, in practice it is unlikely that any given service discovery result will contain more than one service discovery extension element.&lt;br /&gt;
&lt;br /&gt;
==安全注意事项==&lt;br /&gt;
Applications SHOULD ensure that information disclosed in a disco extension is appropriate for discovery by any entity on the network.&lt;br /&gt;
&lt;br /&gt;
==IANA注意事项==&lt;br /&gt;
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [6].&lt;br /&gt;
&lt;br /&gt;
==XMPP协议注册事项==&lt;br /&gt;
This document requires no interaction with the XMPP Registrar [7]; however, specifications following the best practices defined herein may register FORM_TYPEs and field values with the XMPP Registrar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
&lt;br /&gt;
系列：[http://xmpp.org/extensions/ XEP]&lt;br /&gt;
&lt;br /&gt;
序号：0128&lt;br /&gt;
&lt;br /&gt;
发布者：[http://xmpp.org/xsf/ XMPP标准基金会]&lt;br /&gt;
&lt;br /&gt;
状态：[http://www.xmpp.org/extensions/xep-0001.html#states-Final 终结版]&lt;br /&gt;
&lt;br /&gt;
类型：[http://www.xmpp.org/extensions/xep-0001.html#types-Standards%20Track 标准跟踪]&lt;br /&gt;
&lt;br /&gt;
版本：1.0&lt;br /&gt;
&lt;br /&gt;
最后更新：2004-10-20&lt;br /&gt;
&lt;br /&gt;
批准机构：[http://xmpp.org/council/ XMPP理事会]&lt;br /&gt;
&lt;br /&gt;
依赖标准：[[XEP-0004|XEP-0030|XEP-0068|XMPP Core]]&lt;br /&gt;
&lt;br /&gt;
取代: 无&lt;br /&gt;
&lt;br /&gt;
被替代标准：无&lt;br /&gt;
&lt;br /&gt;
缩略名：N/A&lt;br /&gt;
&lt;br /&gt;
原文控制： [http://svn.xmpp.org:18080/browse/XMPP/trunk/extensions/xep-0128.xml HTML] [http://svn.xmpp.org:18080//changelog/~rss/XMPP/trunk/extensions/xep-0128.xml/rss.xml RSS]&lt;br /&gt;
&lt;br /&gt;
本文的其它格式： [http://xmpp.org/extensions/xep-0030.xml XML] [http://xmpp.org/extensions/xep-0128.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Template:XEP附录CDEF}}&lt;br /&gt;
&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
END&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-16T07:52:41Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: /* IM服务器 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
开发人员觉得发现服务不能包含更多的信息. 例如, &amp;lt;identity/&amp;gt; 元素不包含'description'属性, 我们可以增加这个属性吗? 答案是可以,但现在不行,太迟了(因为XEP-0030是最终版). 因此,最好的办法是制定一个扩充机制.&lt;br /&gt;
&lt;br /&gt;
让我们参考一个示例. 一个多用户聊天室[2] 可能想要获取更多的信息, 包括房间描述信息,房间主题,房间在线人数和房间所有者的JID.&lt;br /&gt;
&lt;br /&gt;
增加一个新属性的服务发现架构(即使真的是一个选项)不能解决的问题,因为一MUC的服务可能需要提供某些信息，而发布，订阅 [ 3 ]服务可能需要提供其信息。 &lt;br /&gt;
&lt;br /&gt;
一个更好的解决办法是通过一个扩展的信息包括命名空间，提供了一种灵活的结构化数据格式定义合格。 谢天谢地，我们已经拥有了这样一个协议： 数据表格 [ 4 ]。 此外，我们拥有一个共同的方式来定义字段形式用于数据： 数据表格现场标准化 [ 5 ]。 使用这些构建模块，我们可以定义为扩展服务发现结果的一些最佳做法。&lt;br /&gt;
&lt;br /&gt;
==建议==&lt;br /&gt;
如果一个实体的希望提供服务发现协议的扩展信息,出现在回复信息内,它应该这样做:每个独立的&amp;lt;field/&amp;gt;元素包含&amp;lt;value/&amp;gt;点数据信息子节点,所有&amp;lt;field/&amp;gt;元素包含在一个类型为&amp;quot;result&amp;quot;命名空间值为'jabber:x:data'的&amp;lt;x/&amp;gt;元素里.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;Note: A &amp;lt;field/&amp;gt; element MAY contain more than one &amp;lt;value/&amp;gt; child if appropriate.&lt;br /&gt;
&lt;br /&gt;
如果数据字段被用来在由XMPP标准基金会核准的议定书时，他们应该符合相关的XMPP扩展协议规范并按照XEP - 0068定义的规则注册，返回信息中包含一个&amp;lt;field/&amp;gt;元素,其'var'属性为&amp;quot;FORM_TYPE&amp;quot;，其'type'属性的值为&amp;quot;hidden&amp;quot;。&lt;br /&gt;
&lt;br /&gt;
一个实体不能提供'http://jabber.org/protocol/disco#items' 命名空间相关子信息,因为服务发现的核心原则是：一个实体必须确定其身份,不界定的身份与子节点的实体.&lt;br /&gt;
&lt;br /&gt;
==示例==&lt;br /&gt;
===IM服务器===&lt;br /&gt;
&lt;br /&gt;
以下是即时消息服务器返回一个标准的服务查询的例子.&lt;br /&gt;
&lt;br /&gt;
Example 1. Entity Queries Server for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===群===&lt;br /&gt;
The following is an example of including a disco extension in the IQ result sent by a Multi-User Chat room.&lt;br /&gt;
&lt;br /&gt;
Example 2. User Queries Room for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==实现说明==&lt;br /&gt;
In general, the XMPP Standards Foundation may choose to define at most one FORM_TYPE for each service discovery identity (category+type) registered with the XMPP Registrar. In addition, particular applications may define application-specific FORM_TYPEs as well, and one entity may have multiple service discovery identities (e.g., an XMPP server might also function as a publish-subscribe service). Therefore, it is possible (and allowed) for a single service discovery result to contain multiple service discovery extension elements (potentially up to two elements for each identity). However, in practice it is unlikely that any given service discovery result will contain more than one service discovery extension element.&lt;br /&gt;
&lt;br /&gt;
==安全注意事项==&lt;br /&gt;
Applications SHOULD ensure that information disclosed in a disco extension is appropriate for discovery by any entity on the network.&lt;br /&gt;
&lt;br /&gt;
==IANA注意事项==&lt;br /&gt;
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [6].&lt;br /&gt;
&lt;br /&gt;
==XMPP协议注册事项==&lt;br /&gt;
This document requires no interaction with the XMPP Registrar [7]; however, specifications following the best practices defined herein may register FORM_TYPEs and field values with the XMPP Registrar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
&lt;br /&gt;
系列：[http://xmpp.org/extensions/ XEP]&lt;br /&gt;
&lt;br /&gt;
序号：0128&lt;br /&gt;
&lt;br /&gt;
发布者：[http://xmpp.org/xsf/ XMPP标准基金会]&lt;br /&gt;
&lt;br /&gt;
状态：[http://www.xmpp.org/extensions/xep-0001.html#states-Final 终结版]&lt;br /&gt;
&lt;br /&gt;
类型：[http://www.xmpp.org/extensions/xep-0001.html#types-Standards%20Track 标准跟踪]&lt;br /&gt;
&lt;br /&gt;
版本：1.0&lt;br /&gt;
&lt;br /&gt;
最后更新：2004-10-20&lt;br /&gt;
&lt;br /&gt;
批准机构：[http://xmpp.org/council/ XMPP理事会]&lt;br /&gt;
&lt;br /&gt;
依赖标准：[[XEP-0004|XEP-0030|XEP-0068|XMPP Core]]&lt;br /&gt;
&lt;br /&gt;
取代: 无&lt;br /&gt;
&lt;br /&gt;
被替代标准：无&lt;br /&gt;
&lt;br /&gt;
缩略名：N/A&lt;br /&gt;
&lt;br /&gt;
原文控制： [http://svn.xmpp.org:18080/browse/XMPP/trunk/extensions/xep-0128.xml HTML] [http://svn.xmpp.org:18080//changelog/~rss/XMPP/trunk/extensions/xep-0128.xml/rss.xml RSS]&lt;br /&gt;
&lt;br /&gt;
本文的其它格式： [http://xmpp.org/extensions/xep-0030.xml XML] [http://xmpp.org/extensions/xep-0128.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Template:XEP附录CDEF}}&lt;br /&gt;
&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
END&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-16T07:50:10Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: /* IM服务器 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
开发人员觉得发现服务不能包含更多的信息. 例如, &amp;lt;identity/&amp;gt; 元素不包含'description'属性, 我们可以增加这个属性吗? 答案是可以,但现在不行,太迟了(因为XEP-0030是最终版). 因此,最好的办法是制定一个扩充机制.&lt;br /&gt;
&lt;br /&gt;
让我们参考一个示例. 一个多用户聊天室[2] 可能想要获取更多的信息, 包括房间描述信息,房间主题,房间在线人数和房间所有者的JID.&lt;br /&gt;
&lt;br /&gt;
增加一个新属性的服务发现架构(即使真的是一个选项)不能解决的问题,因为一MUC的服务可能需要提供某些信息，而发布，订阅 [ 3 ]服务可能需要提供其信息。 &lt;br /&gt;
&lt;br /&gt;
一个更好的解决办法是通过一个扩展的信息包括命名空间，提供了一种灵活的结构化数据格式定义合格。 谢天谢地，我们已经拥有了这样一个协议： 数据表格 [ 4 ]。 此外，我们拥有一个共同的方式来定义字段形式用于数据： 数据表格现场标准化 [ 5 ]。 使用这些构建模块，我们可以定义为扩展服务发现结果的一些最佳做法。&lt;br /&gt;
&lt;br /&gt;
==建议==&lt;br /&gt;
如果一个实体的希望提供服务发现协议的扩展信息,出现在回复信息内,它应该这样做:每个独立的&amp;lt;field/&amp;gt;元素包含&amp;lt;value/&amp;gt;点数据信息子节点,所有&amp;lt;field/&amp;gt;元素包含在一个类型为&amp;quot;result&amp;quot;命名空间值为'jabber:x:data'的&amp;lt;x/&amp;gt;元素里.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;Note: A &amp;lt;field/&amp;gt; element MAY contain more than one &amp;lt;value/&amp;gt; child if appropriate.&lt;br /&gt;
&lt;br /&gt;
如果数据字段被用来在由XMPP标准基金会核准的议定书时，他们应该符合相关的XMPP扩展协议规范并按照XEP - 0068定义的规则注册，返回信息中包含一个&amp;lt;field/&amp;gt;元素,其'var'属性为&amp;quot;FORM_TYPE&amp;quot;，其'type'属性的值为&amp;quot;hidden&amp;quot;。&lt;br /&gt;
&lt;br /&gt;
一个实体不能提供'http://jabber.org/protocol/disco#items' 命名空间相关子信息,因为服务发现的核心原则是：一个实体必须确定其身份,不界定的身份与子节点的实体.&lt;br /&gt;
&lt;br /&gt;
==示例==&lt;br /&gt;
===IM服务器===&lt;br /&gt;
&lt;br /&gt;
以下是包括在一个标准的IQ即时消息服务器发送扩展信息的例子.&lt;br /&gt;
&lt;br /&gt;
Example 1. Entity Queries Server for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===群===&lt;br /&gt;
The following is an example of including a disco extension in the IQ result sent by a Multi-User Chat room.&lt;br /&gt;
&lt;br /&gt;
Example 2. User Queries Room for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==实现说明==&lt;br /&gt;
In general, the XMPP Standards Foundation may choose to define at most one FORM_TYPE for each service discovery identity (category+type) registered with the XMPP Registrar. In addition, particular applications may define application-specific FORM_TYPEs as well, and one entity may have multiple service discovery identities (e.g., an XMPP server might also function as a publish-subscribe service). Therefore, it is possible (and allowed) for a single service discovery result to contain multiple service discovery extension elements (potentially up to two elements for each identity). However, in practice it is unlikely that any given service discovery result will contain more than one service discovery extension element.&lt;br /&gt;
&lt;br /&gt;
==安全注意事项==&lt;br /&gt;
Applications SHOULD ensure that information disclosed in a disco extension is appropriate for discovery by any entity on the network.&lt;br /&gt;
&lt;br /&gt;
==IANA注意事项==&lt;br /&gt;
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [6].&lt;br /&gt;
&lt;br /&gt;
==XMPP协议注册事项==&lt;br /&gt;
This document requires no interaction with the XMPP Registrar [7]; however, specifications following the best practices defined herein may register FORM_TYPEs and field values with the XMPP Registrar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
&lt;br /&gt;
系列：[http://xmpp.org/extensions/ XEP]&lt;br /&gt;
&lt;br /&gt;
序号：0128&lt;br /&gt;
&lt;br /&gt;
发布者：[http://xmpp.org/xsf/ XMPP标准基金会]&lt;br /&gt;
&lt;br /&gt;
状态：[http://www.xmpp.org/extensions/xep-0001.html#states-Final 终结版]&lt;br /&gt;
&lt;br /&gt;
类型：[http://www.xmpp.org/extensions/xep-0001.html#types-Standards%20Track 标准跟踪]&lt;br /&gt;
&lt;br /&gt;
版本：1.0&lt;br /&gt;
&lt;br /&gt;
最后更新：2004-10-20&lt;br /&gt;
&lt;br /&gt;
批准机构：[http://xmpp.org/council/ XMPP理事会]&lt;br /&gt;
&lt;br /&gt;
依赖标准：[[XEP-0004|XEP-0030|XEP-0068|XMPP Core]]&lt;br /&gt;
&lt;br /&gt;
取代: 无&lt;br /&gt;
&lt;br /&gt;
被替代标准：无&lt;br /&gt;
&lt;br /&gt;
缩略名：N/A&lt;br /&gt;
&lt;br /&gt;
原文控制： [http://svn.xmpp.org:18080/browse/XMPP/trunk/extensions/xep-0128.xml HTML] [http://svn.xmpp.org:18080//changelog/~rss/XMPP/trunk/extensions/xep-0128.xml/rss.xml RSS]&lt;br /&gt;
&lt;br /&gt;
本文的其它格式： [http://xmpp.org/extensions/xep-0030.xml XML] [http://xmpp.org/extensions/xep-0128.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Template:XEP附录CDEF}}&lt;br /&gt;
&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
END&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-16T07:46:04Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: /* 建议 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
开发人员觉得发现服务不能包含更多的信息. 例如, &amp;lt;identity/&amp;gt; 元素不包含'description'属性, 我们可以增加这个属性吗? 答案是可以,但现在不行,太迟了(因为XEP-0030是最终版). 因此,最好的办法是制定一个扩充机制.&lt;br /&gt;
&lt;br /&gt;
让我们参考一个示例. 一个多用户聊天室[2] 可能想要获取更多的信息, 包括房间描述信息,房间主题,房间在线人数和房间所有者的JID.&lt;br /&gt;
&lt;br /&gt;
增加一个新属性的服务发现架构(即使真的是一个选项)不能解决的问题,因为一MUC的服务可能需要提供某些信息，而发布，订阅 [ 3 ]服务可能需要提供其信息。 &lt;br /&gt;
&lt;br /&gt;
一个更好的解决办法是通过一个扩展的信息包括命名空间，提供了一种灵活的结构化数据格式定义合格。 谢天谢地，我们已经拥有了这样一个协议： 数据表格 [ 4 ]。 此外，我们拥有一个共同的方式来定义字段形式用于数据： 数据表格现场标准化 [ 5 ]。 使用这些构建模块，我们可以定义为扩展服务发现结果的一些最佳做法。&lt;br /&gt;
&lt;br /&gt;
==建议==&lt;br /&gt;
如果一个实体的希望提供服务发现协议的扩展信息,出现在回复信息内,它应该这样做:每个独立的&amp;lt;field/&amp;gt;元素包含&amp;lt;value/&amp;gt;点数据信息子节点,所有&amp;lt;field/&amp;gt;元素包含在一个类型为&amp;quot;result&amp;quot;命名空间值为'jabber:x:data'的&amp;lt;x/&amp;gt;元素里.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;Note: A &amp;lt;field/&amp;gt; element MAY contain more than one &amp;lt;value/&amp;gt; child if appropriate.&lt;br /&gt;
&lt;br /&gt;
如果数据字段被用来在由XMPP标准基金会核准的议定书时，他们应该符合相关的XMPP扩展协议规范并按照XEP - 0068定义的规则注册，返回信息中包含一个&amp;lt;field/&amp;gt;元素,其'var'属性为&amp;quot;FORM_TYPE&amp;quot;，其'type'属性的值为&amp;quot;hidden&amp;quot;。&lt;br /&gt;
&lt;br /&gt;
一个实体不能提供'http://jabber.org/protocol/disco#items' 命名空间相关子信息,因为服务发现的核心原则是：一个实体必须确定其身份,不界定的身份与子节点的实体.&lt;br /&gt;
&lt;br /&gt;
==示例==&lt;br /&gt;
===IM服务器===&lt;br /&gt;
The following is an example of including a disco extension in the IQ result sent by a standard instant messaging server.&lt;br /&gt;
&lt;br /&gt;
Example 1. Entity Queries Server for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
===群===&lt;br /&gt;
The following is an example of including a disco extension in the IQ result sent by a Multi-User Chat room.&lt;br /&gt;
&lt;br /&gt;
Example 2. User Queries Room for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==实现说明==&lt;br /&gt;
In general, the XMPP Standards Foundation may choose to define at most one FORM_TYPE for each service discovery identity (category+type) registered with the XMPP Registrar. In addition, particular applications may define application-specific FORM_TYPEs as well, and one entity may have multiple service discovery identities (e.g., an XMPP server might also function as a publish-subscribe service). Therefore, it is possible (and allowed) for a single service discovery result to contain multiple service discovery extension elements (potentially up to two elements for each identity). However, in practice it is unlikely that any given service discovery result will contain more than one service discovery extension element.&lt;br /&gt;
&lt;br /&gt;
==安全注意事项==&lt;br /&gt;
Applications SHOULD ensure that information disclosed in a disco extension is appropriate for discovery by any entity on the network.&lt;br /&gt;
&lt;br /&gt;
==IANA注意事项==&lt;br /&gt;
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [6].&lt;br /&gt;
&lt;br /&gt;
==XMPP协议注册事项==&lt;br /&gt;
This document requires no interaction with the XMPP Registrar [7]; however, specifications following the best practices defined herein may register FORM_TYPEs and field values with the XMPP Registrar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
&lt;br /&gt;
系列：[http://xmpp.org/extensions/ XEP]&lt;br /&gt;
&lt;br /&gt;
序号：0128&lt;br /&gt;
&lt;br /&gt;
发布者：[http://xmpp.org/xsf/ XMPP标准基金会]&lt;br /&gt;
&lt;br /&gt;
状态：[http://www.xmpp.org/extensions/xep-0001.html#states-Final 终结版]&lt;br /&gt;
&lt;br /&gt;
类型：[http://www.xmpp.org/extensions/xep-0001.html#types-Standards%20Track 标准跟踪]&lt;br /&gt;
&lt;br /&gt;
版本：1.0&lt;br /&gt;
&lt;br /&gt;
最后更新：2004-10-20&lt;br /&gt;
&lt;br /&gt;
批准机构：[http://xmpp.org/council/ XMPP理事会]&lt;br /&gt;
&lt;br /&gt;
依赖标准：[[XEP-0004|XEP-0030|XEP-0068|XMPP Core]]&lt;br /&gt;
&lt;br /&gt;
取代: 无&lt;br /&gt;
&lt;br /&gt;
被替代标准：无&lt;br /&gt;
&lt;br /&gt;
缩略名：N/A&lt;br /&gt;
&lt;br /&gt;
原文控制： [http://svn.xmpp.org:18080/browse/XMPP/trunk/extensions/xep-0128.xml HTML] [http://svn.xmpp.org:18080//changelog/~rss/XMPP/trunk/extensions/xep-0128.xml/rss.xml RSS]&lt;br /&gt;
&lt;br /&gt;
本文的其它格式： [http://xmpp.org/extensions/xep-0030.xml XML] [http://xmpp.org/extensions/xep-0128.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Template:XEP附录CDEF}}&lt;br /&gt;
&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
END&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-16T07:45:47Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: /* 建议 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
开发人员觉得发现服务不能包含更多的信息. 例如, &amp;lt;identity/&amp;gt; 元素不包含'description'属性, 我们可以增加这个属性吗? 答案是可以,但现在不行,太迟了(因为XEP-0030是最终版). 因此,最好的办法是制定一个扩充机制.&lt;br /&gt;
&lt;br /&gt;
让我们参考一个示例. 一个多用户聊天室[2] 可能想要获取更多的信息, 包括房间描述信息,房间主题,房间在线人数和房间所有者的JID.&lt;br /&gt;
&lt;br /&gt;
增加一个新属性的服务发现架构(即使真的是一个选项)不能解决的问题,因为一MUC的服务可能需要提供某些信息，而发布，订阅 [ 3 ]服务可能需要提供其信息。 &lt;br /&gt;
&lt;br /&gt;
一个更好的解决办法是通过一个扩展的信息包括命名空间，提供了一种灵活的结构化数据格式定义合格。 谢天谢地，我们已经拥有了这样一个协议： 数据表格 [ 4 ]。 此外，我们拥有一个共同的方式来定义字段形式用于数据： 数据表格现场标准化 [ 5 ]。 使用这些构建模块，我们可以定义为扩展服务发现结果的一些最佳做法。&lt;br /&gt;
&lt;br /&gt;
==建议==&lt;br /&gt;
如果一个实体的希望提供服务发现协议的扩展信息,出现在回复信息内,它应该这样做:每个独立的&amp;lt;field/&amp;gt;元素包含&amp;lt;value/&amp;gt;点数据信息子节点,所有&amp;lt;field/&amp;gt;元素包含在一个类型为&amp;quot;result&amp;quot;命名空间值为'jabber:x:data'的&amp;lt;x/&amp;gt;元素里.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;Note: A &amp;lt;field/&amp;gt; element MAY contain more than one &amp;lt;value/&amp;gt; child if appropriate.&lt;br /&gt;
&lt;br /&gt;
如果数据字段被用来在由XMPP标准基金会核准的议定书时，他们应该符合相关的XMPP扩展协议规范并按照XEP - 0068定义的规则注册，返回信息中包含一个&amp;lt;field/&amp;gt;元素,其'var'属性为&amp;quot;FORM_TYPE&amp;quot;，其'type'属性的值为&amp;quot;hidden&amp;quot;。&lt;br /&gt;
&lt;br /&gt;
一个实体不能提供'http://jabber.org/protocol/disco#items'命名空间相关子信息,因为服务发现的核心原则是：一个实体必须确定其身份,不界定的身份与子节点的实体.&lt;br /&gt;
&lt;br /&gt;
==示例==&lt;br /&gt;
===IM服务器===&lt;br /&gt;
The following is an example of including a disco extension in the IQ result sent by a standard instant messaging server.&lt;br /&gt;
&lt;br /&gt;
Example 1. Entity Queries Server for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
===群===&lt;br /&gt;
The following is an example of including a disco extension in the IQ result sent by a Multi-User Chat room.&lt;br /&gt;
&lt;br /&gt;
Example 2. User Queries Room for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==实现说明==&lt;br /&gt;
In general, the XMPP Standards Foundation may choose to define at most one FORM_TYPE for each service discovery identity (category+type) registered with the XMPP Registrar. In addition, particular applications may define application-specific FORM_TYPEs as well, and one entity may have multiple service discovery identities (e.g., an XMPP server might also function as a publish-subscribe service). Therefore, it is possible (and allowed) for a single service discovery result to contain multiple service discovery extension elements (potentially up to two elements for each identity). However, in practice it is unlikely that any given service discovery result will contain more than one service discovery extension element.&lt;br /&gt;
&lt;br /&gt;
==安全注意事项==&lt;br /&gt;
Applications SHOULD ensure that information disclosed in a disco extension is appropriate for discovery by any entity on the network.&lt;br /&gt;
&lt;br /&gt;
==IANA注意事项==&lt;br /&gt;
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [6].&lt;br /&gt;
&lt;br /&gt;
==XMPP协议注册事项==&lt;br /&gt;
This document requires no interaction with the XMPP Registrar [7]; however, specifications following the best practices defined herein may register FORM_TYPEs and field values with the XMPP Registrar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
&lt;br /&gt;
系列：[http://xmpp.org/extensions/ XEP]&lt;br /&gt;
&lt;br /&gt;
序号：0128&lt;br /&gt;
&lt;br /&gt;
发布者：[http://xmpp.org/xsf/ XMPP标准基金会]&lt;br /&gt;
&lt;br /&gt;
状态：[http://www.xmpp.org/extensions/xep-0001.html#states-Final 终结版]&lt;br /&gt;
&lt;br /&gt;
类型：[http://www.xmpp.org/extensions/xep-0001.html#types-Standards%20Track 标准跟踪]&lt;br /&gt;
&lt;br /&gt;
版本：1.0&lt;br /&gt;
&lt;br /&gt;
最后更新：2004-10-20&lt;br /&gt;
&lt;br /&gt;
批准机构：[http://xmpp.org/council/ XMPP理事会]&lt;br /&gt;
&lt;br /&gt;
依赖标准：[[XEP-0004|XEP-0030|XEP-0068|XMPP Core]]&lt;br /&gt;
&lt;br /&gt;
取代: 无&lt;br /&gt;
&lt;br /&gt;
被替代标准：无&lt;br /&gt;
&lt;br /&gt;
缩略名：N/A&lt;br /&gt;
&lt;br /&gt;
原文控制： [http://svn.xmpp.org:18080/browse/XMPP/trunk/extensions/xep-0128.xml HTML] [http://svn.xmpp.org:18080//changelog/~rss/XMPP/trunk/extensions/xep-0128.xml/rss.xml RSS]&lt;br /&gt;
&lt;br /&gt;
本文的其它格式： [http://xmpp.org/extensions/xep-0030.xml XML] [http://xmpp.org/extensions/xep-0128.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Template:XEP附录CDEF}}&lt;br /&gt;
&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
END&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-16T06:57:16Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: /* 建议 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
开发人员觉得发现服务不能包含更多的信息. 例如, &amp;lt;identity/&amp;gt; 元素不包含'description'属性, 我们可以增加这个属性吗? 答案是可以,但现在不行,太迟了(因为XEP-0030是最终版). 因此,最好的办法是制定一个扩充机制.&lt;br /&gt;
&lt;br /&gt;
让我们参考一个示例. 一个多用户聊天室[2] 可能想要获取更多的信息, 包括房间描述信息,房间主题,房间在线人数和房间所有者的JID.&lt;br /&gt;
&lt;br /&gt;
增加一个新属性的服务发现架构(即使真的是一个选项)不能解决的问题,因为一MUC的服务可能需要提供某些信息，而发布，订阅 [ 3 ]服务可能需要提供其信息。 &lt;br /&gt;
&lt;br /&gt;
一个更好的解决办法是通过一个扩展的信息包括命名空间，提供了一种灵活的结构化数据格式定义合格。 谢天谢地，我们已经拥有了这样一个协议： 数据表格 [ 4 ]。 此外，我们拥有一个共同的方式来定义字段形式用于数据： 数据表格现场标准化 [ 5 ]。 使用这些构建模块，我们可以定义为扩展服务发现结果的一些最佳做法。&lt;br /&gt;
&lt;br /&gt;
==建议==&lt;br /&gt;
如果一个实体的希望提供服务发现协议的扩展信息,出现在回复信息内,它应该这样做:&amp;lt;field/&amp;gt;元素包含不同信息的&lt;br /&gt;
 If an entity desires to provide extended information about itself in an IQ results stanza within the context of the Service Discovery protocol, it SHOULD do so by including each bit of information as the XML character data of the &amp;lt;value/&amp;gt; child of a distinct &amp;lt;field/&amp;gt; element, with the entire set of fields contained within an &amp;lt;x/&amp;gt; element of type &amp;quot;result&amp;quot; qualified by the 'jabber:x:data' namespace; this &amp;lt;x/&amp;gt; element SHOULD be a child of the &amp;lt;query/&amp;gt; element qualified by the 'http://jabber.org/protocol/disco#info' namespace. Thus the IQ result SHOULD be of the following form:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;Note: A &amp;lt;field/&amp;gt; element MAY contain more than one &amp;lt;value/&amp;gt; child if appropriate.&lt;br /&gt;
&lt;br /&gt;
If the data fields are to be used in the context of a protocol approved by the XMPP Standards Foundation, they SHOULD be described in the relevant XMPP Extension Protocol specification and registered in accordance with the rules defined in XEP-0068, resulting in the inclusion of a &amp;lt;field/&amp;gt; element whose 'var' attribute has a value of &amp;quot;FORM_TYPE&amp;quot; and whose 'type' attribute has a value of &amp;quot;hidden&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
An entity MUST NOT supply extended information about associated children communicated via the 'http://jabber.org/protocol/disco#items' namespace, since a core principle of Service Discovery is that an entity must define its own identity only and must not define the identity of any children associated with the entity.&lt;br /&gt;
&lt;br /&gt;
==示例==&lt;br /&gt;
===IM服务器===&lt;br /&gt;
The following is an example of including a disco extension in the IQ result sent by a standard instant messaging server.&lt;br /&gt;
&lt;br /&gt;
Example 1. Entity Queries Server for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
===群===&lt;br /&gt;
The following is an example of including a disco extension in the IQ result sent by a Multi-User Chat room.&lt;br /&gt;
&lt;br /&gt;
Example 2. User Queries Room for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==实现说明==&lt;br /&gt;
In general, the XMPP Standards Foundation may choose to define at most one FORM_TYPE for each service discovery identity (category+type) registered with the XMPP Registrar. In addition, particular applications may define application-specific FORM_TYPEs as well, and one entity may have multiple service discovery identities (e.g., an XMPP server might also function as a publish-subscribe service). Therefore, it is possible (and allowed) for a single service discovery result to contain multiple service discovery extension elements (potentially up to two elements for each identity). However, in practice it is unlikely that any given service discovery result will contain more than one service discovery extension element.&lt;br /&gt;
&lt;br /&gt;
==安全注意事项==&lt;br /&gt;
Applications SHOULD ensure that information disclosed in a disco extension is appropriate for discovery by any entity on the network.&lt;br /&gt;
&lt;br /&gt;
==IANA注意事项==&lt;br /&gt;
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [6].&lt;br /&gt;
&lt;br /&gt;
==XMPP协议注册事项==&lt;br /&gt;
This document requires no interaction with the XMPP Registrar [7]; however, specifications following the best practices defined herein may register FORM_TYPEs and field values with the XMPP Registrar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
&lt;br /&gt;
系列：[http://xmpp.org/extensions/ XEP]&lt;br /&gt;
&lt;br /&gt;
序号：0128&lt;br /&gt;
&lt;br /&gt;
发布者：[http://xmpp.org/xsf/ XMPP标准基金会]&lt;br /&gt;
&lt;br /&gt;
状态：[http://www.xmpp.org/extensions/xep-0001.html#states-Final 终结版]&lt;br /&gt;
&lt;br /&gt;
类型：[http://www.xmpp.org/extensions/xep-0001.html#types-Standards%20Track 标准跟踪]&lt;br /&gt;
&lt;br /&gt;
版本：1.0&lt;br /&gt;
&lt;br /&gt;
最后更新：2004-10-20&lt;br /&gt;
&lt;br /&gt;
批准机构：[http://xmpp.org/council/ XMPP理事会]&lt;br /&gt;
&lt;br /&gt;
依赖标准：[[XEP-0004|XEP-0030|XEP-0068|XMPP Core]]&lt;br /&gt;
&lt;br /&gt;
取代: 无&lt;br /&gt;
&lt;br /&gt;
被替代标准：无&lt;br /&gt;
&lt;br /&gt;
缩略名：N/A&lt;br /&gt;
&lt;br /&gt;
原文控制： [http://svn.xmpp.org:18080/browse/XMPP/trunk/extensions/xep-0128.xml HTML] [http://svn.xmpp.org:18080//changelog/~rss/XMPP/trunk/extensions/xep-0128.xml/rss.xml RSS]&lt;br /&gt;
&lt;br /&gt;
本文的其它格式： [http://xmpp.org/extensions/xep-0030.xml XML] [http://xmpp.org/extensions/xep-0128.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Template:XEP附录CDEF}}&lt;br /&gt;
&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
END&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-16T06:32:46Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: /* 建议 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
开发人员觉得发现服务不能包含更多的信息. 例如, &amp;lt;identity/&amp;gt; 元素不包含'description'属性, 我们可以增加这个属性吗? 答案是可以,但现在不行,太迟了(因为XEP-0030是最终版). 因此,最好的办法是制定一个扩充机制.&lt;br /&gt;
&lt;br /&gt;
让我们参考一个示例. 一个多用户聊天室[2] 可能想要获取更多的信息, 包括房间描述信息,房间主题,房间在线人数和房间所有者的JID.&lt;br /&gt;
&lt;br /&gt;
增加一个新属性的服务发现架构(即使真的是一个选项)不能解决的问题,因为一MUC的服务可能需要提供某些信息，而发布，订阅 [ 3 ]服务可能需要提供其信息。 &lt;br /&gt;
&lt;br /&gt;
一个更好的解决办法是通过一个扩展的信息包括命名空间，提供了一种灵活的结构化数据格式定义合格。 谢天谢地，我们已经拥有了这样一个协议： 数据表格 [ 4 ]。 此外，我们拥有一个共同的方式来定义字段形式用于数据： 数据表格现场标准化 [ 5 ]。 使用这些构建模块，我们可以定义为扩展服务发现结果的一些最佳做法。&lt;br /&gt;
&lt;br /&gt;
==建议==&lt;br /&gt;
如果一个实体的希望提供服务发现协议的扩展信息,出现在回复信息内,它应该这样做,&lt;br /&gt;
If an entity desires to provide extended information about itself in an IQ results stanza within the context of the Service Discovery protocol, it SHOULD do so by including each bit of information as the XML character data of the &amp;lt;value/&amp;gt; child of a distinct &amp;lt;field/&amp;gt; element, with the entire set of fields contained within an &amp;lt;x/&amp;gt; element of type &amp;quot;result&amp;quot; qualified by the 'jabber:x:data' namespace; this &amp;lt;x/&amp;gt; element SHOULD be a child of the &amp;lt;query/&amp;gt; element qualified by the 'http://jabber.org/protocol/disco#info' namespace. Thus the IQ result SHOULD be of the following form:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;Note: A &amp;lt;field/&amp;gt; element MAY contain more than one &amp;lt;value/&amp;gt; child if appropriate.&lt;br /&gt;
&lt;br /&gt;
If the data fields are to be used in the context of a protocol approved by the XMPP Standards Foundation, they SHOULD be described in the relevant XMPP Extension Protocol specification and registered in accordance with the rules defined in XEP-0068, resulting in the inclusion of a &amp;lt;field/&amp;gt; element whose 'var' attribute has a value of &amp;quot;FORM_TYPE&amp;quot; and whose 'type' attribute has a value of &amp;quot;hidden&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
An entity MUST NOT supply extended information about associated children communicated via the 'http://jabber.org/protocol/disco#items' namespace, since a core principle of Service Discovery is that an entity must define its own identity only and must not define the identity of any children associated with the entity.&lt;br /&gt;
&lt;br /&gt;
==示例==&lt;br /&gt;
===IM服务器===&lt;br /&gt;
The following is an example of including a disco extension in the IQ result sent by a standard instant messaging server.&lt;br /&gt;
&lt;br /&gt;
Example 1. Entity Queries Server for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
===群===&lt;br /&gt;
The following is an example of including a disco extension in the IQ result sent by a Multi-User Chat room.&lt;br /&gt;
&lt;br /&gt;
Example 2. User Queries Room for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==实现说明==&lt;br /&gt;
In general, the XMPP Standards Foundation may choose to define at most one FORM_TYPE for each service discovery identity (category+type) registered with the XMPP Registrar. In addition, particular applications may define application-specific FORM_TYPEs as well, and one entity may have multiple service discovery identities (e.g., an XMPP server might also function as a publish-subscribe service). Therefore, it is possible (and allowed) for a single service discovery result to contain multiple service discovery extension elements (potentially up to two elements for each identity). However, in practice it is unlikely that any given service discovery result will contain more than one service discovery extension element.&lt;br /&gt;
&lt;br /&gt;
==安全注意事项==&lt;br /&gt;
Applications SHOULD ensure that information disclosed in a disco extension is appropriate for discovery by any entity on the network.&lt;br /&gt;
&lt;br /&gt;
==IANA注意事项==&lt;br /&gt;
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [6].&lt;br /&gt;
&lt;br /&gt;
==XMPP协议注册事项==&lt;br /&gt;
This document requires no interaction with the XMPP Registrar [7]; however, specifications following the best practices defined herein may register FORM_TYPEs and field values with the XMPP Registrar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
&lt;br /&gt;
系列：[http://xmpp.org/extensions/ XEP]&lt;br /&gt;
&lt;br /&gt;
序号：0128&lt;br /&gt;
&lt;br /&gt;
发布者：[http://xmpp.org/xsf/ XMPP标准基金会]&lt;br /&gt;
&lt;br /&gt;
状态：[http://www.xmpp.org/extensions/xep-0001.html#states-Final 终结版]&lt;br /&gt;
&lt;br /&gt;
类型：[http://www.xmpp.org/extensions/xep-0001.html#types-Standards%20Track 标准跟踪]&lt;br /&gt;
&lt;br /&gt;
版本：1.0&lt;br /&gt;
&lt;br /&gt;
最后更新：2004-10-20&lt;br /&gt;
&lt;br /&gt;
批准机构：[http://xmpp.org/council/ XMPP理事会]&lt;br /&gt;
&lt;br /&gt;
依赖标准：[[XEP-0004|XEP-0030|XEP-0068|XMPP Core]]&lt;br /&gt;
&lt;br /&gt;
取代: 无&lt;br /&gt;
&lt;br /&gt;
被替代标准：无&lt;br /&gt;
&lt;br /&gt;
缩略名：N/A&lt;br /&gt;
&lt;br /&gt;
原文控制： [http://svn.xmpp.org:18080/browse/XMPP/trunk/extensions/xep-0128.xml HTML] [http://svn.xmpp.org:18080//changelog/~rss/XMPP/trunk/extensions/xep-0128.xml/rss.xml RSS]&lt;br /&gt;
&lt;br /&gt;
本文的其它格式： [http://xmpp.org/extensions/xep-0030.xml XML] [http://xmpp.org/extensions/xep-0128.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Template:XEP附录CDEF}}&lt;br /&gt;
&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
END&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-16T03:17:33Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: /* 简介 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
开发人员觉得发现服务不能包含更多的信息. 例如, &amp;lt;identity/&amp;gt; 元素不包含'description'属性, 我们可以增加这个属性吗? 答案是可以,但现在不行,太迟了(因为XEP-0030是最终版). 因此,最好的办法是制定一个扩充机制.&lt;br /&gt;
&lt;br /&gt;
让我们参考一个示例. 一个多用户聊天室[2] 可能想要获取更多的信息, 包括房间描述信息,房间主题,房间在线人数和房间所有者的JID.&lt;br /&gt;
&lt;br /&gt;
增加一个新属性的服务发现架构(即使真的是一个选项)不能解决的问题,因为一MUC的服务可能需要提供某些信息，而发布，订阅 [ 3 ]服务可能需要提供其信息。 &lt;br /&gt;
&lt;br /&gt;
一个更好的解决办法是通过一个扩展的信息包括命名空间，提供了一种灵活的结构化数据格式定义合格。 谢天谢地，我们已经拥有了这样一个协议： 数据表格 [ 4 ]。 此外，我们拥有一个共同的方式来定义字段形式用于数据： 数据表格现场标准化 [ 5 ]。 使用这些构建模块，我们可以定义为扩展服务发现结果的一些最佳做法。&lt;br /&gt;
&lt;br /&gt;
==建议==&lt;br /&gt;
If an entity desires to provide extended information about itself in an IQ results stanza within the context of the Service Discovery protocol, it SHOULD do so by including each bit of information as the XML character data of the &amp;lt;value/&amp;gt; child of a distinct &amp;lt;field/&amp;gt; element, with the entire set of fields contained within an &amp;lt;x/&amp;gt; element of type &amp;quot;result&amp;quot; qualified by the 'jabber:x:data' namespace; this &amp;lt;x/&amp;gt; element SHOULD be a child of the &amp;lt;query/&amp;gt; element qualified by the 'http://jabber.org/protocol/disco#info' namespace. Thus the IQ result SHOULD be of the following form:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;Note: A &amp;lt;field/&amp;gt; element MAY contain more than one &amp;lt;value/&amp;gt; child if appropriate.&lt;br /&gt;
&lt;br /&gt;
If the data fields are to be used in the context of a protocol approved by the XMPP Standards Foundation, they SHOULD be described in the relevant XMPP Extension Protocol specification and registered in accordance with the rules defined in XEP-0068, resulting in the inclusion of a &amp;lt;field/&amp;gt; element whose 'var' attribute has a value of &amp;quot;FORM_TYPE&amp;quot; and whose 'type' attribute has a value of &amp;quot;hidden&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
An entity MUST NOT supply extended information about associated children communicated via the 'http://jabber.org/protocol/disco#items' namespace, since a core principle of Service Discovery is that an entity must define its own identity only and must not define the identity of any children associated with the entity.&lt;br /&gt;
&lt;br /&gt;
==示例==&lt;br /&gt;
===IM服务器===&lt;br /&gt;
The following is an example of including a disco extension in the IQ result sent by a standard instant messaging server.&lt;br /&gt;
&lt;br /&gt;
Example 1. Entity Queries Server for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
===群===&lt;br /&gt;
The following is an example of including a disco extension in the IQ result sent by a Multi-User Chat room.&lt;br /&gt;
&lt;br /&gt;
Example 2. User Queries Room for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==实现说明==&lt;br /&gt;
In general, the XMPP Standards Foundation may choose to define at most one FORM_TYPE for each service discovery identity (category+type) registered with the XMPP Registrar. In addition, particular applications may define application-specific FORM_TYPEs as well, and one entity may have multiple service discovery identities (e.g., an XMPP server might also function as a publish-subscribe service). Therefore, it is possible (and allowed) for a single service discovery result to contain multiple service discovery extension elements (potentially up to two elements for each identity). However, in practice it is unlikely that any given service discovery result will contain more than one service discovery extension element.&lt;br /&gt;
&lt;br /&gt;
==安全注意事项==&lt;br /&gt;
Applications SHOULD ensure that information disclosed in a disco extension is appropriate for discovery by any entity on the network.&lt;br /&gt;
&lt;br /&gt;
==IANA注意事项==&lt;br /&gt;
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [6].&lt;br /&gt;
&lt;br /&gt;
==XMPP协议注册事项==&lt;br /&gt;
This document requires no interaction with the XMPP Registrar [7]; however, specifications following the best practices defined herein may register FORM_TYPEs and field values with the XMPP Registrar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
&lt;br /&gt;
系列：[http://xmpp.org/extensions/ XEP]&lt;br /&gt;
&lt;br /&gt;
序号：0128&lt;br /&gt;
&lt;br /&gt;
发布者：[http://xmpp.org/xsf/ XMPP标准基金会]&lt;br /&gt;
&lt;br /&gt;
状态：[http://www.xmpp.org/extensions/xep-0001.html#states-Final 终结版]&lt;br /&gt;
&lt;br /&gt;
类型：[http://www.xmpp.org/extensions/xep-0001.html#types-Standards%20Track 标准跟踪]&lt;br /&gt;
&lt;br /&gt;
版本：1.0&lt;br /&gt;
&lt;br /&gt;
最后更新：2004-10-20&lt;br /&gt;
&lt;br /&gt;
批准机构：[http://xmpp.org/council/ XMPP理事会]&lt;br /&gt;
&lt;br /&gt;
依赖标准：[[XEP-0004|XEP-0030|XEP-0068|XMPP Core]]&lt;br /&gt;
&lt;br /&gt;
取代: 无&lt;br /&gt;
&lt;br /&gt;
被替代标准：无&lt;br /&gt;
&lt;br /&gt;
缩略名：N/A&lt;br /&gt;
&lt;br /&gt;
原文控制： [http://svn.xmpp.org:18080/browse/XMPP/trunk/extensions/xep-0128.xml HTML] [http://svn.xmpp.org:18080//changelog/~rss/XMPP/trunk/extensions/xep-0128.xml/rss.xml RSS]&lt;br /&gt;
&lt;br /&gt;
本文的其它格式： [http://xmpp.org/extensions/xep-0030.xml XML] [http://xmpp.org/extensions/xep-0128.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Template:XEP附录CDEF}}&lt;br /&gt;
&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
END&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-16T03:07:00Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
开发人员觉得发现服务不能包含更多的信息. 例如, &amp;lt;identity/&amp;gt; 元素不包含'description'属性, 我们可以增加这个属性吗? 答案是可以,但现在不行,太迟了(因为XEP-0030是最终版). 因此,最好的办法是制定一个扩充机制.&lt;br /&gt;
&lt;br /&gt;
让我们参考一个示例. 一个多用户聊天室[2] 可能想要获取更多的信息, 包括房间描述信息,房间主题,房间在线人数和房间所有者的JID.&lt;br /&gt;
&lt;br /&gt;
Adding one new attribute to the service discovery schema (even if that were an option) would not solve the problem, since a MUC service might want to provide certain bits of information, whereas a Publish-Subscribe [3] service might want to provide other bits.&lt;br /&gt;
&lt;br /&gt;
A better solution would be to include extended information qualified by a namespace that provides a way to flexibly define structured data formats. Thankfully, we already possess such a protocol: Data Forms [4]. In addition, we possess a way to define common fields used in data forms: Field Standardization for Data Forms [5]. Using these building blocks, we can define some best practices for extending service discovery results.&lt;br /&gt;
&lt;br /&gt;
==建议==&lt;br /&gt;
If an entity desires to provide extended information about itself in an IQ results stanza within the context of the Service Discovery protocol, it SHOULD do so by including each bit of information as the XML character data of the &amp;lt;value/&amp;gt; child of a distinct &amp;lt;field/&amp;gt; element, with the entire set of fields contained within an &amp;lt;x/&amp;gt; element of type &amp;quot;result&amp;quot; qualified by the 'jabber:x:data' namespace; this &amp;lt;x/&amp;gt; element SHOULD be a child of the &amp;lt;query/&amp;gt; element qualified by the 'http://jabber.org/protocol/disco#info' namespace. Thus the IQ result SHOULD be of the following form:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;Note: A &amp;lt;field/&amp;gt; element MAY contain more than one &amp;lt;value/&amp;gt; child if appropriate.&lt;br /&gt;
&lt;br /&gt;
If the data fields are to be used in the context of a protocol approved by the XMPP Standards Foundation, they SHOULD be described in the relevant XMPP Extension Protocol specification and registered in accordance with the rules defined in XEP-0068, resulting in the inclusion of a &amp;lt;field/&amp;gt; element whose 'var' attribute has a value of &amp;quot;FORM_TYPE&amp;quot; and whose 'type' attribute has a value of &amp;quot;hidden&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
An entity MUST NOT supply extended information about associated children communicated via the 'http://jabber.org/protocol/disco#items' namespace, since a core principle of Service Discovery is that an entity must define its own identity only and must not define the identity of any children associated with the entity.&lt;br /&gt;
&lt;br /&gt;
==示例==&lt;br /&gt;
===IM服务器===&lt;br /&gt;
The following is an example of including a disco extension in the IQ result sent by a standard instant messaging server.&lt;br /&gt;
&lt;br /&gt;
Example 1. Entity Queries Server for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
===群===&lt;br /&gt;
The following is an example of including a disco extension in the IQ result sent by a Multi-User Chat room.&lt;br /&gt;
&lt;br /&gt;
Example 2. User Queries Room for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==实现说明==&lt;br /&gt;
In general, the XMPP Standards Foundation may choose to define at most one FORM_TYPE for each service discovery identity (category+type) registered with the XMPP Registrar. In addition, particular applications may define application-specific FORM_TYPEs as well, and one entity may have multiple service discovery identities (e.g., an XMPP server might also function as a publish-subscribe service). Therefore, it is possible (and allowed) for a single service discovery result to contain multiple service discovery extension elements (potentially up to two elements for each identity). However, in practice it is unlikely that any given service discovery result will contain more than one service discovery extension element.&lt;br /&gt;
&lt;br /&gt;
==安全注意事项==&lt;br /&gt;
Applications SHOULD ensure that information disclosed in a disco extension is appropriate for discovery by any entity on the network.&lt;br /&gt;
&lt;br /&gt;
==IANA注意事项==&lt;br /&gt;
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [6].&lt;br /&gt;
&lt;br /&gt;
==XMPP协议注册事项==&lt;br /&gt;
This document requires no interaction with the XMPP Registrar [7]; however, specifications following the best practices defined herein may register FORM_TYPEs and field values with the XMPP Registrar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
&lt;br /&gt;
系列：[http://xmpp.org/extensions/ XEP]&lt;br /&gt;
&lt;br /&gt;
序号：0128&lt;br /&gt;
&lt;br /&gt;
发布者：[http://xmpp.org/xsf/ XMPP标准基金会]&lt;br /&gt;
&lt;br /&gt;
状态：[http://www.xmpp.org/extensions/xep-0001.html#states-Final 终结版]&lt;br /&gt;
&lt;br /&gt;
类型：[http://www.xmpp.org/extensions/xep-0001.html#types-Standards%20Track 标准跟踪]&lt;br /&gt;
&lt;br /&gt;
版本：1.0&lt;br /&gt;
&lt;br /&gt;
最后更新：2004-10-20&lt;br /&gt;
&lt;br /&gt;
批准机构：[http://xmpp.org/council/ XMPP理事会]&lt;br /&gt;
&lt;br /&gt;
依赖标准：[[XEP-0004|XEP-0030|XEP-0068|XMPP Core]]&lt;br /&gt;
&lt;br /&gt;
取代: 无&lt;br /&gt;
&lt;br /&gt;
被替代标准：无&lt;br /&gt;
&lt;br /&gt;
缩略名：N/A&lt;br /&gt;
&lt;br /&gt;
原文控制： [http://svn.xmpp.org:18080/browse/XMPP/trunk/extensions/xep-0128.xml HTML] [http://svn.xmpp.org:18080//changelog/~rss/XMPP/trunk/extensions/xep-0128.xml/rss.xml RSS]&lt;br /&gt;
&lt;br /&gt;
本文的其它格式： [http://xmpp.org/extensions/xep-0030.xml XML] [http://xmpp.org/extensions/xep-0128.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Template:XEP附录CDEF}}&lt;br /&gt;
&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
END&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-12T09:10:57Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: /* 简介 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
开发人员觉得发现服务不能包含更多的信息. 例如, &amp;lt;identity/&amp;gt; 元素不包含'description'属性, 我们可以增加这个属性吗? 答案是可以,但现在不行. and at this point it's too late to make further changes (since XEP-0030 is Final). So the best approach is to specify a well-defined extension mechanism.&lt;br /&gt;
&lt;br /&gt;
Let us consider an example. A Multi-User Chat [2] room might want to include additional information in its service discovery results, such as the full room description, the current discussion topic (room subject), the number of occupants in the room, and the JID of the room owner.&lt;br /&gt;
&lt;br /&gt;
Adding one new attribute to the service discovery schema (even if that were an option) would not solve the problem, since a MUC service might want to provide certain bits of information, whereas a Publish-Subscribe [3] service might want to provide other bits.&lt;br /&gt;
&lt;br /&gt;
A better solution would be to include extended information qualified by a namespace that provides a way to flexibly define structured data formats. Thankfully, we already possess such a protocol: Data Forms [4]. In addition, we possess a way to define common fields used in data forms: Field Standardization for Data Forms [5]. Using these building blocks, we can define some best practices for extending service discovery results.&lt;br /&gt;
&lt;br /&gt;
==建议==&lt;br /&gt;
If an entity desires to provide extended information about itself in an IQ results stanza within the context of the Service Discovery protocol, it SHOULD do so by including each bit of information as the XML character data of the &amp;lt;value/&amp;gt; child of a distinct &amp;lt;field/&amp;gt; element, with the entire set of fields contained within an &amp;lt;x/&amp;gt; element of type &amp;quot;result&amp;quot; qualified by the 'jabber:x:data' namespace; this &amp;lt;x/&amp;gt; element SHOULD be a child of the &amp;lt;query/&amp;gt; element qualified by the 'http://jabber.org/protocol/disco#info' namespace. Thus the IQ result SHOULD be of the following form:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;Note: A &amp;lt;field/&amp;gt; element MAY contain more than one &amp;lt;value/&amp;gt; child if appropriate.&lt;br /&gt;
&lt;br /&gt;
If the data fields are to be used in the context of a protocol approved by the XMPP Standards Foundation, they SHOULD be described in the relevant XMPP Extension Protocol specification and registered in accordance with the rules defined in XEP-0068, resulting in the inclusion of a &amp;lt;field/&amp;gt; element whose 'var' attribute has a value of &amp;quot;FORM_TYPE&amp;quot; and whose 'type' attribute has a value of &amp;quot;hidden&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
An entity MUST NOT supply extended information about associated children communicated via the 'http://jabber.org/protocol/disco#items' namespace, since a core principle of Service Discovery is that an entity must define its own identity only and must not define the identity of any children associated with the entity.&lt;br /&gt;
&lt;br /&gt;
==示例==&lt;br /&gt;
===IM服务器===&lt;br /&gt;
The following is an example of including a disco extension in the IQ result sent by a standard instant messaging server.&lt;br /&gt;
&lt;br /&gt;
Example 1. Entity Queries Server for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
===群===&lt;br /&gt;
The following is an example of including a disco extension in the IQ result sent by a Multi-User Chat room.&lt;br /&gt;
&lt;br /&gt;
Example 2. User Queries Room for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==实现说明==&lt;br /&gt;
In general, the XMPP Standards Foundation may choose to define at most one FORM_TYPE for each service discovery identity (category+type) registered with the XMPP Registrar. In addition, particular applications may define application-specific FORM_TYPEs as well, and one entity may have multiple service discovery identities (e.g., an XMPP server might also function as a publish-subscribe service). Therefore, it is possible (and allowed) for a single service discovery result to contain multiple service discovery extension elements (potentially up to two elements for each identity). However, in practice it is unlikely that any given service discovery result will contain more than one service discovery extension element.&lt;br /&gt;
&lt;br /&gt;
==安全注意事项==&lt;br /&gt;
Applications SHOULD ensure that information disclosed in a disco extension is appropriate for discovery by any entity on the network.&lt;br /&gt;
&lt;br /&gt;
==IANA注意事项==&lt;br /&gt;
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [6].&lt;br /&gt;
&lt;br /&gt;
==XMPP协议注册事项==&lt;br /&gt;
This document requires no interaction with the XMPP Registrar [7]; however, specifications following the best practices defined herein may register FORM_TYPEs and field values with the XMPP Registrar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
&lt;br /&gt;
系列：[http://xmpp.org/extensions/ XEP]&lt;br /&gt;
&lt;br /&gt;
序号：0128&lt;br /&gt;
&lt;br /&gt;
发布者：[http://xmpp.org/xsf/ XMPP标准基金会]&lt;br /&gt;
&lt;br /&gt;
状态：[http://www.xmpp.org/extensions/xep-0001.html#states-Final 终结版]&lt;br /&gt;
&lt;br /&gt;
类型：[http://www.xmpp.org/extensions/xep-0001.html#types-Standards%20Track 标准跟踪]&lt;br /&gt;
&lt;br /&gt;
版本：1.0&lt;br /&gt;
&lt;br /&gt;
最后更新：2004-10-20&lt;br /&gt;
&lt;br /&gt;
批准机构：[http://xmpp.org/council/ XMPP理事会]&lt;br /&gt;
&lt;br /&gt;
依赖标准：[[XEP-0004|XEP-0030|XEP-0068|XMPP Core]]&lt;br /&gt;
&lt;br /&gt;
取代: 无&lt;br /&gt;
&lt;br /&gt;
被替代标准：无&lt;br /&gt;
&lt;br /&gt;
缩略名：N/A&lt;br /&gt;
&lt;br /&gt;
原文控制： [http://svn.xmpp.org:18080/browse/XMPP/trunk/extensions/xep-0128.xml HTML] [http://svn.xmpp.org:18080//changelog/~rss/XMPP/trunk/extensions/xep-0128.xml/rss.xml RSS]&lt;br /&gt;
&lt;br /&gt;
本文的其它格式： [http://xmpp.org/extensions/xep-0030.xml XML] [http://xmpp.org/extensions/xep-0128.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Template:XEP附录CDEF}}&lt;br /&gt;
&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
END&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-08T08:18:03Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
Developers periodically wonder why Service Discovery [1] does not include more bits of information. For example, why does the &amp;lt;identity/&amp;gt; element not include a 'description' attribute, and can we add one now? The answer is: well, it just doesn't, and at this point it's too late to make further changes (since XEP-0030 is Final). So the best approach is to specify a well-defined extension mechanism.&lt;br /&gt;
&lt;br /&gt;
Let us consider an example. A Multi-User Chat [2] room might want to include additional information in its service discovery results, such as the full room description, the current discussion topic (room subject), the number of occupants in the room, and the JID of the room owner.&lt;br /&gt;
&lt;br /&gt;
Adding one new attribute to the service discovery schema (even if that were an option) would not solve the problem, since a MUC service might want to provide certain bits of information, whereas a Publish-Subscribe [3] service might want to provide other bits.&lt;br /&gt;
&lt;br /&gt;
A better solution would be to include extended information qualified by a namespace that provides a way to flexibly define structured data formats. Thankfully, we already possess such a protocol: Data Forms [4]. In addition, we possess a way to define common fields used in data forms: Field Standardization for Data Forms [5]. Using these building blocks, we can define some best practices for extending service discovery results.&lt;br /&gt;
&lt;br /&gt;
==建议==&lt;br /&gt;
If an entity desires to provide extended information about itself in an IQ results stanza within the context of the Service Discovery protocol, it SHOULD do so by including each bit of information as the XML character data of the &amp;lt;value/&amp;gt; child of a distinct &amp;lt;field/&amp;gt; element, with the entire set of fields contained within an &amp;lt;x/&amp;gt; element of type &amp;quot;result&amp;quot; qualified by the 'jabber:x:data' namespace; this &amp;lt;x/&amp;gt; element SHOULD be a child of the &amp;lt;query/&amp;gt; element qualified by the 'http://jabber.org/protocol/disco#info' namespace. Thus the IQ result SHOULD be of the following form:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;Note: A &amp;lt;field/&amp;gt; element MAY contain more than one &amp;lt;value/&amp;gt; child if appropriate.&lt;br /&gt;
&lt;br /&gt;
If the data fields are to be used in the context of a protocol approved by the XMPP Standards Foundation, they SHOULD be described in the relevant XMPP Extension Protocol specification and registered in accordance with the rules defined in XEP-0068, resulting in the inclusion of a &amp;lt;field/&amp;gt; element whose 'var' attribute has a value of &amp;quot;FORM_TYPE&amp;quot; and whose 'type' attribute has a value of &amp;quot;hidden&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
An entity MUST NOT supply extended information about associated children communicated via the 'http://jabber.org/protocol/disco#items' namespace, since a core principle of Service Discovery is that an entity must define its own identity only and must not define the identity of any children associated with the entity.&lt;br /&gt;
&lt;br /&gt;
==示例==&lt;br /&gt;
===IM服务器===&lt;br /&gt;
The following is an example of including a disco extension in the IQ result sent by a standard instant messaging server.&lt;br /&gt;
&lt;br /&gt;
Example 1. Entity Queries Server for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
===群===&lt;br /&gt;
The following is an example of including a disco extension in the IQ result sent by a Multi-User Chat room.&lt;br /&gt;
&lt;br /&gt;
Example 2. User Queries Room for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==实现说明==&lt;br /&gt;
In general, the XMPP Standards Foundation may choose to define at most one FORM_TYPE for each service discovery identity (category+type) registered with the XMPP Registrar. In addition, particular applications may define application-specific FORM_TYPEs as well, and one entity may have multiple service discovery identities (e.g., an XMPP server might also function as a publish-subscribe service). Therefore, it is possible (and allowed) for a single service discovery result to contain multiple service discovery extension elements (potentially up to two elements for each identity). However, in practice it is unlikely that any given service discovery result will contain more than one service discovery extension element.&lt;br /&gt;
&lt;br /&gt;
==安全注意事项==&lt;br /&gt;
Applications SHOULD ensure that information disclosed in a disco extension is appropriate for discovery by any entity on the network.&lt;br /&gt;
&lt;br /&gt;
==IANA注意事项==&lt;br /&gt;
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [6].&lt;br /&gt;
&lt;br /&gt;
==XMPP协议注册事项==&lt;br /&gt;
This document requires no interaction with the XMPP Registrar [7]; however, specifications following the best practices defined herein may register FORM_TYPEs and field values with the XMPP Registrar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
&lt;br /&gt;
系列：[http://xmpp.org/extensions/ XEP]&lt;br /&gt;
&lt;br /&gt;
序号：0128&lt;br /&gt;
&lt;br /&gt;
发布者：[http://xmpp.org/xsf/ XMPP标准基金会]&lt;br /&gt;
&lt;br /&gt;
状态：[http://www.xmpp.org/extensions/xep-0001.html#states-Final 终结版]&lt;br /&gt;
&lt;br /&gt;
类型：[http://www.xmpp.org/extensions/xep-0001.html#types-Standards%20Track 标准跟踪]&lt;br /&gt;
&lt;br /&gt;
版本：1.0&lt;br /&gt;
&lt;br /&gt;
最后更新：2004-10-20&lt;br /&gt;
&lt;br /&gt;
批准机构：[http://xmpp.org/council/ XMPP理事会]&lt;br /&gt;
&lt;br /&gt;
依赖标准：[[XEP-0004|XEP-0030|XEP-0068|XMPP Core]]&lt;br /&gt;
&lt;br /&gt;
取代: 无&lt;br /&gt;
&lt;br /&gt;
被替代标准：无&lt;br /&gt;
&lt;br /&gt;
缩略名：N/A&lt;br /&gt;
&lt;br /&gt;
原文控制： [http://svn.xmpp.org:18080/browse/XMPP/trunk/extensions/xep-0128.xml HTML] [http://svn.xmpp.org:18080//changelog/~rss/XMPP/trunk/extensions/xep-0128.xml/rss.xml RSS]&lt;br /&gt;
&lt;br /&gt;
本文的其它格式： [http://xmpp.org/extensions/xep-0030.xml XML] [http://xmpp.org/extensions/xep-0128.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Template:XEP附录CDEF}}&lt;br /&gt;
&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
END&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-08T08:13:05Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
Developers periodically wonder why Service Discovery [1] does not include more bits of information. For example, why does the &amp;lt;identity/&amp;gt; element not include a 'description' attribute, and can we add one now? The answer is: well, it just doesn't, and at this point it's too late to make further changes (since XEP-0030 is Final). So the best approach is to specify a well-defined extension mechanism.&lt;br /&gt;
&lt;br /&gt;
Let us consider an example. A Multi-User Chat [2] room might want to include additional information in its service discovery results, such as the full room description, the current discussion topic (room subject), the number of occupants in the room, and the JID of the room owner.&lt;br /&gt;
&lt;br /&gt;
Adding one new attribute to the service discovery schema (even if that were an option) would not solve the problem, since a MUC service might want to provide certain bits of information, whereas a Publish-Subscribe [3] service might want to provide other bits.&lt;br /&gt;
&lt;br /&gt;
A better solution would be to include extended information qualified by a namespace that provides a way to flexibly define structured data formats. Thankfully, we already possess such a protocol: Data Forms [4]. In addition, we possess a way to define common fields used in data forms: Field Standardization for Data Forms [5]. Using these building blocks, we can define some best practices for extending service discovery results.&lt;br /&gt;
&lt;br /&gt;
==建议==&lt;br /&gt;
If an entity desires to provide extended information about itself in an IQ results stanza within the context of the Service Discovery protocol, it SHOULD do so by including each bit of information as the XML character data of the &amp;lt;value/&amp;gt; child of a distinct &amp;lt;field/&amp;gt; element, with the entire set of fields contained within an &amp;lt;x/&amp;gt; element of type &amp;quot;result&amp;quot; qualified by the 'jabber:x:data' namespace; this &amp;lt;x/&amp;gt; element SHOULD be a child of the &amp;lt;query/&amp;gt; element qualified by the 'http://jabber.org/protocol/disco#info' namespace. Thus the IQ result SHOULD be of the following form:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;Note: A &amp;lt;field/&amp;gt; element MAY contain more than one &amp;lt;value/&amp;gt; child if appropriate.&lt;br /&gt;
&lt;br /&gt;
If the data fields are to be used in the context of a protocol approved by the XMPP Standards Foundation, they SHOULD be described in the relevant XMPP Extension Protocol specification and registered in accordance with the rules defined in XEP-0068, resulting in the inclusion of a &amp;lt;field/&amp;gt; element whose 'var' attribute has a value of &amp;quot;FORM_TYPE&amp;quot; and whose 'type' attribute has a value of &amp;quot;hidden&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
An entity MUST NOT supply extended information about associated children communicated via the 'http://jabber.org/protocol/disco#items' namespace, since a core principle of Service Discovery is that an entity must define its own identity only and must not define the identity of any children associated with the entity.&lt;br /&gt;
&lt;br /&gt;
==示例==&lt;br /&gt;
===IM服务器===&lt;br /&gt;
The following is an example of including a disco extension in the IQ result sent by a standard instant messaging server.&lt;br /&gt;
&lt;br /&gt;
Example 1. Entity Queries Server for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
===群===&lt;br /&gt;
The following is an example of including a disco extension in the IQ result sent by a Multi-User Chat room.&lt;br /&gt;
&lt;br /&gt;
Example 2. User Queries Room for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==实现说明==&lt;br /&gt;
In general, the XMPP Standards Foundation may choose to define at most one FORM_TYPE for each service discovery identity (category+type) registered with the XMPP Registrar. In addition, particular applications may define application-specific FORM_TYPEs as well, and one entity may have multiple service discovery identities (e.g., an XMPP server might also function as a publish-subscribe service). Therefore, it is possible (and allowed) for a single service discovery result to contain multiple service discovery extension elements (potentially up to two elements for each identity). However, in practice it is unlikely that any given service discovery result will contain more than one service discovery extension element.&lt;br /&gt;
&lt;br /&gt;
==安全注意事项==&lt;br /&gt;
Applications SHOULD ensure that information disclosed in a disco extension is appropriate for discovery by any entity on the network.&lt;br /&gt;
&lt;br /&gt;
==IANA注意事项==&lt;br /&gt;
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [6].&lt;br /&gt;
&lt;br /&gt;
==XMPP协议注册事项==&lt;br /&gt;
This document requires no interaction with the XMPP Registrar [7]; however, specifications following the best practices defined herein may register FORM_TYPEs and field values with the XMPP Registrar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
&lt;br /&gt;
系列：[http://xmpp.org/extensions/ XEP]&lt;br /&gt;
&lt;br /&gt;
序号：0128&lt;br /&gt;
&lt;br /&gt;
发布者：[http://xmpp.org/xsf/ XMPP标准基金会]&lt;br /&gt;
&lt;br /&gt;
状态：[http://www.xmpp.org/extensions/xep-0001.html#states-Final 终结版]&lt;br /&gt;
&lt;br /&gt;
类型：[http://www.xmpp.org/extensions/xep-0001.html#types-Standards%20Track 标准跟踪]&lt;br /&gt;
&lt;br /&gt;
版本：1.0&lt;br /&gt;
&lt;br /&gt;
最后更新：2004-10-20&lt;br /&gt;
&lt;br /&gt;
批准机构：[http://xmpp.org/council/ XMPP理事会]&lt;br /&gt;
&lt;br /&gt;
依赖标准：[[XEP-0004|XEP-0030|XEP-0068|XMPP Core]]&lt;br /&gt;
&lt;br /&gt;
取代: 无&lt;br /&gt;
&lt;br /&gt;
被替代标准：无&lt;br /&gt;
&lt;br /&gt;
缩略名：N/A&lt;br /&gt;
&lt;br /&gt;
原文控制： [http://svn.xmpp.org:18080/browse/XMPP/trunk/extensions/xep-0128.xml HTML] [http://svn.xmpp.org:18080//changelog/~rss/XMPP/trunk/extensions/xep-0128.xml/rss.xml RSS]&lt;br /&gt;
&lt;br /&gt;
本文的其它格式： [http://xmpp.org/extensions/xep-0030.xml XML] [http://xmpp.org/extensions/xep-0128.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录C:法律条款===&lt;br /&gt;
Copyright&lt;br /&gt;
This XMPP Extension Protocol is copyright © 1999 - 2010 by the XMPP Standards Foundation (XSF).&lt;br /&gt;
Permissions&lt;br /&gt;
Permission is hereby granted, free of charge, to any person obtaining a copy of this specification (the &amp;quot;Specification&amp;quot;), to make use of the Specification without restriction, including without limitation the rights to implement the Specification in a software program, deploy the Specification in a network service, and copy, modify, merge, publish, translate, distribute, sublicense, or sell copies of the Specification, and to permit persons to whom the Specification is furnished to do so, subject to the condition that the foregoing copyright notice and this permission notice shall be included in all copies or substantial portions of the Specification. Unless separate permission is granted, modified works that are redistributed shall not contain misleading information regarding the authors, title, number, or publisher of the Specification, and shall not claim endorsement of the modified works by the authors, any organization or project to which the authors belong, or the XMPP Standards Foundation.&lt;br /&gt;
Disclaimer of Warranty&lt;br /&gt;
## NOTE WELL: This Specification is provided on an &amp;quot;AS IS&amp;quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. ##&lt;br /&gt;
Limitation of Liability&lt;br /&gt;
In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall the XMPP Standards Foundation or any author of this Specification be liable for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising from, out of, or in connection with the Specification or the implementation, deployment, or other use of the Specification (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if the XMPP Standards Foundation or such author has been advised of the possibility of such damages.&lt;br /&gt;
IPR Conformance&lt;br /&gt;
This XMPP Extension Protocol has been contributed in full conformance with the XSF's Intellectual Property Rights Policy (a copy of which can be found at &amp;lt;http://xmpp.org/extensions/ipr-policy.shtml&amp;gt; or obtained by writing to XMPP Standards Foundation, 1899 Wynkoop Street, Suite 600, Denver, CO 80202 USA).&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录D:XMPP的关系===&lt;br /&gt;
The Extensible Messaging and Presence Protocol (XMPP) is defined in the XMPP Core (RFC 3920) and XMPP IM (RFC 3921) specifications contributed by the XMPP Standards Foundation to the Internet Standards Process, which is managed by the Internet Engineering Task Force in accordance with RFC 2026. Any protocol defined in this document has been developed outside the Internet Standards Process and is to be understood as an extension to XMPP rather than as an evolution, development, or modification of XMPP itself.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录E:讨论地点===&lt;br /&gt;
The primary venue for discussion of XMPP Extension Protocols is the &amp;lt;standards@xmpp.org&amp;gt; discussion list.&lt;br /&gt;
&lt;br /&gt;
Discussion on other xmpp.org discussion lists might also be appropriate; see &amp;lt;http://xmpp.org/about/discuss.shtml&amp;gt; for a complete list.&lt;br /&gt;
&lt;br /&gt;
Errata can be sent to &amp;lt;editor@xmpp.org&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录F:一致性===&lt;br /&gt;
The following requirements keywords as used in this document are to be interpreted as described in RFC 2119: &amp;quot;MUST&amp;quot;, &amp;quot;SHALL&amp;quot;, &amp;quot;REQUIRED&amp;quot;; &amp;quot;MUST NOT&amp;quot;, &amp;quot;SHALL NOT&amp;quot;; &amp;quot;SHOULD&amp;quot;, &amp;quot;RECOMMENDED&amp;quot;; &amp;quot;SHOULD NOT&amp;quot;, &amp;quot;NOT RECOMMENDED&amp;quot;; &amp;quot;MAY&amp;quot;, &amp;quot;OPTIONAL&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
END&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-08T08:05:08Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
Developers periodically wonder why Service Discovery [1] does not include more bits of information. For example, why does the &amp;lt;identity/&amp;gt; element not include a 'description' attribute, and can we add one now? The answer is: well, it just doesn't, and at this point it's too late to make further changes (since XEP-0030 is Final). So the best approach is to specify a well-defined extension mechanism.&lt;br /&gt;
&lt;br /&gt;
Let us consider an example. A Multi-User Chat [2] room might want to include additional information in its service discovery results, such as the full room description, the current discussion topic (room subject), the number of occupants in the room, and the JID of the room owner.&lt;br /&gt;
&lt;br /&gt;
Adding one new attribute to the service discovery schema (even if that were an option) would not solve the problem, since a MUC service might want to provide certain bits of information, whereas a Publish-Subscribe [3] service might want to provide other bits.&lt;br /&gt;
&lt;br /&gt;
A better solution would be to include extended information qualified by a namespace that provides a way to flexibly define structured data formats. Thankfully, we already possess such a protocol: Data Forms [4]. In addition, we possess a way to define common fields used in data forms: Field Standardization for Data Forms [5]. Using these building blocks, we can define some best practices for extending service discovery results.&lt;br /&gt;
&lt;br /&gt;
==建议==&lt;br /&gt;
If an entity desires to provide extended information about itself in an IQ results stanza within the context of the Service Discovery protocol, it SHOULD do so by including each bit of information as the XML character data of the &amp;lt;value/&amp;gt; child of a distinct &amp;lt;field/&amp;gt; element, with the entire set of fields contained within an &amp;lt;x/&amp;gt; element of type &amp;quot;result&amp;quot; qualified by the 'jabber:x:data' namespace; this &amp;lt;x/&amp;gt; element SHOULD be a child of the &amp;lt;query/&amp;gt; element qualified by the 'http://jabber.org/protocol/disco#info' namespace. Thus the IQ result SHOULD be of the following form:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;Note: A &amp;lt;field/&amp;gt; element MAY contain more than one &amp;lt;value/&amp;gt; child if appropriate.&lt;br /&gt;
&lt;br /&gt;
If the data fields are to be used in the context of a protocol approved by the XMPP Standards Foundation, they SHOULD be described in the relevant XMPP Extension Protocol specification and registered in accordance with the rules defined in XEP-0068, resulting in the inclusion of a &amp;lt;field/&amp;gt; element whose 'var' attribute has a value of &amp;quot;FORM_TYPE&amp;quot; and whose 'type' attribute has a value of &amp;quot;hidden&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
An entity MUST NOT supply extended information about associated children communicated via the 'http://jabber.org/protocol/disco#items' namespace, since a core principle of Service Discovery is that an entity must define its own identity only and must not define the identity of any children associated with the entity.&lt;br /&gt;
&lt;br /&gt;
==示例==&lt;br /&gt;
===IM服务器===&lt;br /&gt;
The following is an example of including a disco extension in the IQ result sent by a standard instant messaging server.&lt;br /&gt;
&lt;br /&gt;
Example 1. Entity Queries Server for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
===群===&lt;br /&gt;
The following is an example of including a disco extension in the IQ result sent by a Multi-User Chat room.&lt;br /&gt;
&lt;br /&gt;
Example 2. User Queries Room for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==实现说明==&lt;br /&gt;
In general, the XMPP Standards Foundation may choose to define at most one FORM_TYPE for each service discovery identity (category+type) registered with the XMPP Registrar. In addition, particular applications may define application-specific FORM_TYPEs as well, and one entity may have multiple service discovery identities (e.g., an XMPP server might also function as a publish-subscribe service). Therefore, it is possible (and allowed) for a single service discovery result to contain multiple service discovery extension elements (potentially up to two elements for each identity). However, in practice it is unlikely that any given service discovery result will contain more than one service discovery extension element.&lt;br /&gt;
&lt;br /&gt;
==安全注意事项==&lt;br /&gt;
Applications SHOULD ensure that information disclosed in a disco extension is appropriate for discovery by any entity on the network.&lt;br /&gt;
&lt;br /&gt;
==IANA注意事项==&lt;br /&gt;
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [6].&lt;br /&gt;
&lt;br /&gt;
==XMPP协议注册事项==&lt;br /&gt;
This document requires no interaction with the XMPP Registrar [7]; however, specifications following the best practices defined herein may register FORM_TYPEs and field values with the XMPP Registrar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
Series: XEP&lt;br /&gt;
Number: 0128&lt;br /&gt;
Publisher: XMPP Standards Foundation&lt;br /&gt;
Status: Active&lt;br /&gt;
Type: Informational&lt;br /&gt;
Version: 1.0&lt;br /&gt;
Last Updated: 2004-10-20&lt;br /&gt;
Approving Body: XMPP Council&lt;br /&gt;
Dependencies: XMPP Core, XEP-0004, XEP-0030, XEP-0068&lt;br /&gt;
Supersedes: None&lt;br /&gt;
Superseded By: None&lt;br /&gt;
Short Name: N/A&lt;br /&gt;
Source Control: HTML  RSS&lt;br /&gt;
This document in other formats: XML  PDF&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录C:法律条款===&lt;br /&gt;
Copyright&lt;br /&gt;
This XMPP Extension Protocol is copyright © 1999 - 2010 by the XMPP Standards Foundation (XSF).&lt;br /&gt;
Permissions&lt;br /&gt;
Permission is hereby granted, free of charge, to any person obtaining a copy of this specification (the &amp;quot;Specification&amp;quot;), to make use of the Specification without restriction, including without limitation the rights to implement the Specification in a software program, deploy the Specification in a network service, and copy, modify, merge, publish, translate, distribute, sublicense, or sell copies of the Specification, and to permit persons to whom the Specification is furnished to do so, subject to the condition that the foregoing copyright notice and this permission notice shall be included in all copies or substantial portions of the Specification. Unless separate permission is granted, modified works that are redistributed shall not contain misleading information regarding the authors, title, number, or publisher of the Specification, and shall not claim endorsement of the modified works by the authors, any organization or project to which the authors belong, or the XMPP Standards Foundation.&lt;br /&gt;
Disclaimer of Warranty&lt;br /&gt;
## NOTE WELL: This Specification is provided on an &amp;quot;AS IS&amp;quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. ##&lt;br /&gt;
Limitation of Liability&lt;br /&gt;
In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall the XMPP Standards Foundation or any author of this Specification be liable for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising from, out of, or in connection with the Specification or the implementation, deployment, or other use of the Specification (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if the XMPP Standards Foundation or such author has been advised of the possibility of such damages.&lt;br /&gt;
IPR Conformance&lt;br /&gt;
This XMPP Extension Protocol has been contributed in full conformance with the XSF's Intellectual Property Rights Policy (a copy of which can be found at &amp;lt;http://xmpp.org/extensions/ipr-policy.shtml&amp;gt; or obtained by writing to XMPP Standards Foundation, 1899 Wynkoop Street, Suite 600, Denver, CO 80202 USA).&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录D:XMPP的关系===&lt;br /&gt;
The Extensible Messaging and Presence Protocol (XMPP) is defined in the XMPP Core (RFC 3920) and XMPP IM (RFC 3921) specifications contributed by the XMPP Standards Foundation to the Internet Standards Process, which is managed by the Internet Engineering Task Force in accordance with RFC 2026. Any protocol defined in this document has been developed outside the Internet Standards Process and is to be understood as an extension to XMPP rather than as an evolution, development, or modification of XMPP itself.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录E:讨论地点===&lt;br /&gt;
The primary venue for discussion of XMPP Extension Protocols is the &amp;lt;standards@xmpp.org&amp;gt; discussion list.&lt;br /&gt;
&lt;br /&gt;
Discussion on other xmpp.org discussion lists might also be appropriate; see &amp;lt;http://xmpp.org/about/discuss.shtml&amp;gt; for a complete list.&lt;br /&gt;
&lt;br /&gt;
Errata can be sent to &amp;lt;editor@xmpp.org&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录F:一致性===&lt;br /&gt;
The following requirements keywords as used in this document are to be interpreted as described in RFC 2119: &amp;quot;MUST&amp;quot;, &amp;quot;SHALL&amp;quot;, &amp;quot;REQUIRED&amp;quot;; &amp;quot;MUST NOT&amp;quot;, &amp;quot;SHALL NOT&amp;quot;; &amp;quot;SHOULD&amp;quot;, &amp;quot;RECOMMENDED&amp;quot;; &amp;quot;SHOULD NOT&amp;quot;, &amp;quot;NOT RECOMMENDED&amp;quot;; &amp;quot;MAY&amp;quot;, &amp;quot;OPTIONAL&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
END&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-08T07:53:58Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。&lt;br /&gt;
&lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
&lt;br /&gt;
版权: © 1999 - 2010 XMPP标准化基金会(XSF). 参见[[XEP-0030#附录C:法律通告|法律通告]].&lt;br /&gt;
&lt;br /&gt;
现状: 活跃 &lt;br /&gt;
&lt;br /&gt;
类型: 信息 &lt;br /&gt;
&lt;br /&gt;
版本: 1.0 &lt;br /&gt;
&lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注意：注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==简介==&lt;br /&gt;
Developers periodically wonder why Service Discovery [1] does not include more bits of information. For example, why does the &amp;lt;identity/&amp;gt; element not include a 'description' attribute, and can we add one now? The answer is: well, it just doesn't, and at this point it's too late to make further changes (since XEP-0030 is Final). So the best approach is to specify a well-defined extension mechanism.&lt;br /&gt;
&lt;br /&gt;
Let us consider an example. A Multi-User Chat [2] room might want to include additional information in its service discovery results, such as the full room description, the current discussion topic (room subject), the number of occupants in the room, and the JID of the room owner.&lt;br /&gt;
&lt;br /&gt;
Adding one new attribute to the service discovery schema (even if that were an option) would not solve the problem, since a MUC service might want to provide certain bits of information, whereas a Publish-Subscribe [3] service might want to provide other bits.&lt;br /&gt;
&lt;br /&gt;
A better solution would be to include extended information qualified by a namespace that provides a way to flexibly define structured data formats. Thankfully, we already possess such a protocol: Data Forms [4]. In addition, we possess a way to define common fields used in data forms: Field Standardization for Data Forms [5]. Using these building blocks, we can define some best practices for extending service discovery results.&lt;br /&gt;
&lt;br /&gt;
2. Recommendations&lt;br /&gt;
If an entity desires to provide extended information about itself in an IQ results stanza within the context of the Service Discovery protocol, it SHOULD do so by including each bit of information as the XML character data of the &amp;lt;value/&amp;gt; child of a distinct &amp;lt;field/&amp;gt; element, with the entire set of fields contained within an &amp;lt;x/&amp;gt; element of type &amp;quot;result&amp;quot; qualified by the 'jabber:x:data' namespace; this &amp;lt;x/&amp;gt; element SHOULD be a child of the &amp;lt;query/&amp;gt; element qualified by the 'http://jabber.org/protocol/disco#info' namespace. Thus the IQ result SHOULD be of the following form:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;Note: A &amp;lt;field/&amp;gt; element MAY contain more than one &amp;lt;value/&amp;gt; child if appropriate.&lt;br /&gt;
&lt;br /&gt;
If the data fields are to be used in the context of a protocol approved by the XMPP Standards Foundation, they SHOULD be described in the relevant XMPP Extension Protocol specification and registered in accordance with the rules defined in XEP-0068, resulting in the inclusion of a &amp;lt;field/&amp;gt; element whose 'var' attribute has a value of &amp;quot;FORM_TYPE&amp;quot; and whose 'type' attribute has a value of &amp;quot;hidden&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
An entity MUST NOT supply extended information about associated children communicated via the 'http://jabber.org/protocol/disco#items' namespace, since a core principle of Service Discovery is that an entity must define its own identity only and must not define the identity of any children associated with the entity.&lt;br /&gt;
&lt;br /&gt;
3. Examples&lt;br /&gt;
3.1 IM Server&lt;br /&gt;
The following is an example of including a disco extension in the IQ result sent by a standard instant messaging server.&lt;br /&gt;
&lt;br /&gt;
Example 1. Entity Queries Server for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
    3.2 Multi-User Chat Room&lt;br /&gt;
The following is an example of including a disco extension in the IQ result sent by a Multi-User Chat room.&lt;br /&gt;
&lt;br /&gt;
Example 2. User Queries Room for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
    4. Implementation Notes&lt;br /&gt;
In general, the XMPP Standards Foundation may choose to define at most one FORM_TYPE for each service discovery identity (category+type) registered with the XMPP Registrar. In addition, particular applications may define application-specific FORM_TYPEs as well, and one entity may have multiple service discovery identities (e.g., an XMPP server might also function as a publish-subscribe service). Therefore, it is possible (and allowed) for a single service discovery result to contain multiple service discovery extension elements (potentially up to two elements for each identity). However, in practice it is unlikely that any given service discovery result will contain more than one service discovery extension element.&lt;br /&gt;
&lt;br /&gt;
5. Security Considerations&lt;br /&gt;
Applications SHOULD ensure that information disclosed in a disco extension is appropriate for discovery by any entity on the network.&lt;br /&gt;
&lt;br /&gt;
6. IANA Considerations&lt;br /&gt;
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [6].&lt;br /&gt;
&lt;br /&gt;
7. XMPP Registrar Considerations&lt;br /&gt;
This document requires no interaction with the XMPP Registrar [7]; however, specifications following the best practices defined herein may register FORM_TYPEs and field values with the XMPP Registrar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
Series: XEP&lt;br /&gt;
Number: 0128&lt;br /&gt;
Publisher: XMPP Standards Foundation&lt;br /&gt;
Status: Active&lt;br /&gt;
Type: Informational&lt;br /&gt;
Version: 1.0&lt;br /&gt;
Last Updated: 2004-10-20&lt;br /&gt;
Approving Body: XMPP Council&lt;br /&gt;
Dependencies: XMPP Core, XEP-0004, XEP-0030, XEP-0068&lt;br /&gt;
Supersedes: None&lt;br /&gt;
Superseded By: None&lt;br /&gt;
Short Name: N/A&lt;br /&gt;
Source Control: HTML  RSS&lt;br /&gt;
This document in other formats: XML  PDF&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录C:法律条款===&lt;br /&gt;
Copyright&lt;br /&gt;
This XMPP Extension Protocol is copyright © 1999 - 2010 by the XMPP Standards Foundation (XSF).&lt;br /&gt;
Permissions&lt;br /&gt;
Permission is hereby granted, free of charge, to any person obtaining a copy of this specification (the &amp;quot;Specification&amp;quot;), to make use of the Specification without restriction, including without limitation the rights to implement the Specification in a software program, deploy the Specification in a network service, and copy, modify, merge, publish, translate, distribute, sublicense, or sell copies of the Specification, and to permit persons to whom the Specification is furnished to do so, subject to the condition that the foregoing copyright notice and this permission notice shall be included in all copies or substantial portions of the Specification. Unless separate permission is granted, modified works that are redistributed shall not contain misleading information regarding the authors, title, number, or publisher of the Specification, and shall not claim endorsement of the modified works by the authors, any organization or project to which the authors belong, or the XMPP Standards Foundation.&lt;br /&gt;
Disclaimer of Warranty&lt;br /&gt;
## NOTE WELL: This Specification is provided on an &amp;quot;AS IS&amp;quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. ##&lt;br /&gt;
Limitation of Liability&lt;br /&gt;
In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall the XMPP Standards Foundation or any author of this Specification be liable for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising from, out of, or in connection with the Specification or the implementation, deployment, or other use of the Specification (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if the XMPP Standards Foundation or such author has been advised of the possibility of such damages.&lt;br /&gt;
IPR Conformance&lt;br /&gt;
This XMPP Extension Protocol has been contributed in full conformance with the XSF's Intellectual Property Rights Policy (a copy of which can be found at &amp;lt;http://xmpp.org/extensions/ipr-policy.shtml&amp;gt; or obtained by writing to XMPP Standards Foundation, 1899 Wynkoop Street, Suite 600, Denver, CO 80202 USA).&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录D:XMPP的关系===&lt;br /&gt;
The Extensible Messaging and Presence Protocol (XMPP) is defined in the XMPP Core (RFC 3920) and XMPP IM (RFC 3921) specifications contributed by the XMPP Standards Foundation to the Internet Standards Process, which is managed by the Internet Engineering Task Force in accordance with RFC 2026. Any protocol defined in this document has been developed outside the Internet Standards Process and is to be understood as an extension to XMPP rather than as an evolution, development, or modification of XMPP itself.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录E:讨论地点===&lt;br /&gt;
The primary venue for discussion of XMPP Extension Protocols is the &amp;lt;standards@xmpp.org&amp;gt; discussion list.&lt;br /&gt;
&lt;br /&gt;
Discussion on other xmpp.org discussion lists might also be appropriate; see &amp;lt;http://xmpp.org/about/discuss.shtml&amp;gt; for a complete list.&lt;br /&gt;
&lt;br /&gt;
Errata can be sent to &amp;lt;editor@xmpp.org&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录F:一致性===&lt;br /&gt;
The following requirements keywords as used in this document are to be interpreted as described in RFC 2119: &amp;quot;MUST&amp;quot;, &amp;quot;SHALL&amp;quot;, &amp;quot;REQUIRED&amp;quot;; &amp;quot;MUST NOT&amp;quot;, &amp;quot;SHALL NOT&amp;quot;; &amp;quot;SHOULD&amp;quot;, &amp;quot;RECOMMENDED&amp;quot;; &amp;quot;SHOULD NOT&amp;quot;, &amp;quot;NOT RECOMMENDED&amp;quot;; &amp;quot;MAY&amp;quot;, &amp;quot;OPTIONAL&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
END&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-07-08T07:42:37Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务扩展协议'''&lt;br /&gt;
&lt;br /&gt;
摘要: 这个文件规定了发现服务的扩展信息的最佳做法。. &lt;br /&gt;
作者: Peter Saint-Andre &lt;br /&gt;
版权所有: © 1999 - 2010 XMPP Standards Foundation. SEE LEGAL NOTICES. &lt;br /&gt;
现状: 活跃 &lt;br /&gt;
类型: 信息 &lt;br /&gt;
版本: 1.0 &lt;br /&gt;
最后更新: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
注意：此信息规范定义了一个最佳实践或协议配置文件已被批准的XMPP理事会和/或董事XSF局。 Implementations are encouraged and the best practice or protocol profile is appropriate for deployment in production systems.实现是鼓励和最佳做法或协议配置文件是在生产系统中部署适当的。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Table of Contents&lt;br /&gt;
&lt;br /&gt;
1. Introduction&lt;br /&gt;
2. Recommendations&lt;br /&gt;
3. Examples&lt;br /&gt;
    3.1. IM Server&lt;br /&gt;
    3.2. Multi-User Chat Room&lt;br /&gt;
4. Implementation Notes&lt;br /&gt;
5. Security Considerations&lt;br /&gt;
6. IANA Considerations&lt;br /&gt;
7. XMPP Registrar Considerations&lt;br /&gt;
&lt;br /&gt;
Appendices&lt;br /&gt;
    A: Document Information&lt;br /&gt;
    B: Author Information&lt;br /&gt;
    C: Legal Notices&lt;br /&gt;
    D: Relation to XMPP&lt;br /&gt;
    E: Discussion Venue&lt;br /&gt;
    F: Requirements Conformance&lt;br /&gt;
    G: Notes&lt;br /&gt;
    H: Revision History&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
1. Introduction&lt;br /&gt;
Developers periodically wonder why Service Discovery [1] does not include more bits of information. For example, why does the &amp;lt;identity/&amp;gt; element not include a 'description' attribute, and can we add one now? The answer is: well, it just doesn't, and at this point it's too late to make further changes (since XEP-0030 is Final). So the best approach is to specify a well-defined extension mechanism.&lt;br /&gt;
&lt;br /&gt;
Let us consider an example. A Multi-User Chat [2] room might want to include additional information in its service discovery results, such as the full room description, the current discussion topic (room subject), the number of occupants in the room, and the JID of the room owner.&lt;br /&gt;
&lt;br /&gt;
Adding one new attribute to the service discovery schema (even if that were an option) would not solve the problem, since a MUC service might want to provide certain bits of information, whereas a Publish-Subscribe [3] service might want to provide other bits.&lt;br /&gt;
&lt;br /&gt;
A better solution would be to include extended information qualified by a namespace that provides a way to flexibly define structured data formats. Thankfully, we already possess such a protocol: Data Forms [4]. In addition, we possess a way to define common fields used in data forms: Field Standardization for Data Forms [5]. Using these building blocks, we can define some best practices for extending service discovery results.&lt;br /&gt;
&lt;br /&gt;
2. Recommendations&lt;br /&gt;
If an entity desires to provide extended information about itself in an IQ results stanza within the context of the Service Discovery protocol, it SHOULD do so by including each bit of information as the XML character data of the &amp;lt;value/&amp;gt; child of a distinct &amp;lt;field/&amp;gt; element, with the entire set of fields contained within an &amp;lt;x/&amp;gt; element of type &amp;quot;result&amp;quot; qualified by the 'jabber:x:data' namespace; this &amp;lt;x/&amp;gt; element SHOULD be a child of the &amp;lt;query/&amp;gt; element qualified by the 'http://jabber.org/protocol/disco#info' namespace. Thus the IQ result SHOULD be of the following form:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;Note: A &amp;lt;field/&amp;gt; element MAY contain more than one &amp;lt;value/&amp;gt; child if appropriate.&lt;br /&gt;
&lt;br /&gt;
If the data fields are to be used in the context of a protocol approved by the XMPP Standards Foundation, they SHOULD be described in the relevant XMPP Extension Protocol specification and registered in accordance with the rules defined in XEP-0068, resulting in the inclusion of a &amp;lt;field/&amp;gt; element whose 'var' attribute has a value of &amp;quot;FORM_TYPE&amp;quot; and whose 'type' attribute has a value of &amp;quot;hidden&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
An entity MUST NOT supply extended information about associated children communicated via the 'http://jabber.org/protocol/disco#items' namespace, since a core principle of Service Discovery is that an entity must define its own identity only and must not define the identity of any children associated with the entity.&lt;br /&gt;
&lt;br /&gt;
3. Examples&lt;br /&gt;
3.1 IM Server&lt;br /&gt;
The following is an example of including a disco extension in the IQ result sent by a standard instant messaging server.&lt;br /&gt;
&lt;br /&gt;
Example 1. Entity Queries Server for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
    3.2 Multi-User Chat Room&lt;br /&gt;
The following is an example of including a disco extension in the IQ result sent by a Multi-User Chat room.&lt;br /&gt;
&lt;br /&gt;
Example 2. User Queries Room for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
    4. Implementation Notes&lt;br /&gt;
In general, the XMPP Standards Foundation may choose to define at most one FORM_TYPE for each service discovery identity (category+type) registered with the XMPP Registrar. In addition, particular applications may define application-specific FORM_TYPEs as well, and one entity may have multiple service discovery identities (e.g., an XMPP server might also function as a publish-subscribe service). Therefore, it is possible (and allowed) for a single service discovery result to contain multiple service discovery extension elements (potentially up to two elements for each identity). However, in practice it is unlikely that any given service discovery result will contain more than one service discovery extension element.&lt;br /&gt;
&lt;br /&gt;
5. Security Considerations&lt;br /&gt;
Applications SHOULD ensure that information disclosed in a disco extension is appropriate for discovery by any entity on the network.&lt;br /&gt;
&lt;br /&gt;
6. IANA Considerations&lt;br /&gt;
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [6].&lt;br /&gt;
&lt;br /&gt;
7. XMPP Registrar Considerations&lt;br /&gt;
This document requires no interaction with the XMPP Registrar [7]; however, specifications following the best practices defined herein may register FORM_TYPEs and field values with the XMPP Registrar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
Series: XEP&lt;br /&gt;
Number: 0128&lt;br /&gt;
Publisher: XMPP Standards Foundation&lt;br /&gt;
Status: Active&lt;br /&gt;
Type: Informational&lt;br /&gt;
Version: 1.0&lt;br /&gt;
Last Updated: 2004-10-20&lt;br /&gt;
Approving Body: XMPP Council&lt;br /&gt;
Dependencies: XMPP Core, XEP-0004, XEP-0030, XEP-0068&lt;br /&gt;
Supersedes: None&lt;br /&gt;
Superseded By: None&lt;br /&gt;
Short Name: N/A&lt;br /&gt;
Source Control: HTML  RSS&lt;br /&gt;
This document in other formats: XML  PDF&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录C:法律条款===&lt;br /&gt;
Copyright&lt;br /&gt;
This XMPP Extension Protocol is copyright © 1999 - 2010 by the XMPP Standards Foundation (XSF).&lt;br /&gt;
Permissions&lt;br /&gt;
Permission is hereby granted, free of charge, to any person obtaining a copy of this specification (the &amp;quot;Specification&amp;quot;), to make use of the Specification without restriction, including without limitation the rights to implement the Specification in a software program, deploy the Specification in a network service, and copy, modify, merge, publish, translate, distribute, sublicense, or sell copies of the Specification, and to permit persons to whom the Specification is furnished to do so, subject to the condition that the foregoing copyright notice and this permission notice shall be included in all copies or substantial portions of the Specification. Unless separate permission is granted, modified works that are redistributed shall not contain misleading information regarding the authors, title, number, or publisher of the Specification, and shall not claim endorsement of the modified works by the authors, any organization or project to which the authors belong, or the XMPP Standards Foundation.&lt;br /&gt;
Disclaimer of Warranty&lt;br /&gt;
## NOTE WELL: This Specification is provided on an &amp;quot;AS IS&amp;quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. ##&lt;br /&gt;
Limitation of Liability&lt;br /&gt;
In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall the XMPP Standards Foundation or any author of this Specification be liable for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising from, out of, or in connection with the Specification or the implementation, deployment, or other use of the Specification (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if the XMPP Standards Foundation or such author has been advised of the possibility of such damages.&lt;br /&gt;
IPR Conformance&lt;br /&gt;
This XMPP Extension Protocol has been contributed in full conformance with the XSF's Intellectual Property Rights Policy (a copy of which can be found at &amp;lt;http://xmpp.org/extensions/ipr-policy.shtml&amp;gt; or obtained by writing to XMPP Standards Foundation, 1899 Wynkoop Street, Suite 600, Denver, CO 80202 USA).&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录D:XMPP的关系===&lt;br /&gt;
The Extensible Messaging and Presence Protocol (XMPP) is defined in the XMPP Core (RFC 3920) and XMPP IM (RFC 3921) specifications contributed by the XMPP Standards Foundation to the Internet Standards Process, which is managed by the Internet Engineering Task Force in accordance with RFC 2026. Any protocol defined in this document has been developed outside the Internet Standards Process and is to be understood as an extension to XMPP rather than as an evolution, development, or modification of XMPP itself.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录E:讨论地点===&lt;br /&gt;
The primary venue for discussion of XMPP Extension Protocols is the &amp;lt;standards@xmpp.org&amp;gt; discussion list.&lt;br /&gt;
&lt;br /&gt;
Discussion on other xmpp.org discussion lists might also be appropriate; see &amp;lt;http://xmpp.org/about/discuss.shtml&amp;gt; for a complete list.&lt;br /&gt;
&lt;br /&gt;
Errata can be sent to &amp;lt;editor@xmpp.org&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录F:一致性===&lt;br /&gt;
The following requirements keywords as used in this document are to be interpreted as described in RFC 2119: &amp;quot;MUST&amp;quot;, &amp;quot;SHALL&amp;quot;, &amp;quot;REQUIRED&amp;quot;; &amp;quot;MUST NOT&amp;quot;, &amp;quot;SHALL NOT&amp;quot;; &amp;quot;SHOULD&amp;quot;, &amp;quot;RECOMMENDED&amp;quot;; &amp;quot;SHOULD NOT&amp;quot;, &amp;quot;NOT RECOMMENDED&amp;quot;; &amp;quot;MAY&amp;quot;, &amp;quot;OPTIONAL&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
END&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-05-31T07:35:17Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务'''&lt;br /&gt;
&lt;br /&gt;
XEP-0128: Service Discovery Extensions&lt;br /&gt;
Abstract: This document specifies best practices for including extended information in Service Discovery results. &lt;br /&gt;
Author: Peter Saint-Andre &lt;br /&gt;
Copyright: © 1999 - 2010 XMPP Standards Foundation. SEE LEGAL NOTICES. &lt;br /&gt;
Status: Active &lt;br /&gt;
Type: Informational &lt;br /&gt;
Version: 1.0 &lt;br /&gt;
Last Updated: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
NOTICE: This Informational specification defines a best practice or protocol profile that has been approved by the XMPP Council and/or the XSF Board of Directors. Implementations are encouraged and the best practice or protocol profile is appropriate for deployment in production systems.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Table of Contents&lt;br /&gt;
&lt;br /&gt;
1. Introduction&lt;br /&gt;
2. Recommendations&lt;br /&gt;
3. Examples&lt;br /&gt;
    3.1. IM Server&lt;br /&gt;
    3.2. Multi-User Chat Room&lt;br /&gt;
4. Implementation Notes&lt;br /&gt;
5. Security Considerations&lt;br /&gt;
6. IANA Considerations&lt;br /&gt;
7. XMPP Registrar Considerations&lt;br /&gt;
&lt;br /&gt;
Appendices&lt;br /&gt;
    A: Document Information&lt;br /&gt;
    B: Author Information&lt;br /&gt;
    C: Legal Notices&lt;br /&gt;
    D: Relation to XMPP&lt;br /&gt;
    E: Discussion Venue&lt;br /&gt;
    F: Requirements Conformance&lt;br /&gt;
    G: Notes&lt;br /&gt;
    H: Revision History&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
1. Introduction&lt;br /&gt;
Developers periodically wonder why Service Discovery [1] does not include more bits of information. For example, why does the &amp;lt;identity/&amp;gt; element not include a 'description' attribute, and can we add one now? The answer is: well, it just doesn't, and at this point it's too late to make further changes (since XEP-0030 is Final). So the best approach is to specify a well-defined extension mechanism.&lt;br /&gt;
&lt;br /&gt;
Let us consider an example. A Multi-User Chat [2] room might want to include additional information in its service discovery results, such as the full room description, the current discussion topic (room subject), the number of occupants in the room, and the JID of the room owner.&lt;br /&gt;
&lt;br /&gt;
Adding one new attribute to the service discovery schema (even if that were an option) would not solve the problem, since a MUC service might want to provide certain bits of information, whereas a Publish-Subscribe [3] service might want to provide other bits.&lt;br /&gt;
&lt;br /&gt;
A better solution would be to include extended information qualified by a namespace that provides a way to flexibly define structured data formats. Thankfully, we already possess such a protocol: Data Forms [4]. In addition, we possess a way to define common fields used in data forms: Field Standardization for Data Forms [5]. Using these building blocks, we can define some best practices for extending service discovery results.&lt;br /&gt;
&lt;br /&gt;
2. Recommendations&lt;br /&gt;
If an entity desires to provide extended information about itself in an IQ results stanza within the context of the Service Discovery protocol, it SHOULD do so by including each bit of information as the XML character data of the &amp;lt;value/&amp;gt; child of a distinct &amp;lt;field/&amp;gt; element, with the entire set of fields contained within an &amp;lt;x/&amp;gt; element of type &amp;quot;result&amp;quot; qualified by the 'jabber:x:data' namespace; this &amp;lt;x/&amp;gt; element SHOULD be a child of the &amp;lt;query/&amp;gt; element qualified by the 'http://jabber.org/protocol/disco#info' namespace. Thus the IQ result SHOULD be of the following form:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;Note: A &amp;lt;field/&amp;gt; element MAY contain more than one &amp;lt;value/&amp;gt; child if appropriate.&lt;br /&gt;
&lt;br /&gt;
If the data fields are to be used in the context of a protocol approved by the XMPP Standards Foundation, they SHOULD be described in the relevant XMPP Extension Protocol specification and registered in accordance with the rules defined in XEP-0068, resulting in the inclusion of a &amp;lt;field/&amp;gt; element whose 'var' attribute has a value of &amp;quot;FORM_TYPE&amp;quot; and whose 'type' attribute has a value of &amp;quot;hidden&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
An entity MUST NOT supply extended information about associated children communicated via the 'http://jabber.org/protocol/disco#items' namespace, since a core principle of Service Discovery is that an entity must define its own identity only and must not define the identity of any children associated with the entity.&lt;br /&gt;
&lt;br /&gt;
3. Examples&lt;br /&gt;
3.1 IM Server&lt;br /&gt;
The following is an example of including a disco extension in the IQ result sent by a standard instant messaging server.&lt;br /&gt;
&lt;br /&gt;
Example 1. Entity Queries Server for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
    3.2 Multi-User Chat Room&lt;br /&gt;
The following is an example of including a disco extension in the IQ result sent by a Multi-User Chat room.&lt;br /&gt;
&lt;br /&gt;
Example 2. User Queries Room for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
    4. Implementation Notes&lt;br /&gt;
In general, the XMPP Standards Foundation may choose to define at most one FORM_TYPE for each service discovery identity (category+type) registered with the XMPP Registrar. In addition, particular applications may define application-specific FORM_TYPEs as well, and one entity may have multiple service discovery identities (e.g., an XMPP server might also function as a publish-subscribe service). Therefore, it is possible (and allowed) for a single service discovery result to contain multiple service discovery extension elements (potentially up to two elements for each identity). However, in practice it is unlikely that any given service discovery result will contain more than one service discovery extension element.&lt;br /&gt;
&lt;br /&gt;
5. Security Considerations&lt;br /&gt;
Applications SHOULD ensure that information disclosed in a disco extension is appropriate for discovery by any entity on the network.&lt;br /&gt;
&lt;br /&gt;
6. IANA Considerations&lt;br /&gt;
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [6].&lt;br /&gt;
&lt;br /&gt;
7. XMPP Registrar Considerations&lt;br /&gt;
This document requires no interaction with the XMPP Registrar [7]; however, specifications following the best practices defined herein may register FORM_TYPEs and field values with the XMPP Registrar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
==附录==&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录A:文档信息===&lt;br /&gt;
Series: XEP&lt;br /&gt;
Number: 0128&lt;br /&gt;
Publisher: XMPP Standards Foundation&lt;br /&gt;
Status: Active&lt;br /&gt;
Type: Informational&lt;br /&gt;
Version: 1.0&lt;br /&gt;
Last Updated: 2004-10-20&lt;br /&gt;
Approving Body: XMPP Council&lt;br /&gt;
Dependencies: XMPP Core, XEP-0004, XEP-0030, XEP-0068&lt;br /&gt;
Supersedes: None&lt;br /&gt;
Superseded By: None&lt;br /&gt;
Short Name: N/A&lt;br /&gt;
Source Control: HTML  RSS&lt;br /&gt;
This document in other formats: XML  PDF&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录B:作者信息===&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录C:法律条款===&lt;br /&gt;
Copyright&lt;br /&gt;
This XMPP Extension Protocol is copyright © 1999 - 2010 by the XMPP Standards Foundation (XSF).&lt;br /&gt;
Permissions&lt;br /&gt;
Permission is hereby granted, free of charge, to any person obtaining a copy of this specification (the &amp;quot;Specification&amp;quot;), to make use of the Specification without restriction, including without limitation the rights to implement the Specification in a software program, deploy the Specification in a network service, and copy, modify, merge, publish, translate, distribute, sublicense, or sell copies of the Specification, and to permit persons to whom the Specification is furnished to do so, subject to the condition that the foregoing copyright notice and this permission notice shall be included in all copies or substantial portions of the Specification. Unless separate permission is granted, modified works that are redistributed shall not contain misleading information regarding the authors, title, number, or publisher of the Specification, and shall not claim endorsement of the modified works by the authors, any organization or project to which the authors belong, or the XMPP Standards Foundation.&lt;br /&gt;
Disclaimer of Warranty&lt;br /&gt;
## NOTE WELL: This Specification is provided on an &amp;quot;AS IS&amp;quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. ##&lt;br /&gt;
Limitation of Liability&lt;br /&gt;
In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall the XMPP Standards Foundation or any author of this Specification be liable for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising from, out of, or in connection with the Specification or the implementation, deployment, or other use of the Specification (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if the XMPP Standards Foundation or such author has been advised of the possibility of such damages.&lt;br /&gt;
IPR Conformance&lt;br /&gt;
This XMPP Extension Protocol has been contributed in full conformance with the XSF's Intellectual Property Rights Policy (a copy of which can be found at &amp;lt;http://xmpp.org/extensions/ipr-policy.shtml&amp;gt; or obtained by writing to XMPP Standards Foundation, 1899 Wynkoop Street, Suite 600, Denver, CO 80202 USA).&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录D:XMPP的关系===&lt;br /&gt;
The Extensible Messaging and Presence Protocol (XMPP) is defined in the XMPP Core (RFC 3920) and XMPP IM (RFC 3921) specifications contributed by the XMPP Standards Foundation to the Internet Standards Process, which is managed by the Internet Engineering Task Force in accordance with RFC 2026. Any protocol defined in this document has been developed outside the Internet Standards Process and is to be understood as an extension to XMPP rather than as an evolution, development, or modification of XMPP itself.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录E:讨论地点===&lt;br /&gt;
The primary venue for discussion of XMPP Extension Protocols is the &amp;lt;standards@xmpp.org&amp;gt; discussion list.&lt;br /&gt;
&lt;br /&gt;
Discussion on other xmpp.org discussion lists might also be appropriate; see &amp;lt;http://xmpp.org/about/discuss.shtml&amp;gt; for a complete list.&lt;br /&gt;
&lt;br /&gt;
Errata can be sent to &amp;lt;editor@xmpp.org&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录F:一致性===&lt;br /&gt;
The following requirements keywords as used in this document are to be interpreted as described in RFC 2119: &amp;quot;MUST&amp;quot;, &amp;quot;SHALL&amp;quot;, &amp;quot;REQUIRED&amp;quot;; &amp;quot;MUST NOT&amp;quot;, &amp;quot;SHALL NOT&amp;quot;; &amp;quot;SHOULD&amp;quot;, &amp;quot;RECOMMENDED&amp;quot;; &amp;quot;SHOULD NOT&amp;quot;, &amp;quot;NOT RECOMMENDED&amp;quot;; &amp;quot;MAY&amp;quot;, &amp;quot;OPTIONAL&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录G:备注===&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
===附录H:修订历史===&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
END&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-05-31T07:19:12Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:XMPP扩展]]&lt;br /&gt;
[[Category:已翻译]]&lt;br /&gt;
&lt;br /&gt;
'''本文的英文原文来自[http://xmpp.org/extensions/xep-0128.html XEP-0128]'''&lt;br /&gt;
&lt;br /&gt;
'''XEP-0128: 发现服务'''&lt;br /&gt;
&lt;br /&gt;
XEP-0128: Service Discovery Extensions&lt;br /&gt;
Abstract: This document specifies best practices for including extended information in Service Discovery results. &lt;br /&gt;
Author: Peter Saint-Andre &lt;br /&gt;
Copyright: © 1999 - 2010 XMPP Standards Foundation. SEE LEGAL NOTICES. &lt;br /&gt;
Status: Active &lt;br /&gt;
Type: Informational &lt;br /&gt;
Version: 1.0 &lt;br /&gt;
Last Updated: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
NOTICE: This Informational specification defines a best practice or protocol profile that has been approved by the XMPP Council and/or the XSF Board of Directors. Implementations are encouraged and the best practice or protocol profile is appropriate for deployment in production systems.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Table of Contents&lt;br /&gt;
&lt;br /&gt;
1. Introduction&lt;br /&gt;
2. Recommendations&lt;br /&gt;
3. Examples&lt;br /&gt;
    3.1. IM Server&lt;br /&gt;
    3.2. Multi-User Chat Room&lt;br /&gt;
4. Implementation Notes&lt;br /&gt;
5. Security Considerations&lt;br /&gt;
6. IANA Considerations&lt;br /&gt;
7. XMPP Registrar Considerations&lt;br /&gt;
&lt;br /&gt;
Appendices&lt;br /&gt;
    A: Document Information&lt;br /&gt;
    B: Author Information&lt;br /&gt;
    C: Legal Notices&lt;br /&gt;
    D: Relation to XMPP&lt;br /&gt;
    E: Discussion Venue&lt;br /&gt;
    F: Requirements Conformance&lt;br /&gt;
    G: Notes&lt;br /&gt;
    H: Revision History&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
1. Introduction&lt;br /&gt;
Developers periodically wonder why Service Discovery [1] does not include more bits of information. For example, why does the &amp;lt;identity/&amp;gt; element not include a 'description' attribute, and can we add one now? The answer is: well, it just doesn't, and at this point it's too late to make further changes (since XEP-0030 is Final). So the best approach is to specify a well-defined extension mechanism.&lt;br /&gt;
&lt;br /&gt;
Let us consider an example. A Multi-User Chat [2] room might want to include additional information in its service discovery results, such as the full room description, the current discussion topic (room subject), the number of occupants in the room, and the JID of the room owner.&lt;br /&gt;
&lt;br /&gt;
Adding one new attribute to the service discovery schema (even if that were an option) would not solve the problem, since a MUC service might want to provide certain bits of information, whereas a Publish-Subscribe [3] service might want to provide other bits.&lt;br /&gt;
&lt;br /&gt;
A better solution would be to include extended information qualified by a namespace that provides a way to flexibly define structured data formats. Thankfully, we already possess such a protocol: Data Forms [4]. In addition, we possess a way to define common fields used in data forms: Field Standardization for Data Forms [5]. Using these building blocks, we can define some best practices for extending service discovery results.&lt;br /&gt;
&lt;br /&gt;
2. Recommendations&lt;br /&gt;
If an entity desires to provide extended information about itself in an IQ results stanza within the context of the Service Discovery protocol, it SHOULD do so by including each bit of information as the XML character data of the &amp;lt;value/&amp;gt; child of a distinct &amp;lt;field/&amp;gt; element, with the entire set of fields contained within an &amp;lt;x/&amp;gt; element of type &amp;quot;result&amp;quot; qualified by the 'jabber:x:data' namespace; this &amp;lt;x/&amp;gt; element SHOULD be a child of the &amp;lt;query/&amp;gt; element qualified by the 'http://jabber.org/protocol/disco#info' namespace. Thus the IQ result SHOULD be of the following form:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;Note: A &amp;lt;field/&amp;gt; element MAY contain more than one &amp;lt;value/&amp;gt; child if appropriate.&lt;br /&gt;
&lt;br /&gt;
If the data fields are to be used in the context of a protocol approved by the XMPP Standards Foundation, they SHOULD be described in the relevant XMPP Extension Protocol specification and registered in accordance with the rules defined in XEP-0068, resulting in the inclusion of a &amp;lt;field/&amp;gt; element whose 'var' attribute has a value of &amp;quot;FORM_TYPE&amp;quot; and whose 'type' attribute has a value of &amp;quot;hidden&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
An entity MUST NOT supply extended information about associated children communicated via the 'http://jabber.org/protocol/disco#items' namespace, since a core principle of Service Discovery is that an entity must define its own identity only and must not define the identity of any children associated with the entity.&lt;br /&gt;
&lt;br /&gt;
3. Examples&lt;br /&gt;
3.1 IM Server&lt;br /&gt;
The following is an example of including a disco extension in the IQ result sent by a standard instant messaging server.&lt;br /&gt;
&lt;br /&gt;
Example 1. Entity Queries Server for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
    3.2 Multi-User Chat Room&lt;br /&gt;
The following is an example of including a disco extension in the IQ result sent by a Multi-User Chat room.&lt;br /&gt;
&lt;br /&gt;
Example 2. User Queries Room for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
    4. Implementation Notes&lt;br /&gt;
In general, the XMPP Standards Foundation may choose to define at most one FORM_TYPE for each service discovery identity (category+type) registered with the XMPP Registrar. In addition, particular applications may define application-specific FORM_TYPEs as well, and one entity may have multiple service discovery identities (e.g., an XMPP server might also function as a publish-subscribe service). Therefore, it is possible (and allowed) for a single service discovery result to contain multiple service discovery extension elements (potentially up to two elements for each identity). However, in practice it is unlikely that any given service discovery result will contain more than one service discovery extension element.&lt;br /&gt;
&lt;br /&gt;
5. Security Considerations&lt;br /&gt;
Applications SHOULD ensure that information disclosed in a disco extension is appropriate for discovery by any entity on the network.&lt;br /&gt;
&lt;br /&gt;
6. IANA Considerations&lt;br /&gt;
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [6].&lt;br /&gt;
&lt;br /&gt;
7. XMPP Registrar Considerations&lt;br /&gt;
This document requires no interaction with the XMPP Registrar [7]; however, specifications following the best practices defined herein may register FORM_TYPEs and field values with the XMPP Registrar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
Appendices&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
Appendix A: Document Information&lt;br /&gt;
Series: XEP&lt;br /&gt;
Number: 0128&lt;br /&gt;
Publisher: XMPP Standards Foundation&lt;br /&gt;
Status: Active&lt;br /&gt;
Type: Informational&lt;br /&gt;
Version: 1.0&lt;br /&gt;
Last Updated: 2004-10-20&lt;br /&gt;
Approving Body: XMPP Council&lt;br /&gt;
Dependencies: XMPP Core, XEP-0004, XEP-0030, XEP-0068&lt;br /&gt;
Supersedes: None&lt;br /&gt;
Superseded By: None&lt;br /&gt;
Short Name: N/A&lt;br /&gt;
Source Control: HTML  RSS&lt;br /&gt;
This document in other formats: XML  PDF&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
Appendix B: Author Information&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
Appendix C: Legal Notices&lt;br /&gt;
Copyright&lt;br /&gt;
This XMPP Extension Protocol is copyright © 1999 - 2010 by the XMPP Standards Foundation (XSF).&lt;br /&gt;
Permissions&lt;br /&gt;
Permission is hereby granted, free of charge, to any person obtaining a copy of this specification (the &amp;quot;Specification&amp;quot;), to make use of the Specification without restriction, including without limitation the rights to implement the Specification in a software program, deploy the Specification in a network service, and copy, modify, merge, publish, translate, distribute, sublicense, or sell copies of the Specification, and to permit persons to whom the Specification is furnished to do so, subject to the condition that the foregoing copyright notice and this permission notice shall be included in all copies or substantial portions of the Specification. Unless separate permission is granted, modified works that are redistributed shall not contain misleading information regarding the authors, title, number, or publisher of the Specification, and shall not claim endorsement of the modified works by the authors, any organization or project to which the authors belong, or the XMPP Standards Foundation.&lt;br /&gt;
Disclaimer of Warranty&lt;br /&gt;
## NOTE WELL: This Specification is provided on an &amp;quot;AS IS&amp;quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. ##&lt;br /&gt;
Limitation of Liability&lt;br /&gt;
In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall the XMPP Standards Foundation or any author of this Specification be liable for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising from, out of, or in connection with the Specification or the implementation, deployment, or other use of the Specification (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if the XMPP Standards Foundation or such author has been advised of the possibility of such damages.&lt;br /&gt;
IPR Conformance&lt;br /&gt;
This XMPP Extension Protocol has been contributed in full conformance with the XSF's Intellectual Property Rights Policy (a copy of which can be found at &amp;lt;http://xmpp.org/extensions/ipr-policy.shtml&amp;gt; or obtained by writing to XMPP Standards Foundation, 1899 Wynkoop Street, Suite 600, Denver, CO 80202 USA).&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
Appendix D: Relation to XMPP&lt;br /&gt;
The Extensible Messaging and Presence Protocol (XMPP) is defined in the XMPP Core (RFC 3920) and XMPP IM (RFC 3921) specifications contributed by the XMPP Standards Foundation to the Internet Standards Process, which is managed by the Internet Engineering Task Force in accordance with RFC 2026. Any protocol defined in this document has been developed outside the Internet Standards Process and is to be understood as an extension to XMPP rather than as an evolution, development, or modification of XMPP itself.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
Appendix E: Discussion Venue&lt;br /&gt;
The primary venue for discussion of XMPP Extension Protocols is the &amp;lt;standards@xmpp.org&amp;gt; discussion list.&lt;br /&gt;
&lt;br /&gt;
Discussion on other xmpp.org discussion lists might also be appropriate; see &amp;lt;http://xmpp.org/about/discuss.shtml&amp;gt; for a complete list.&lt;br /&gt;
&lt;br /&gt;
Errata can be sent to &amp;lt;editor@xmpp.org&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
Appendix F: Requirements Conformance&lt;br /&gt;
The following requirements keywords as used in this document are to be interpreted as described in RFC 2119: &amp;quot;MUST&amp;quot;, &amp;quot;SHALL&amp;quot;, &amp;quot;REQUIRED&amp;quot;; &amp;quot;MUST NOT&amp;quot;, &amp;quot;SHALL NOT&amp;quot;; &amp;quot;SHOULD&amp;quot;, &amp;quot;RECOMMENDED&amp;quot;; &amp;quot;SHOULD NOT&amp;quot;, &amp;quot;NOT RECOMMENDED&amp;quot;; &amp;quot;MAY&amp;quot;, &amp;quot;OPTIONAL&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
Appendix G: Notes&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
Appendix H: Revision History&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
END&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	<entry>
		<id>http://wiki.jabbercn.org/XEP-0128</id>
		<title>XEP-0128</title>
		<link rel="alternate" type="text/html" href="http://wiki.jabbercn.org/XEP-0128"/>
				<updated>2010-05-31T07:17:27Z</updated>
		
		<summary type="html">&lt;p&gt;Xiong: 创建新页面为 'XEP-0128: Service Discovery Extensions Abstract: This document specifies best practices for including extended information in Service Discovery results.  Author: Peter Saint-And...'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;XEP-0128: Service Discovery Extensions&lt;br /&gt;
Abstract: This document specifies best practices for including extended information in Service Discovery results. &lt;br /&gt;
Author: Peter Saint-Andre &lt;br /&gt;
Copyright: © 1999 - 2010 XMPP Standards Foundation. SEE LEGAL NOTICES. &lt;br /&gt;
Status: Active &lt;br /&gt;
Type: Informational &lt;br /&gt;
Version: 1.0 &lt;br /&gt;
Last Updated: 2004-10-20 &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
NOTICE: This Informational specification defines a best practice or protocol profile that has been approved by the XMPP Council and/or the XSF Board of Directors. Implementations are encouraged and the best practice or protocol profile is appropriate for deployment in production systems.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Table of Contents&lt;br /&gt;
&lt;br /&gt;
1. Introduction&lt;br /&gt;
2. Recommendations&lt;br /&gt;
3. Examples&lt;br /&gt;
    3.1. IM Server&lt;br /&gt;
    3.2. Multi-User Chat Room&lt;br /&gt;
4. Implementation Notes&lt;br /&gt;
5. Security Considerations&lt;br /&gt;
6. IANA Considerations&lt;br /&gt;
7. XMPP Registrar Considerations&lt;br /&gt;
&lt;br /&gt;
Appendices&lt;br /&gt;
    A: Document Information&lt;br /&gt;
    B: Author Information&lt;br /&gt;
    C: Legal Notices&lt;br /&gt;
    D: Relation to XMPP&lt;br /&gt;
    E: Discussion Venue&lt;br /&gt;
    F: Requirements Conformance&lt;br /&gt;
    G: Notes&lt;br /&gt;
    H: Revision History&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
1. Introduction&lt;br /&gt;
Developers periodically wonder why Service Discovery [1] does not include more bits of information. For example, why does the &amp;lt;identity/&amp;gt; element not include a 'description' attribute, and can we add one now? The answer is: well, it just doesn't, and at this point it's too late to make further changes (since XEP-0030 is Final). So the best approach is to specify a well-defined extension mechanism.&lt;br /&gt;
&lt;br /&gt;
Let us consider an example. A Multi-User Chat [2] room might want to include additional information in its service discovery results, such as the full room description, the current discussion topic (room subject), the number of occupants in the room, and the JID of the room owner.&lt;br /&gt;
&lt;br /&gt;
Adding one new attribute to the service discovery schema (even if that were an option) would not solve the problem, since a MUC service might want to provide certain bits of information, whereas a Publish-Subscribe [3] service might want to provide other bits.&lt;br /&gt;
&lt;br /&gt;
A better solution would be to include extended information qualified by a namespace that provides a way to flexibly define structured data formats. Thankfully, we already possess such a protocol: Data Forms [4]. In addition, we possess a way to define common fields used in data forms: Field Standardization for Data Forms [5]. Using these building blocks, we can define some best practices for extending service discovery results.&lt;br /&gt;
&lt;br /&gt;
2. Recommendations&lt;br /&gt;
If an entity desires to provide extended information about itself in an IQ results stanza within the context of the Service Discovery protocol, it SHOULD do so by including each bit of information as the XML character data of the &amp;lt;value/&amp;gt; child of a distinct &amp;lt;field/&amp;gt; element, with the entire set of fields contained within an &amp;lt;x/&amp;gt; element of type &amp;quot;result&amp;quot; qualified by the 'jabber:x:data' namespace; this &amp;lt;x/&amp;gt; element SHOULD be a child of the &amp;lt;query/&amp;gt; element qualified by the 'http://jabber.org/protocol/disco#info' namespace. Thus the IQ result SHOULD be of the following form:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='result'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    ... &lt;br /&gt;
    &amp;lt;x type='result' xmlns='jabber:x:data'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='[var-name]' label='[optional]'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;[var-value]&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      ... &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt;Note: A &amp;lt;field/&amp;gt; element MAY contain more than one &amp;lt;value/&amp;gt; child if appropriate.&lt;br /&gt;
&lt;br /&gt;
If the data fields are to be used in the context of a protocol approved by the XMPP Standards Foundation, they SHOULD be described in the relevant XMPP Extension Protocol specification and registered in accordance with the rules defined in XEP-0068, resulting in the inclusion of a &amp;lt;field/&amp;gt; element whose 'var' attribute has a value of &amp;quot;FORM_TYPE&amp;quot; and whose 'type' attribute has a value of &amp;quot;hidden&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
An entity MUST NOT supply extended information about associated children communicated via the 'http://jabber.org/protocol/disco#items' namespace, since a core principle of Service Discovery is that an entity must define its own identity only and must not define the identity of any children associated with the entity.&lt;br /&gt;
&lt;br /&gt;
3. Examples&lt;br /&gt;
3.1 IM Server&lt;br /&gt;
The following is an example of including a disco extension in the IQ result sent by a standard instant messaging server.&lt;br /&gt;
&lt;br /&gt;
Example 1. Entity Queries Server for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='capulet.com' &lt;br /&gt;
    to='shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='shakespeare.lit' &lt;br /&gt;
    to='capulet.com' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='server' &lt;br /&gt;
        type='im' &lt;br /&gt;
        name='shakespeare.lit jabber server'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/network/serverinfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5222&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='c2s_port_ssl'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;5223&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='http_access'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/jabber&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='ip_version'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv4&amp;lt;/value&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;ipv6&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='info_url'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://shakespeare.lit/support.php&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
    3.2 Multi-User Chat Room&lt;br /&gt;
The following is an example of including a disco extension in the IQ result sent by a Multi-User Chat room.&lt;br /&gt;
&lt;br /&gt;
Example 2. User Queries Room for Information&lt;br /&gt;
&lt;br /&gt;
&amp;lt;iq type='get' &lt;br /&gt;
    from='hag66@shakespeare.lit/pda' &lt;br /&gt;
    to='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'/&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
&amp;lt;iq type='result' &lt;br /&gt;
    from='darkcave@macbeth.shakespeare.lit' &lt;br /&gt;
    to='hag66@shakespeare.lit/pda' &lt;br /&gt;
    id='disco1'&amp;gt; &lt;br /&gt;
  &amp;lt;query xmlns='http://jabber.org/protocol/disco#info'&amp;gt; &lt;br /&gt;
    &amp;lt;identity &lt;br /&gt;
        category='conference' &lt;br /&gt;
        type='text' &lt;br /&gt;
        name='A Dark Cave'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='http://jabber.org/protocol/muc'/&amp;gt; &lt;br /&gt;
    &amp;lt;feature var='jabber:iq:register'/&amp;gt; &lt;br /&gt;
    &amp;lt;x xmlns='jabber:x:data' type='result'&amp;gt; &lt;br /&gt;
      &amp;lt;field var='FORM_TYPE' type='hidden'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;http://jabber.org/protocol/muc#roominfo&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_description' label='Description'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;The place for all good witches!&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_subject' label='Subject'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;Spells&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_occupants' label='Number of occupants'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;3&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
      &amp;lt;field var='muc#roominfo_lang' label='Language of discussion'&amp;gt; &lt;br /&gt;
        &amp;lt;value&amp;gt;en&amp;lt;/value&amp;gt; &lt;br /&gt;
      &amp;lt;/field&amp;gt; &lt;br /&gt;
    &amp;lt;/x&amp;gt; &lt;br /&gt;
  &amp;lt;/query&amp;gt; &lt;br /&gt;
&amp;lt;/iq&amp;gt; &lt;br /&gt;
    4. Implementation Notes&lt;br /&gt;
In general, the XMPP Standards Foundation may choose to define at most one FORM_TYPE for each service discovery identity (category+type) registered with the XMPP Registrar. In addition, particular applications may define application-specific FORM_TYPEs as well, and one entity may have multiple service discovery identities (e.g., an XMPP server might also function as a publish-subscribe service). Therefore, it is possible (and allowed) for a single service discovery result to contain multiple service discovery extension elements (potentially up to two elements for each identity). However, in practice it is unlikely that any given service discovery result will contain more than one service discovery extension element.&lt;br /&gt;
&lt;br /&gt;
5. Security Considerations&lt;br /&gt;
Applications SHOULD ensure that information disclosed in a disco extension is appropriate for discovery by any entity on the network.&lt;br /&gt;
&lt;br /&gt;
6. IANA Considerations&lt;br /&gt;
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [6].&lt;br /&gt;
&lt;br /&gt;
7. XMPP Registrar Considerations&lt;br /&gt;
This document requires no interaction with the XMPP Registrar [7]; however, specifications following the best practices defined herein may register FORM_TYPEs and field values with the XMPP Registrar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
Appendices&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
Appendix A: Document Information&lt;br /&gt;
Series: XEP&lt;br /&gt;
Number: 0128&lt;br /&gt;
Publisher: XMPP Standards Foundation&lt;br /&gt;
Status: Active&lt;br /&gt;
Type: Informational&lt;br /&gt;
Version: 1.0&lt;br /&gt;
Last Updated: 2004-10-20&lt;br /&gt;
Approving Body: XMPP Council&lt;br /&gt;
Dependencies: XMPP Core, XEP-0004, XEP-0030, XEP-0068&lt;br /&gt;
Supersedes: None&lt;br /&gt;
Superseded By: None&lt;br /&gt;
Short Name: N/A&lt;br /&gt;
Source Control: HTML  RSS&lt;br /&gt;
This document in other formats: XML  PDF&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
Appendix B: Author Information&lt;br /&gt;
Peter Saint-Andre&lt;br /&gt;
Email: stpeter@jabber.org&lt;br /&gt;
JabberID: stpeter@jabber.org&lt;br /&gt;
URI: https://stpeter.im/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
Appendix C: Legal Notices&lt;br /&gt;
Copyright&lt;br /&gt;
This XMPP Extension Protocol is copyright © 1999 - 2010 by the XMPP Standards Foundation (XSF).&lt;br /&gt;
Permissions&lt;br /&gt;
Permission is hereby granted, free of charge, to any person obtaining a copy of this specification (the &amp;quot;Specification&amp;quot;), to make use of the Specification without restriction, including without limitation the rights to implement the Specification in a software program, deploy the Specification in a network service, and copy, modify, merge, publish, translate, distribute, sublicense, or sell copies of the Specification, and to permit persons to whom the Specification is furnished to do so, subject to the condition that the foregoing copyright notice and this permission notice shall be included in all copies or substantial portions of the Specification. Unless separate permission is granted, modified works that are redistributed shall not contain misleading information regarding the authors, title, number, or publisher of the Specification, and shall not claim endorsement of the modified works by the authors, any organization or project to which the authors belong, or the XMPP Standards Foundation.&lt;br /&gt;
Disclaimer of Warranty&lt;br /&gt;
## NOTE WELL: This Specification is provided on an &amp;quot;AS IS&amp;quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. ##&lt;br /&gt;
Limitation of Liability&lt;br /&gt;
In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall the XMPP Standards Foundation or any author of this Specification be liable for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising from, out of, or in connection with the Specification or the implementation, deployment, or other use of the Specification (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if the XMPP Standards Foundation or such author has been advised of the possibility of such damages.&lt;br /&gt;
IPR Conformance&lt;br /&gt;
This XMPP Extension Protocol has been contributed in full conformance with the XSF's Intellectual Property Rights Policy (a copy of which can be found at &amp;lt;http://xmpp.org/extensions/ipr-policy.shtml&amp;gt; or obtained by writing to XMPP Standards Foundation, 1899 Wynkoop Street, Suite 600, Denver, CO 80202 USA).&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
Appendix D: Relation to XMPP&lt;br /&gt;
The Extensible Messaging and Presence Protocol (XMPP) is defined in the XMPP Core (RFC 3920) and XMPP IM (RFC 3921) specifications contributed by the XMPP Standards Foundation to the Internet Standards Process, which is managed by the Internet Engineering Task Force in accordance with RFC 2026. Any protocol defined in this document has been developed outside the Internet Standards Process and is to be understood as an extension to XMPP rather than as an evolution, development, or modification of XMPP itself.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
Appendix E: Discussion Venue&lt;br /&gt;
The primary venue for discussion of XMPP Extension Protocols is the &amp;lt;standards@xmpp.org&amp;gt; discussion list.&lt;br /&gt;
&lt;br /&gt;
Discussion on other xmpp.org discussion lists might also be appropriate; see &amp;lt;http://xmpp.org/about/discuss.shtml&amp;gt; for a complete list.&lt;br /&gt;
&lt;br /&gt;
Errata can be sent to &amp;lt;editor@xmpp.org&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
Appendix F: Requirements Conformance&lt;br /&gt;
The following requirements keywords as used in this document are to be interpreted as described in RFC 2119: &amp;quot;MUST&amp;quot;, &amp;quot;SHALL&amp;quot;, &amp;quot;REQUIRED&amp;quot;; &amp;quot;MUST NOT&amp;quot;, &amp;quot;SHALL NOT&amp;quot;; &amp;quot;SHOULD&amp;quot;, &amp;quot;RECOMMENDED&amp;quot;; &amp;quot;SHOULD NOT&amp;quot;, &amp;quot;NOT RECOMMENDED&amp;quot;; &amp;quot;MAY&amp;quot;, &amp;quot;OPTIONAL&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
Appendix G: Notes&lt;br /&gt;
1. XEP-0030: Service Discovery &amp;lt;http://xmpp.org/extensions/xep-0030.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
2. XEP-0045: Multi-User Chat &amp;lt;http://xmpp.org/extensions/xep-0045.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
3. XEP-0060: Publish-Subscribe &amp;lt;http://xmpp.org/extensions/xep-0060.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4. XEP-0004: Data Forms &amp;lt;http://xmpp.org/extensions/xep-0004.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
5. XEP-0068: Field Data Standardization for Data Forms &amp;lt;http://xmpp.org/extensions/xep-0068.html&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
6. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see &amp;lt;http://www.iana.org/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see &amp;lt;http://xmpp.org/registrar/&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
Appendix H: Revision History&lt;br /&gt;
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/&lt;br /&gt;
&lt;br /&gt;
Version 1.0 (2004-10-20)&lt;br /&gt;
Per a vote of the Jabber Council, advanced status to Active; also added implementation notes. (psa) &lt;br /&gt;
Version 0.2 (2004-03-15)&lt;br /&gt;
Clarified syntax and corrected several errors; added IM server example. (psa) &lt;br /&gt;
Version 0.1 (2004-03-05)&lt;br /&gt;
Initial version. (psa) &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
END&lt;/div&gt;</summary>
		<author><name>Xiong</name></author>	</entry>

	</feed>