No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

xep-0195.xml 7.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <?xml version='1.0' encoding='UTF-8'?>
  2. <!DOCTYPE xep SYSTEM 'xep.dtd' [
  3. <!ENTITY % ents SYSTEM 'xep.ent'>
  4. %ents;
  5. ]>
  6. <?xml-stylesheet type='text/xsl' href='xep.xsl'?>
  7. <xep>
  8. <header>
  9. <title>User Browsing</title>
  10. <abstract>This document defines an XMPP protocol extension for communicating information about the web pages a user visits.</abstract>
  11. &LEGALNOTICE;
  12. <number>0195</number>
  13. <status>Deferred</status>
  14. <type>Standards Track</type>
  15. <sig>Standards</sig>
  16. <dependencies>
  17. <spec>XMPP Core</spec>
  18. <spec>XMPP IM</spec>
  19. <spec>XEP-0060</spec>
  20. <spec>XEP-0163</spec>
  21. </dependencies>
  22. <supersedes/>
  23. <supersededby/>
  24. <shortname>NOT_YET_ASSIGNED</shortname>
  25. &stpeter;
  26. <revision>
  27. <version>0.3</version>
  28. <date>2008-09-25</date>
  29. <initials>psa</initials>
  30. <remark><p>Modified namespace in accordance with protocol versioning policies.</p></remark>
  31. </revision>
  32. <revision>
  33. <version>0.2</version>
  34. <date>2007-10-03</date>
  35. <initials>psa</initials>
  36. <remark><p>Updated in accordance with XEP-0163.</p></remark>
  37. </revision>
  38. <revision>
  39. <version>0.1</version>
  40. <date>2006-08-30</date>
  41. <initials>psa</initials>
  42. <remark><p>Initial version.</p></remark>
  43. </revision>
  44. <revision>
  45. <version>0.0.1</version>
  46. <date>2006-08-28</date>
  47. <initials>psa</initials>
  48. <remark><p>First draft.</p></remark>
  49. </revision>
  50. </header>
  51. <section1 topic='Introduction' anchor='intro'>
  52. <p>&xep0060; and &xep0163; can be used to publish a wide variety of "extended presence" information about users. This document specifies an extended presence payload format that communicates information about the web pages a user visits. This information may be of interest to a user's contacts and can also be used in social networking applications (e.g., co-browsing and web swarms).</p>
  53. </section1>
  54. <section1 topic='Protocol' anchor='protocol'>
  55. <section2 topic='Container Element and Child Elements' anchor='protocol-elements'>
  56. <p>Information about web pages is provided by the user (or automated integration with browsers or other systems) and is propagated on the network by the user's client. The information container for web page data is a &lt;page/&gt; element that is qualified by the 'urn:xmpp:browsing:0' namespace &NSNOTE;. The web page information itself is provided as the XML character data of the following children of the &lt;page/&gt; element:</p>
  57. <table caption='Child Elements'>
  58. <tr>
  59. <th>Element</th>
  60. <th>Description</th>
  61. <th>Example</th>
  62. <th>Datatype</th>
  63. <th>Inclusion</th>
  64. </tr>
  65. <tr>
  66. <td>description</td>
  67. <td>The value of the "description" META tag</td>
  68. <td>The weblog of Peter Saint-Andre</td>
  69. <td>xs:string</td>
  70. <td>OPTIONAL</td>
  71. </tr>
  72. <tr>
  73. <td>keywords</td>
  74. <td>The value of the "keywords" META tag</td>
  75. <td>stpeter, Peter Saint-Andre, weblog, jabber, xmpp</td>
  76. <td>xs:string</td>
  77. <td>OPTIONAL</td>
  78. </tr>
  79. <tr>
  80. <td>title</td>
  81. <td>The value of the &lt;title/&gt; element</td>
  82. <td>one small voice</td>
  83. <td>xs:string</td>
  84. <td>OPTIONAL</td>
  85. </tr>
  86. <tr>
  87. <td>uri</td>
  88. <td>The URI of the page (usually but not necessarily an HTTP URL)</td>
  89. <td>https://stpeter.im/</td>
  90. <td>xs:anyURI</td>
  91. <td>REQUIRED</td>
  92. </tr>
  93. </table>
  94. <p>NOTE: The datatypes specified above are defined in &w3xmlschema2;.</p>
  95. </section2>
  96. <section2 topic='Transport Mechanism' anchor='protocol-transport'>
  97. <p>When a user visits a web page, its client may publish that fact to a PEP node whose NodeID is "urn:xmpp:browsing:0" &NSNOTE; or to a generic pubsub node. Because browsing information is not pure presence information and can change independently of the user's availability, it SHOULD NOT be provided as an extension to the &PRESENCE; stanza type.</p>
  98. <example caption='User Publishes Browsing Information'><![CDATA[
  99. <iq type='set' from='stpeter@jabber.org/work' id='browsing1'>
  100. <pubsub xmlns='http://jabber.org/protocol/pubsub'>
  101. <publish node='urn:xmpp:browsing:0'>
  102. <item id='da6abe63d1e5ed45a6de466732abff72e6fccb93'>
  103. <page xmlns='urn:xmpp:browsing:0'>
  104. <uri>https://stpeter.im/</uri>
  105. </page>
  106. </item>
  107. </publish>
  108. </pubsub>
  109. </iq>
  110. ]]></example>
  111. <p>The browsing information is then delivered to all subscribers:</p>
  112. <example caption='Browsing Information is Delivered to All Subscribers'><![CDATA[
  113. <message from='stpeter@jabber.org' to='maineboy@jabber.org'>
  114. <event xmlns='http://jabber.org/protocol/pubsub#event'>
  115. <items node='urn:xmpp:browsing:0'>
  116. <item id='da6abe63d1e5ed45a6de466732abff72e6fccb93'>
  117. <page xmlns='urn:xmpp:browsing:0'>
  118. <uri>https://stpeter.im/</uri>
  119. </page>
  120. </item>
  121. </items>
  122. </event>
  123. </message>
  124. ]]></example>
  125. <p>When the user stops browsing the page (e.g., by closing the browser window or tab), the user's client SHOULD send an empty &lt;page/&gt; element with the same ItemID:</p>
  126. <example caption='User Publishes Stop Information'><![CDATA[
  127. <iq type='set' from='stpeter@jabber.org/work' id='browsing2'>
  128. <pubsub xmlns='http://jabber.org/protocol/pubsub'>
  129. <publish node='urn:xmpp:browsing:0'>
  130. <item id='da6abe63d1e5ed45a6de466732abff72e6fccb93'>
  131. <page xmlns='urn:xmpp:browsing:0'/>
  132. </item>
  133. </publish>
  134. </pubsub>
  135. </iq>
  136. ]]></example>
  137. <example caption='Stop Information is Delivered to All Subscribers'><![CDATA[
  138. <message from='stpeter@jabber.org' to='maineboy@jabber.org'>
  139. <event xmlns='http://jabber.org/protocol/pubsub#event'>
  140. <items node='urn:xmpp:browsing:0'>
  141. <item id='da6abe63d1e5ed45a6de466732abff72e6fccb93'>
  142. <page xmlns='urn:xmpp:browsing:0'/>
  143. </item>
  144. </items>
  145. </event>
  146. </message>
  147. ]]></example>
  148. </section2>
  149. </section1>
  150. <section1 topic='Security Considerations' anchor='security'>
  151. <p>The web pages that a user visits may be sensitive. A client MUST provide a way for a user to configure which pages or types of pages will not be published (e.g., via user preferences).</p>
  152. </section1>
  153. <section1 topic='IANA Considerations' anchor='iana'>
  154. <p>This document requires no interaction with &IANA;.</p>
  155. </section1>
  156. <section1 topic='XMPP Registrar Considerations' anchor='registrar'>
  157. <section2 topic='Protocol Namespaces' anchor='registrar-ns'>
  158. <p>This specification defines the following XML namespace:</p>
  159. <ul>
  160. <li>urn:xmpp:browsing:0</li>
  161. </ul>
  162. <p>Upon advancement of this specification from a status of Experimental to a status of Draft, the &REGISTRAR; shall add the foregoing namespace to the registry located at &NAMESPACES;, as described in Section 4 of &xep0053;.</p>
  163. </section2>
  164. <section2 topic='Namespace Versioning' anchor='registrar-versioning'>
  165. &NSVER;
  166. </section2>
  167. </section1>
  168. <section1 topic='XML Schema' anchor='schema'>
  169. <code><![CDATA[
  170. <?xml version='1.0' encoding='UTF-8'?>
  171. <xs:schema
  172. xmlns:xs='http://www.w3.org/2001/XMLSchema'
  173. targetNamespace='urn:xmpp:browsing:0'
  174. xmlns='urn:xmpp:browsing:0'
  175. elementFormDefault='qualified'>
  176. <xs:element name='page'>
  177. <xs:complexType>
  178. <xs:sequence minOccurs='0'>
  179. <xs:element name='description' type='xs:string' minOccurs='0'/>
  180. <xs:element name='keywords' type='xs:string' minOccurs='0'/>
  181. <xs:element name='title' type='xs:string' minOccurs='0'/>
  182. <xs:element name='uri' type='xs:anyURI'/>
  183. </xs:sequence>
  184. </xs:complexType>
  185. </xs:element>
  186. </xs:schema>
  187. ]]></code>
  188. </section1>
  189. </xep>