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-0131.xml 30KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939
  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>Stanza Headers and Internet Metadata</title>
  10. <abstract>This specification defines an XMPP protocol extension for representing non-address-related headers in an XML format that is appropriate for use in XMPP. While the protocol provides a flexible mechanism for representing many kinds of standard Internet metadata, a registry of values is defined to structure the possible range of headers, and the inital registration includes headers from email, HTTP, MIME, and SIP.</abstract>
  11. &LEGALNOTICE;
  12. <number>0131</number>
  13. <status>Draft</status>
  14. <type>Standards Track</type>
  15. <sig>Standards</sig>
  16. <dependencies>
  17. <spec>XMPP Core</spec>
  18. <spec>XEP-0030</spec>
  19. </dependencies>
  20. <supersedes/>
  21. <supersededby/>
  22. <shortname>shim</shortname>
  23. <schemaloc>
  24. <url>http://www.xmpp.org/schemas/shim.xsd</url>
  25. </schemaloc>
  26. <registry/>
  27. &stpeter;
  28. &hildjj;
  29. <revision>
  30. <version>1.2</version>
  31. <date>2006-07-12</date>
  32. <initials>psa</initials>
  33. <remark><p>Added Urgency header from registry.</p></remark>
  34. </revision>
  35. <revision>
  36. <version>1.1</version>
  37. <date>2005-08-19</date>
  38. <initials>psa</initials>
  39. <remark><p>Added Date, DateTime, and Time headers conforming to profiles from XEP-0082; renamed Date header to RFC2822Date; added note about date-related headers; added headers from RFC 2413 (Dublin Core).</p></remark>
  40. </revision>
  41. <revision>
  42. <version>1.0</version>
  43. <date>2004-10-22</date>
  44. <initials>psa</initials>
  45. <remark><p>Per a vote of the Jabber Council, advanced status to Draft; also added more headers from RFC 2822 to the initial registry submission.</p></remark>
  46. </revision>
  47. <revision>
  48. <version>0.8</version>
  49. <date>2004-09-29</date>
  50. <initials>psa</initials>
  51. <remark><p>Specified service discovery usage; corrected examples; further specified security considerations.</p></remark>
  52. </revision>
  53. <revision>
  54. <version>0.7</version>
  55. <date>2004-09-20</date>
  56. <initials>psa</initials>
  57. <remark><p>Specified location of headers in IQ stanzas.</p></remark>
  58. </revision>
  59. <revision>
  60. <version>0.6</version>
  61. <date>2004-07-06</date>
  62. <initials>psa</initials>
  63. <remark><p>Added "Store" header.</p></remark>
  64. </revision>
  65. <revision>
  66. <version>0.5</version>
  67. <date>2004-06-28</date>
  68. <initials>psa</initials>
  69. <remark><p>Added "Distribute" header.</p></remark>
  70. </revision>
  71. <revision>
  72. <version>0.4</version>
  73. <date>2004-05-27</date>
  74. <initials>psa</initials>
  75. <remark><p>Added "Classification" header.</p></remark>
  76. </revision>
  77. <revision>
  78. <version>0.3</version>
  79. <date>2004-05-10</date>
  80. <initials>psa</initials>
  81. <remark><p>Added headers from RFCs 2045, 2616, 2617, and 3261 to initial registration.</p></remark>
  82. </revision>
  83. <revision>
  84. <version>0.2</version>
  85. <date>2004-05-09</date>
  86. <initials>psa</initials>
  87. <remark><p>Specified registry process; added headers from RFC 2822 to initial registration; defined "Created" and "TTL" headers.</p></remark>
  88. </revision>
  89. <revision>
  90. <version>0.1</version>
  91. <date>2004-03-19</date>
  92. <initials>psa/jh</initials>
  93. <remark><p>Initial version.</p></remark>
  94. </revision>
  95. </header>
  96. <section1 topic='Introduction' anchor='intro'>
  97. <p>In order to ensure proper processing by the recipient of an XML stanza, some Jabber protocols and other XMPP extensions may need to enable the sender to communicate non-addressing information about the stanza (this is especially true of protocols that translate from a foreign format to XMPP; a good example is &xep0111;). Such information was formerly included in &xep0033;, but was removed from that specification when it was changed to focus on addressing information only. Therefore, this document defines a mechanism for encapsulating non-addressing "header" information about stanzas, including standard Internet metadata such as that defined by &rfc2045;, &rfc2616;, &rfc2617;, &rfc2822;, and &rfc3261;. Such information is encapsulated in a protocol extension qualified by the 'http://jabber.org/protocol/shim' namespace, where "SHIM" stands for "Stanza Headers and Internet Metadata".</p>
  98. </section1>
  99. <section1 topic='Requirements' anchor='reqs'>
  100. <p>This protocol addresses the following requirements:</p>
  101. <ol>
  102. <li>Enable the inclusion of any header information</li>
  103. <li>Encapsulate all information in XML</li>
  104. <li>Ensure interoperability with existing non-XMPP header and metadata formats (HTTP, MIME, SIP, SMTP, etc.)</li>
  105. </ol>
  106. </section1>
  107. <section1 topic='Discovery' anchor='disco'>
  108. <section2 topic='Protocol Support' anchor='disco-proto'>
  109. <p>In order to discover whether another entity supports this protocol, an entity MUST use &xep0030;.</p>
  110. <example caption='Entity queries another entity regarding protocol support'><![CDATA[
  111. <iq from='romeo@montague.net/orchard'
  112. to='juliet@capulet.com/balcony'>
  113. <query xmlns='http://jabber.org/protocol/disco#info'/>
  114. </iq>
  115. ]]></example>
  116. <example caption='Queried entity communicates protocol support'><![CDATA[
  117. <iq from='romeo@montague.net/orchard'
  118. to='juliet@capulet.com/balcony'>
  119. <query xmlns='http://jabber.org/protocol/disco#info'>
  120. ...
  121. <feature var='http://jabber.org/protocol/shim'/>
  122. ...
  123. </query>
  124. </iq>
  125. ]]></example>
  126. </section2>
  127. <section2 topic='Header Support' anchor='disco-header'>
  128. <p>It can be desirable (and, in some contexts, necessary) to determine if the intended recipient of an XML stanza supports a specific header (e.g., the "Classification" header) before sending information that may depend on that header. Therefore, implementations of this protocol MUST advertise which particular SHIM headers they support when queried via disco#info at the well-known service discovery node 'http://jabber.org/protocol/shim'.</p>
  129. <example caption='Entity queries another entity regarding header support'><![CDATA[
  130. <iq from='romeo@montague.net/orchard'
  131. to='juliet@capulet.com/balcony'>
  132. <query xmlns='http://jabber.org/protocol/disco#info'
  133. node='http://jabber.org/protocol/shim'/>
  134. </iq>
  135. ]]></example>
  136. <example caption='Queried entity communicates header support'><![CDATA[
  137. <iq from='romeo@montague.net/orchard'
  138. to='juliet@capulet.com/balcony'>
  139. <query xmlns='http://jabber.org/protocol/disco#info'
  140. node='http://jabber.org/protocol/shim'>
  141. ...
  142. <feature var='http://jabber.org/protocol/shim#Classification'/>
  143. <feature var='http://jabber.org/protocol/shim#Distribute'/>
  144. <feature var='http://jabber.org/protocol/shim#Store'/>
  145. ...
  146. </query>
  147. </iq>
  148. ]]></example>
  149. <p>The values of the 'var' attribute MUST be of the form "http://jabber.org/protocol/shim#header", where "header" is to be replaced with the name of the header as registered with the &REGISTRAR; (see below).</p>
  150. </section2>
  151. </section1>
  152. <section1 topic='Protocol' anchor='protocol'>
  153. <p>In a fashion similar to the structure of <cite>Extended Stanza Addressing</cite>, headers for &MESSAGE; and &PRESENCE; stanzas are contained in a &lt;headers/&gt; wrapper element qualified by the 'http://jabber.org/protocol/shim' namespace; each header is a child of this wrapper element, and is encapsulated via a &lt;header/&gt; element whose 'name' attribute identifies the header and whose XML character data specifies the relevant value:
  154. <note>Standard XML escaping rules apply to the XML character data, so that the characters &lt; &gt; &apos; &quot; &amp; MUST be escaped to &amp;lt; &amp;gt; &amp;apos; &amp;quot; &amp;amp; respectively when translating from non-XML protocols (such as MIME and SIP) to SHIM, and the escaped sequences (e.g., &amp;lt;) MUST be transformed to the equivalent non-escaped character (e.g., '&lt;') when translating from SHIM to the non-XML protocol. Escaping and unescaping will normally be performed by a gateway that translates between XMPP and a foreign protocol such as MIME or SIP.</note>
  155. </p>
  156. <example caption='A basic example'><![CDATA[
  157. <message from='romeo@montague.net/orchard'
  158. to='juliet@capulet.com/balcony'>
  159. <body>Neither, fair saint, if either thee dislike.</body>
  160. <headers xmlns='http://jabber.org/protocol/shim'>
  161. <header name='In-Reply-To'>123456789@capulet.com</header>
  162. <header name='Keywords'>shakespeare,&lt;xmpp/&gt;</header>
  163. </headers>
  164. </message>
  165. ]]></example>
  166. <p>In accordance with &xmppcore;, an &IQ; stanza must not contain more than one non-error child element; this places constraints on the location of SHIM headers in the XML hierarchy. Specifically, the &lt;headers/&gt; wrapper element MUST NOT be a direct child of &IQ; and instead SHOULD be a grandchild of &IQ; and a direct child of the content-bearing child element of &IQ; (e.g., &QUERY;, <em>not</em> &lt;error/&gt;).</p>
  167. <example caption='An IQ example'><![CDATA[
  168. <iq from='romeo@montague.net/orchard'
  169. to='juliet@capulet.com/balcony'
  170. id='ping1'>
  171. <query xmlns='jabber:iq:time'>
  172. <headers xmlns='http://jabber.org/protocol/shim'>
  173. <header name='Created'>2004-09-21T03:01:52Z</header>
  174. </headers>
  175. </query>
  176. </iq>
  177. ]]></example>
  178. </section1>
  179. <section1 topic='Header Definitions' anchor='headers'>
  180. <p>All public headers SHOULD be registered with the XMPP Registrar following the process specified in the <link url="#registrar">XMPP Registrar Considerations</link> section of this document. Many such headers are defined by other protocol specifications, such as RFCs 2045, 2616, 2617, 2822, and 3261; implementors MUST refer to those specifications for definition of the relevant headers.</p>
  181. <p>This document defines several additional headers that may prove useful within Jabber protocols and other XMPP extensions, as specified in the following sections; further headers may be registered with the XMPP Registrar, either directly or via definition in XMPP Extension Protocol specifications.</p>
  182. <section2 topic='Classification' anchor='headers-classification'>
  183. <p>The Classification header enables a sender or other entity to classify a stanza according to some classification scheme. The values of the XML character data contained within this header are out of scope for this document, since they are determined by the using application. Note: This header may be security-sensitive (see the <link url='#security'>Security Considerations</link> for details).</p>
  184. </section2>
  185. <section2 topic='Created' anchor='headers-created'>
  186. <p>The Date header is defined by RFC 2822 and therefore follows the date and time format defined by RFC 2822; while this header is thus useful for translating email messages into XMPP stanzas, it is not consistent with &xep0082;. Therefore we define the "Created" header, which specifies the date and time when a stanza was created by the originating entity, where the value conforms to the DateTime profile specified in XEP-0082.</p>
  187. </section2>
  188. <section2 topic='Distribute' anchor='headers-distribute'>
  189. <p>The Distribute header enables a sender to specify whether the stanza may be further distributed by the recipient to other entities on the network. The allowable values for this header are "true" and "false". If the sender specifies a value of "false", the recipient MUST NOT further distribute the stanza or any information contained therein; if the sender specifies a value of "true", the recipient MAY further distribute the stanza or any information contained therein; if the value is anything other than "true" or "false" and the recipient does not understand the value, the recipient MUST assume the default value of "false". This header is semantically equivalent to the "Distribute" flag defined in &geoprivpol;. (The HTTP "Max-Forwards" header is not appropriate for this usage, since it defines proxy and gateway behavior rather than recipient behavior.) Note: This header may be security-sensitive (see the <link url='#security'>Security Considerations</link> for details).</p>
  190. </section2>
  191. <section2 topic='Store' anchor='headers-store'>
  192. <p>The Store header enables a sender to specify whether the stanza may be stored or archived by the recipient. The allowable values for this header are "true" and "false". If the sender specifies a value of "false", the recipient MUST NOT store the stanza or any information contained therein; if the sender specifies a value of "true", the recipient MAY store the stanza or any information contained therein; if the value is anything other than "true" or "false" and the recipient does not understand the value, the recipient MUST assume the default value of "false". Note: This header may be security-sensitive (see the <link url='#security'>Security Considerations</link> for details).</p>
  193. </section2>
  194. <section2 topic='TTL' anchor='headers-ttl'>
  195. <p>It may be useful to specify that the information contained in a stanza is valid only for a limited period of time. Such is the function of the "TTL" header, the value of which is some number of seconds since the creation of the stanza. Note well that this header is purely informational and MUST NOT be used for routing or delivery of XML stanzas, since that function is already served by &xep0079;. A stanza that includes the "TTL" header SHOULD also include a "Created" header so that the recipient can properly process the stanza.</p>
  196. <p>One situation in which both the "Created" and "TTL" headers might prove valuable is the broadcasting of structured presence information, such as a calendar-generated notification that a user will be in a meeting for the next hour:</p>
  197. <example caption='Time to Live for Presence Information'><![CDATA[
  198. <presence>
  199. <show>dnd</show>
  200. <status>in a meeting</status>
  201. <headers xmlns='http://jabber.org/protocol/shim'>
  202. <header name='Created'>2004-05-10T11:00Z</header>
  203. <header name='TTL'>3600</header>
  204. </headers>
  205. </presence>
  206. ]]></example>
  207. <p>Another potential application is specifying a time to live for <cite>Service Discovery</cite> results, which helps other entities know how long to cache such information:</p>
  208. <example caption='Time to Live for Disco Information'><![CDATA[
  209. <iq from='example.com'
  210. id='some-id'
  211. to='example.org'
  212. type='result'>
  213. <query xmlns='http://jabber.org/protocol/disco#info'>
  214. ...
  215. <feature var='http://jabber.org/protocol/amp'/>
  216. ...
  217. <headers xmlns='http://jabber.org/protocol/shim'>
  218. <header name='Created'>2004-05-17T20:47Z</header>
  219. <header name='TTL'>86400</header>
  220. </headers>
  221. </query>
  222. </iq>
  223. ]]></example>
  224. </section2>
  225. <section2 topic='Urgency' anchor='headers-urgency'>
  226. <p>It can be useful to specify that the information contained in a stanza is more or less time-sensitive (e.g., in order to help the recipient determine whether to attend to the information immediately or to delay attending to the information). Such is the function of the "Urgency" header, the value of which is "high", "medium", or "low". One use of the header is Sieve notifications (see &sievenotify;) sent via XMPP, as specified in &sievenotifyxmpp;.</p>
  227. <example caption='An Urgent Message'><![CDATA[
  228. <message
  229. from='romeo@shakespeare.lit/orchard'
  230. to='juliet@capulet.com'
  231. type='chat'>
  232. <body>Wherefore are thou?!?</body>
  233. <headers xmlns='http://jabber.org/protocol/shim'>
  234. <header name='Urgency'>high</header>
  235. </headers>
  236. </message>
  237. ]]></example>
  238. </section2>
  239. </section1>
  240. <section1 topic='A Note About Date-Related Headers' anchor='dates'>
  241. <p>Date formats differ widely. &xep0082; defines the Date, DateTime, and Time profiles of &iso8601;, which correspond to the Date, DateTime, and Time headers registered herein. The SHIM Date header also corresponds to the Date metadata element used in &DUBLINCORE; as specified in &rfc2413;.</p>
  242. <p>However, many Internet standards use a different datetime format that ultimately derives from &rfc0822; as updated by &rfc1123;; specifically, that format is used by email (<cite>RFC 2822</cite>), the World Wide Web (<cite>RFC 2616</cite>), and the Session Initiation Protocol (<cite>RFC 3261</cite>). To map dates to and from these protocols, we define the SHIM RFC2822Date header.</p>
  243. </section1>
  244. <section1 topic='Security Considerations' anchor='security'>
  245. <p>In general, security considerations are the responsibility of the "using protocol".</p>
  246. <p>Certain SHIM headers MAY be security-sensitive (e.g., the "Classification", "Distribute", and "Store" headers specified herein). If an entity plans to use such headers, it MUST determine whether the intended recipient supports both the SHIM protocol and the particular security-sensitive headers of interst, as described under <link url='#disco'>Service Discovery</link>; furthermore, an implementation MUST warn a human user (if any) before use if the security-sensitive headers of interest are not supported.</p>
  247. </section1>
  248. <section1 topic='IANA Considerations' anchor='iana'>
  249. <p>This document requires no interaction with &IANA;.</p>
  250. </section1>
  251. <section1 topic='XMPP Registrar Considerations' anchor='registrar'>
  252. <section2 topic='Protocol Namespaces' anchor='registrar-ns'>
  253. <p>The XMPP Registrar includes 'http://jabber.org/protocol/shim' in its registry of protocol namespaces (see &SHIMHEADERS;).</p>
  254. </section2>
  255. <section2 topic='Well-Known Service Discovery Nodes' anchor='registrar-nodes'>
  256. <p>The XMPP Registrar includes 'http://jabber.org/protocol/shim' in its registry of well-known Service Discovery nodes.</p>
  257. </section2>
  258. <section2 topic='SHIM Headers Registry' anchor='registrar-shim'>
  259. <p>The XMPP Registrar maintains a registry of SHIM headers.</p>
  260. <section3 topic='Process' anchor='registrar-shim-process'>
  261. &REGPROCESS;
  262. <code><![CDATA[
  263. <header>
  264. <name>the value of the 'name' attribute</name>
  265. <desc>a natural-language description of the header</desc>
  266. <doc>the document in which this header is specified</doc>
  267. </header>
  268. ]]></code>
  269. <p>The registrant may register more than one header at a time, each contained in a separate &lt;header/&gt; element.</p>
  270. </section3>
  271. <section3 topic='Initial Registration' anchor='registrar-shim-init'>
  272. <code><![CDATA[
  273. <header>
  274. <name>Accept</name>
  275. <desc>see RFC 2616</desc>
  276. <doc>RFC 2616</doc>
  277. </header>
  278. <header>
  279. <name>Accept-Charset</name>
  280. <desc>see RFC 2616</desc>
  281. <doc>RFC 2616</doc>
  282. </header>
  283. <header>
  284. <name>Accept-Encoding</name>
  285. <desc>see RFC 2616</desc>
  286. <doc>RFC 2616</doc>
  287. </header>
  288. <header>
  289. <name>Accept-Language</name>
  290. <desc>see RFC 2616</desc>
  291. <doc>RFC 2616</doc>
  292. </header>
  293. <header>
  294. <name>Accept-Ranges</name>
  295. <desc>see RFC 2616</desc>
  296. <doc>RFC 2616</doc>
  297. </header>
  298. <header>
  299. <name>Age</name>
  300. <desc>see RFC 2616</desc>
  301. <doc>RFC 2616</doc>
  302. </header>
  303. <header>
  304. <name>Alert-Info</name>
  305. <desc>see RFC 3261</desc>
  306. <doc>RFC 3261</doc>
  307. </header>
  308. <header>
  309. <name>Allow</name>
  310. <desc>see RFC 2616</desc>
  311. <doc>RFC 2616</doc>
  312. </header>
  313. <header>
  314. <name>Authentication-Info</name>
  315. <desc>see RFC 2617</desc>
  316. <doc>RFC 2617</doc>
  317. </header>
  318. <header>
  319. <name>Cache-Control</name>
  320. <desc>see RFC 2616</desc>
  321. <doc>RFC 2616</doc>
  322. </header>
  323. <header>
  324. <name>Call-ID</name>
  325. <desc>see RFC 3261</desc>
  326. <doc>RFC 3261</doc>
  327. </header>
  328. <header>
  329. <name>Call-Info</name>
  330. <desc>see RFC 3261</desc>
  331. <doc>RFC 3261</doc>
  332. </header>
  333. <header>
  334. <name>Classification</name>
  335. <desc>a level within a classification scheme</desc>
  336. <doc>XEP-0131</doc>
  337. </header>
  338. <header>
  339. <name>Comments</name>
  340. <desc>see RFC 2822</desc>
  341. <doc>RFC 2822</doc>
  342. </header>
  343. <header>
  344. <name>Connection</name>
  345. <desc>see RFC 2616</desc>
  346. <doc>RFC 2616</doc>
  347. </header>
  348. <header>
  349. <name>Contact</name>
  350. <desc>see RFC 3261</desc>
  351. <doc>RFC 3261</doc>
  352. </header>
  353. <header>
  354. <name>Content-Description</name>
  355. <desc>see RFC 2045</desc>
  356. <doc>RFC 2045</doc>
  357. </header>
  358. <header>
  359. <name>Content-Disposition</name>
  360. <desc>see RFC 3261</desc>
  361. <doc>RFC 3261</doc>
  362. </header>
  363. <header>
  364. <name>Content-Encoding</name>
  365. <desc>see RFC 2616</desc>
  366. <doc>RFC 2616</doc>
  367. </header>
  368. <header>
  369. <name>Content-ID</name>
  370. <desc>see RFC 2045</desc>
  371. <doc>RFC 2045</doc>
  372. </header>
  373. <header>
  374. <name>Content-Language</name>
  375. <desc>see RFC 2616</desc>
  376. <doc>RFC 2616</doc>
  377. </header>
  378. <header>
  379. <name>Content-Length</name>
  380. <desc>see RFC 2616</desc>
  381. <doc>RFC 2616</doc>
  382. </header>
  383. <header>
  384. <name>Content-Location</name>
  385. <desc>see RFC 2616</desc>
  386. <doc>RFC 2616</doc>
  387. </header>
  388. <header>
  389. <name>Content-MD5</name>
  390. <desc>see RFC 2616</desc>
  391. <doc>RFC 2616</doc>
  392. </header>
  393. <header>
  394. <name>Content-Range</name>
  395. <desc>see RFC 2616</desc>
  396. <doc>RFC 2616</doc>
  397. </header>
  398. <header>
  399. <name>Content-Transfer-Encoding</name>
  400. <desc>see RFC 2045</desc>
  401. <doc>RFC 2045</doc>
  402. </header>
  403. <header>
  404. <name>Content-Type</name>
  405. <desc>see RFC 2045 or RFC 2616</desc>
  406. <doc>RFC 2045 or RFC 2616</doc>
  407. </header>
  408. <header>
  409. <name>Contributor</name>
  410. <desc>an entity other than the primary Creator who helped to create a resource</desc>
  411. <doc>RFC 2413</doc>
  412. </header>
  413. <header>
  414. <name>Coverage</name>
  415. <desc>the spatial or temporal characteristics of a resource</desc>
  416. <doc>RFC 2413</doc>
  417. </header>
  418. <header>
  419. <name>Created</name>
  420. <desc>date and time of stanza creation in ISO 8601 format</desc>
  421. <doc>XEP-0131</doc>
  422. </header>
  423. <header>
  424. <name>Creator</name>
  425. <desc>the person or organization responsible for creating the content of a resource</desc>
  426. <doc>RFC 2413</doc>
  427. </header>
  428. <header>
  429. <name>CSeq</name>
  430. <desc>see RFC 3261</desc>
  431. <doc>RFC 3261</doc>
  432. </header>
  433. <header>
  434. <name>Date</name>
  435. <desc>a string that conforms to the Date profile specified in XEP-0082</desc>
  436. <doc>XEP-0131</doc>
  437. </header>
  438. <header>
  439. <name>DateTime</name>
  440. <desc>a string that conforms to the DateTime profile specified in XEP-0082</desc>
  441. <doc>XEP-0131</doc>
  442. </header>
  443. <header>
  444. <name>Description</name>
  445. <desc>a textual description of the content of a resource</desc>
  446. <doc>RFC 2413</doc>
  447. </header>
  448. <header>
  449. <name>Distribute</name>
  450. <desc>whether or not the stanza may be further distributed</desc>
  451. <doc>XEP-0131</doc>
  452. </header>
  453. <header>
  454. <name>Error-Info</name>
  455. <desc>see RFC 3261</desc>
  456. <doc>RFC 3261</doc>
  457. </header>
  458. <header>
  459. <name>ETag</name>
  460. <desc>see RFC 2616</desc>
  461. <doc>RFC 2616</doc>
  462. </header>
  463. <header>
  464. <name>Expect</name>
  465. <desc>see RFC 2616</desc>
  466. <doc>RFC 2616</doc>
  467. </header>
  468. <header>
  469. <name>Expires</name>
  470. <desc>see RFC 2616</desc>
  471. <doc>RFC 2616</doc>
  472. </header>
  473. <header>
  474. <name>Format</name>
  475. <desc>the data format of a resource</desc>
  476. <doc>RFC 2413</doc>
  477. </header>
  478. <header>
  479. <name>Host</name>
  480. <desc>see RFC 2616</desc>
  481. <doc>RFC 2616</doc>
  482. </header>
  483. <header>
  484. <name>Identifier</name>
  485. <desc>a string or number used to identity a resource</desc>
  486. <doc>RFC 2413</doc>
  487. </header>
  488. <header>
  489. <name>If-Match</name>
  490. <desc>see RFC 2616</desc>
  491. <doc>RFC 2616</doc>
  492. </header>
  493. <header>
  494. <name>If-Modified-Since</name>
  495. <desc>see RFC 2616</desc>
  496. <doc>RFC 2616</doc>
  497. </header>
  498. <header>
  499. <name>If-None-Match</name>
  500. <desc>see RFC 2616</desc>
  501. <doc>RFC 2616</doc>
  502. </header>
  503. <header>
  504. <name>If-Range</name>
  505. <desc>see RFC 2616</desc>
  506. <doc>RFC 2616</doc>
  507. </header>
  508. <header>
  509. <name>If-Unmodified-Since</name>
  510. <desc>see RFC 2616</desc>
  511. <doc>RFC 2616</doc>
  512. </header>
  513. <header>
  514. <name>In-Reply-To</name>
  515. <desc>see RFC 2822</desc>
  516. <doc>RFC 2822</doc>
  517. </header>
  518. <header>
  519. <name>Keywords</name>
  520. <desc>see RFC 2822</desc>
  521. <doc>RFC 2822</doc>
  522. </header>
  523. <header>
  524. <name>Language</name>
  525. <desc>the language in expressing the content of a resource</desc>
  526. <doc>RFC 2413</doc>
  527. </header>
  528. <header>
  529. <name>Last-Modified</name>
  530. <desc>see RFC 2616</desc>
  531. <doc>RFC 2616</doc>
  532. </header>
  533. <header>
  534. <name>Location</name>
  535. <desc>see RFC 2616</desc>
  536. <doc>RFC 2616</doc>
  537. </header>
  538. <header>
  539. <name>Max-Forwards</name>
  540. <desc>see RFC 2616</desc>
  541. <doc>RFC 2616</doc>
  542. </header>
  543. <header>
  544. <name>Message-ID</name>
  545. <desc>see RFC 2822</desc>
  546. <doc>RFC 2822</doc>
  547. </header>
  548. <header>
  549. <name>MIME-Version</name>
  550. <desc>see RFC 2045</desc>
  551. <doc>RFC 2045</doc>
  552. </header>
  553. <header>
  554. <name>Organization</name>
  555. <desc>see RFC 3261</desc>
  556. <doc>RFC 3261</doc>
  557. </header>
  558. <header>
  559. <name>Pragma</name>
  560. <desc>see RFC 2616</desc>
  561. <doc>RFC 2616</doc>
  562. </header>
  563. <header>
  564. <name>Priority</name>
  565. <desc>see RFC 3261</desc>
  566. <doc>RFC 3261</doc>
  567. </header>
  568. <header>
  569. <name>Proxy-Authenticate</name>
  570. <desc>see RFC 2616</desc>
  571. <doc>RFC 2616</doc>
  572. </header>
  573. <header>
  574. <name>Proxy-Authorization</name>
  575. <desc>see RFC 2616</desc>
  576. <doc>RFC 2616</doc>
  577. </header>
  578. <header>
  579. <name>Publisher</name>
  580. <desc>the entity responsible for making a resource available</desc>
  581. <doc>RFC 2413</doc>
  582. </header>
  583. <header>
  584. <name>Range</name>
  585. <desc>see RFC 2616</desc>
  586. <doc>RFC 2616</doc>
  587. </header>
  588. <header>
  589. <name>Received</name>
  590. <desc>see RFC 2822</desc>
  591. <doc>RFC 2822</doc>
  592. </header>
  593. <header>
  594. <name>Record-Route</name>
  595. <desc>see RFC 3261</desc>
  596. <doc>RFC 3261</doc>
  597. </header>
  598. <header>
  599. <name>References</name>
  600. <desc>see RFC 2822</desc>
  601. <doc>RFC 2822</doc>
  602. </header>
  603. <header>
  604. <name>Referer</name>
  605. <desc>see RFC 2616</desc>
  606. <doc>RFC 2616</doc>
  607. </header>
  608. <header>
  609. <name>Relation</name>
  610. <desc>the identifier of a second resource related to a primary resource</desc>
  611. <doc>RFC 2413</doc>
  612. </header>
  613. <header>
  614. <name>Reply-To</name>
  615. <desc>see RFC 3261</desc>
  616. <doc>RFC 3261</doc>
  617. </header>
  618. <header>
  619. <name>Require</name>
  620. <desc>see RFC 3261</desc>
  621. <doc>RFC 3261</doc>
  622. </header>
  623. <header>
  624. <name>Resent-Bcc</name>
  625. <desc>see RFC 2822</desc>
  626. <doc>RFC 2822</doc>
  627. </header>
  628. <header>
  629. <name>Resent-Cc</name>
  630. <desc>see RFC 2822</desc>
  631. <doc>RFC 2822</doc>
  632. </header>
  633. <header>
  634. <name>Resent-Date</name>
  635. <desc>see RFC 2822</desc>
  636. <doc>RFC 2822</doc>
  637. </header>
  638. <header>
  639. <name>Resent-From</name>
  640. <desc>see RFC 2822</desc>
  641. <doc>RFC 2822</doc>
  642. </header>
  643. <header>
  644. <name>Resent-Message-Id</name>
  645. <desc>see RFC 2822</desc>
  646. <doc>RFC 2822</doc>
  647. </header>
  648. <header>
  649. <name>Resent-Sender</name>
  650. <desc>see RFC 2822</desc>
  651. <doc>RFC 2822</doc>
  652. </header>
  653. <header>
  654. <name>Resent-To</name>
  655. <desc>see RFC 2822</desc>
  656. <doc>RFC 2822</doc>
  657. </header>
  658. <header>
  659. <name>Retry-After</name>
  660. <desc>see RFC 2616</desc>
  661. <doc>RFC 2616</doc>
  662. </header>
  663. <header>
  664. <name>Return-Path</name>
  665. <desc>see RFC 2822</desc>
  666. <doc>RFC 2822</doc>
  667. </header>
  668. <header>
  669. <name>RFC2822Date</name>
  670. <desc>the datetime associated with an email message, SIP exchange, or HTTP request</desc>
  671. <doc>RFC 2822</doc>
  672. </header>
  673. <header>
  674. <name>Rights</name>
  675. <desc>a rights management statement, identifier, or link</desc>
  676. <doc>RFC 2413</doc>
  677. </header>
  678. <header>
  679. <name>Route</name>
  680. <desc>see RFC 3261</desc>
  681. <doc>RFC 3261</doc>
  682. </header>
  683. <header>
  684. <name>Sender</name>
  685. <desc>see RFC 2822</desc>
  686. <doc>RFC 2822</doc>
  687. </header>
  688. <header>
  689. <name>Server</name>
  690. <desc>see RFC 2616</desc>
  691. <doc>RFC 2616</doc>
  692. </header>
  693. <header>
  694. <name>Source</name>
  695. <desc>information about the original source of the present resource</desc>
  696. <doc>RFC 2413</doc>
  697. </header>
  698. <header>
  699. <name>Store</name>
  700. <desc>whether or not the stanza may be stored or archived</desc>
  701. <doc>XEP-0131</doc>
  702. </header>
  703. <header>
  704. <name>Subject</name>
  705. <desc>the human-readable topic of a message or resource</desc>
  706. <doc>RFC 2822 or RFC 2413</doc>
  707. </header>
  708. <header>
  709. <name>Supported</name>
  710. <desc>see RFC 3261</desc>
  711. <doc>RFC 3261</doc>
  712. </header>
  713. <header>
  714. <name>TE</name>
  715. <desc>see RFC 2616</desc>
  716. <doc>RFC 2616</doc>
  717. </header>
  718. <header>
  719. <name>Time</name>
  720. <desc>a string that conforms to the Time profile specified in XEP-0082</desc>
  721. <doc>XEP-0131</doc>
  722. </header>
  723. <header>
  724. <name>Timestamp</name>
  725. <desc>see RFC 3261</desc>
  726. <doc>RFC 3261</doc>
  727. </header>
  728. <header>
  729. <name>Title</name>
  730. <desc>the name given to a resource</desc>
  731. <doc>RFC 2413</doc>
  732. </header>
  733. <header>
  734. <name>Trailer</name>
  735. <desc>see RFC 2616</desc>
  736. <doc>RFC 2616</doc>
  737. </header>
  738. <header>
  739. <name>Transfer-Encoding</name>
  740. <desc>see RFC 2616</desc>
  741. <doc>RFC 2616</doc>
  742. </header>
  743. <header>
  744. <name>TTL</name>
  745. <desc>a time to live for the stanza, in seconds</desc>
  746. <doc>XEP-0131</doc>
  747. </header>
  748. <header>
  749. <name>Type</name>
  750. <desc>the category of a resource</desc>
  751. <doc>RFC 2413</doc>
  752. </header>
  753. <header>
  754. <name>Unsupported</name>
  755. <desc>see RFC 3261</desc>
  756. <doc>RFC 3261</doc>
  757. </header>
  758. <header>
  759. <name>Upgrade</name>
  760. <desc>see RFC 2616</desc>
  761. <doc>RFC 2616</doc>
  762. </header>
  763. <header>
  764. <name>Urgency</name>
  765. <desc>the time sensitivity of a stanza ("high", "medium", or "low")</desc>
  766. <doc>XEP-0131</doc>
  767. </header>
  768. <header>
  769. <name>User-Agent</name>
  770. <desc>see RFC 2616</desc>
  771. <doc>RFC 2616</doc>
  772. </header>
  773. <header>
  774. <name>Vary</name>
  775. <desc>see RFC 2616</desc>
  776. <doc>RFC 2616</doc>
  777. </header>
  778. <header>
  779. <name>Via</name>
  780. <desc>see RFC 2616</desc>
  781. <doc>RFC 2616</doc>
  782. </header>
  783. <header>
  784. <name>Warning</name>
  785. <desc>see RFC 2616</desc>
  786. <doc>RFC 2616</doc>
  787. </header>
  788. <header>
  789. <name>WWW-Authenticate</name>
  790. <desc>see RFC 2616</desc>
  791. <doc>RFC 2616</doc>
  792. </header>
  793. ]]></code>
  794. </section3>
  795. </section2>
  796. </section1>
  797. <section1 topic='XML Schema' anchor='schema'>
  798. <code><![CDATA[
  799. <?xml version='1.0' encoding='UTF-8'?>
  800. <xs:schema
  801. xmlns:xs='http://www.w3.org/2001/XMLSchema'
  802. targetNamespace='http://jabber.org/protocol/shim'
  803. xmlns='http://jabber.org/protocol/shim'
  804. elementFormDefault='qualified'>
  805. <xs:annotation>
  806. <xs:documentation>
  807. The protocol documented by this schema is defined in
  808. XEP-0131: http://www.xmpp.org/extensions/xep-0131.html
  809. </xs:documentation>
  810. </xs:annotation>
  811. <xs:element name='headers'>
  812. <xs:complexType>
  813. <xs:sequence>
  814. <xs:element ref='header' minOccurs='0' maxOccurs='unbounded'/>
  815. </xs:sequence>
  816. </xs:complexType>
  817. </xs:element>
  818. <xs:element name='header'>
  819. <xs:complexType>
  820. <xs:simpleContent>
  821. <xs:extension base='xs:string'>
  822. <xs:attribute name='name' use='required'/>
  823. </xs:extension>
  824. </xs:simpleContent>
  825. </xs:complexType>
  826. </xs:element>
  827. </xs:schema>
  828. ]]></code>
  829. </section1>
  830. </xep>