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-0054.xml 23KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648
  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>vcard-temp</title>
  10. <abstract>This specification provides canonical documentation of the vCard-XML format currently in use within the Jabber community.</abstract>
  11. &LEGALNOTICE;
  12. <number>0054</number>
  13. <status>Active</status>
  14. <type>Historical</type>
  15. <sig>Standards</sig>
  16. <dependencies>
  17. <spec>XMPP Core</spec>
  18. </dependencies>
  19. <supersedes/>
  20. <supersededby/>
  21. <shortname>vcard-temp</shortname>
  22. &stpeter;
  23. <revision>
  24. <version>1.2</version>
  25. <date>2008-07-16</date>
  26. <initials>psa</initials>
  27. <remark><p>More fully specified error cases; added section on determining support.</p></remark>
  28. </revision>
  29. <revision>
  30. <version>1.1</version>
  31. <date>2003-03-26</date>
  32. <initials>psa</initials>
  33. <remark><p>Clarified certain historical inaccuracies and added links to archived versions of Frank Dawson's Internet-Drafts.</p></remark>
  34. </revision>
  35. <revision>
  36. <version>1.0</version>
  37. <date>2003-01-09</date>
  38. <initials>psa</initials>
  39. <remark><p>Updated status to Active per vote of the Jabber Council.</p></remark>
  40. </revision>
  41. <revision>
  42. <version>0.2</version>
  43. <date>2002-11-06</date>
  44. <initials>psa</initials>
  45. <remark><p>Many small fixes; added implementation notes.</p></remark>
  46. </revision>
  47. <revision>
  48. <version>0.1</version>
  49. <date>2002-10-31</date>
  50. <initials>psa</initials>
  51. <remark><p>Initial version.</p></remark>
  52. </revision>
  53. </header>
  54. <section1 topic='Introduction' anchor='intro'>
  55. <p>This specification documents the vCard-XML format currently in use within the Jabber community. A future specification will recommend a standards-track protocol to supersede this informational document.</p>
  56. <p>The basic functionality is for a user to store and retrieve an XML representation of his or her vCard using the data storage capabilities native to all existing Jabber server implementations. This is done by by sending an &lt;iq/&gt; of type "set" (storage) or "get" (retrieval) to one's Jabber server containing a &lt;vCard/&gt; child scoped by the 'vcard-temp' namespace, with the &lt;vCard/&gt; element containing the actual vCard-XML elements as defined by the vCard-XML DTD. Other users may then view one's vCard information.</p>
  57. </section1>
  58. <section1 topic='History' anchor='history'>
  59. <p>vCards are an existing and widely-used standard for personal user information storage, somewhat like an electronic business card. The vCard format is defined in &rfc2426;.</p>
  60. <p>In 1998 and 1999, Frank Dawson submitted four revisions of an Internet-Draft proposing to represent the standard vCard format in XML. When the jabberd open-source project was originally looking for a method to store personal user information, the most recent revision consulted by the jabberd developers was draft-dawson-vcard-xml-dtd-01 <note>This document is archived at &lt;<link url='http://www.watersprings.org/pub/id/draft-dawson-vcard-xml-dtd-01.txt'>http://www.watersprings.org/pub/id/draft-dawson-vcard-xml-dtd-01.txt</link>&gt;.</note>. He also submitted a -02 revision on November 15, 1998 <note>This document is archived at &lt;<link url='http://www.watersprings.org/pub/id/draft-dawson-vcard-xml-dtd-02.txt'>http://www.watersprings.org/pub/id/draft-dawson-vcard-xml-dtd-02.txt</link>&gt;.</note> and a -03 revision on June 22, 1999 <note>This document is archived at &lt;<link url='http://www.watersprings.org/pub/id/draft-dawson-vcard-xml-dtd-03.txt'>http://www.watersprings.org/pub/id/draft-dawson-vcard-xml-dtd-03.txt</link>&gt;.</note>.</p>
  61. <p>Unfortunately, Dawson's proposal did not move forward within the IETF's standards process. For reasons now lost in the mists of time, the Jabber project continued to use the DTD from draft-dawson-vcard-xml-dtd-01, making two small modifications to adapt it for use within the Jabber community (adding the JABBERID and DESC elements) but also specifying element names in all caps rather than lowercase as defined in draft-dawson-vcard-xml-dtd-01. In addition, the Jabber community followed the usage (but not DTD) in that draft regarding version information, including it as an attribute of the vCard element rather than as a child element. This format was implemented within the Jabber community under the 'vcard-temp' namespace.</p>
  62. </section1>
  63. <section1 topic='Use Cases' anchor='usecases'>
  64. <section2 topic="Retrieving One's vCard">
  65. <p>A user retrieves his or her own vCard by sending an IQ-get with no 'to' address and containing a &lt;vCard/&gt; child element qualified by the 'vcard-temp' namespace.</p>
  66. <example caption="vCard Retrieval Request"><![CDATA[
  67. <iq from='stpeter@jabber.org/roundabout'
  68. id='v1'
  69. type='get'>
  70. <vCard xmlns='vcard-temp'/>
  71. </iq>
  72. ]]></example>
  73. <p>If a vCard exists for the user, the server MUST return in an IQ-result:</p>
  74. <example caption="Server Returns vCard"><![CDATA[
  75. <iq id='v1'
  76. to='stpeter@jabber.org/roundabout'
  77. type='result'>
  78. <vCard xmlns='vcard-temp'>
  79. <FN>Peter Saint-Andre</FN>
  80. <N>
  81. <FAMILY>Saint-Andre</FAMILY>
  82. <GIVEN>Peter</GIVEN>
  83. <MIDDLE/>
  84. </N>
  85. <NICKNAME>stpeter</NICKNAME>
  86. <URL>http://www.xmpp.org/xsf/people/stpeter.shtml</URL>
  87. <BDAY>1966-08-06</BDAY>
  88. <ORG>
  89. <ORGNAME>XMPP Standards Foundation</ORGNAME>
  90. <ORGUNIT/>
  91. </ORG>
  92. <TITLE>Executive Director</TITLE>
  93. <ROLE>Patron Saint</ROLE>
  94. <TEL><WORK/><VOICE/><NUMBER>303-308-3282</NUMBER></TEL>
  95. <TEL><WORK/><FAX/><NUMBER/></TEL>
  96. <TEL><WORK/><MSG/><NUMBER/></TEL>
  97. <ADR>
  98. <WORK/>
  99. <EXTADD>Suite 600</EXTADD>
  100. <STREET>1899 Wynkoop Street</STREET>
  101. <LOCALITY>Denver</LOCALITY>
  102. <REGION>CO</REGION>
  103. <PCODE>80202</PCODE>
  104. <CTRY>USA</CTRY>
  105. </ADR>
  106. <TEL><HOME/><VOICE/><NUMBER>303-555-1212</NUMBER></TEL>
  107. <TEL><HOME/><FAX/><NUMBER/></TEL>
  108. <TEL><HOME/><MSG/><NUMBER/></TEL>
  109. <ADR>
  110. <HOME/>
  111. <EXTADD/>
  112. <STREET/>
  113. <LOCALITY>Denver</LOCALITY>
  114. <REGION>CO</REGION>
  115. <PCODE>80209</PCODE>
  116. <CTRY>USA</CTRY>
  117. </ADR>
  118. <EMAIL><INTERNET/><PREF/><USERID>stpeter@jabber.org</USERID></EMAIL>
  119. <JABBERID>stpeter@jabber.org</JABBERID>
  120. <DESC>
  121. More information about me is located on my
  122. personal website: http://www.saint-andre.com/
  123. </DESC>
  124. </vCard>
  125. </iq>
  126. ]]></example>
  127. <p>If no vCard exists, the server MUST return a stanza error (which SHOULD be &notfound;) or an IQ-result containing an empty &lt;vCard/&gt; element.</p>
  128. <example caption="No vCard (item-not-found)"><![CDATA[
  129. <iq id='v1'
  130. to='stpeter@jabber.org/roundabout'
  131. type='error'>
  132. <vCard xmlns='vcard-temp'/>
  133. <error type='cancel'>
  134. <item-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
  135. </error>
  136. </iq>
  137. ]]></example>
  138. <example caption="No vCard (empty element)"><![CDATA[
  139. <iq id='v1'
  140. to='stpeter@jabber.org/roundabout'
  141. type='result'>
  142. <vCard xmlns='vcard-temp'/>
  143. </iq>
  144. ]]></example>
  145. </section2>
  146. <section2 topic="Updating One&apos;s vCard">
  147. <p>A user may publish or update his or her vCard by sending an IQ of type "set" with no 'to' address, following the format in the previous use case.</p>
  148. <example caption="vCard Update Request"><![CDATA[
  149. <iq id='v2' type='set'>
  150. <vCard xmlns='vcard-temp'>
  151. <FN>Peter Saint-Andre</FN>
  152. <N>
  153. <FAMILY>Saint-Andre</FAMILY>
  154. <GIVEN>Peter</GIVEN>
  155. <MIDDLE/>
  156. </N>
  157. <NICKNAME>stpeter</NICKNAME>
  158. <URL>http://www.xmpp.org/xsf/people/stpeter.shtml</URL>
  159. <BDAY>1966-08-06</BDAY>
  160. <ORG>
  161. <ORGNAME>XMPP Standards Foundation</ORGNAME>
  162. <ORGUNIT/>
  163. </ORG>
  164. <TITLE>Executive Director</TITLE>
  165. <ROLE>Patron Saint</ROLE>
  166. <TEL><WORK/><VOICE/><NUMBER>303-308-3282</NUMBER></TEL>
  167. <TEL><WORK/><FAX/><NUMBER/></TEL>
  168. <TEL><WORK/><MSG/><NUMBER/></TEL>
  169. <ADR>
  170. <WORK/>
  171. <EXTADD>Suite 600</EXTADD>
  172. <STREET>1899 Wynkoop Street</STREET>
  173. <LOCALITY>Denver</LOCALITY>
  174. <REGION>CO</REGION>
  175. <PCODE>80202</PCODE>
  176. <CTRY>USA</CTRY>
  177. </ADR>
  178. <TEL><HOME/><VOICE/><NUMBER>303-555-1212</NUMBER></TEL>
  179. <TEL><HOME/><FAX/><NUMBER/></TEL>
  180. <TEL><HOME/><MSG/><NUMBER/></TEL>
  181. <ADR>
  182. <HOME/>
  183. <EXTADD/>
  184. <STREET/>
  185. <LOCALITY>Denver</LOCALITY>
  186. <REGION>CO</REGION>
  187. <PCODE>80209</PCODE>
  188. <CTRY>USA</CTRY>
  189. </ADR>
  190. <EMAIL><INTERNET/><PREF/><USERID>stpeter@jabber.org</USERID></EMAIL>
  191. <JABBERID>stpeter@jabber.org</JABBERID>
  192. <DESC>
  193. Check out my blog at https://stpeter.im/
  194. </DESC>
  195. </vCard>
  196. </iq>
  197. ]]></example>
  198. <p>The server then returns an IQ-result (or an IQ-error).</p>
  199. <example caption="Server Returns Success"><![CDATA[
  200. <iq id='v2'
  201. to='stpeter@jabber.org/roundabout'
  202. type='result'/>
  203. ]]></example>
  204. <p>Notice that the previous IQ-set included only one changed element (the &lt;DESC/&gt; element). Currently there is no method for partial updates of a vCard, and the entire vCard must be sent to the server in order to update any part of the vCard.</p>
  205. <p>If a user attempts to perform an IQ set on another user's vCard (i.e., by setting a 'to' address to a JID other than the sending user's bare JID), the server MUST return a stanza error, which SHOULD be &forbidden; or &notallowed;.</p>
  206. <example caption="Entity Attempts to Modify Another Entity&apos;s vCard"><![CDATA[
  207. <iq id='v2'
  208. to='stpeter@jabber.org/roundabout'
  209. type='error'>
  210. <error type='auth'>
  211. <forbidden xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
  212. </error>
  213. </iq>
  214. ]]></example>
  215. </section2>
  216. <section2 topic="Viewing Another User&apos;s vCard">
  217. <p>A user may view another user's vCard by sending an IQ of type "get" to the other user's bare JID.</p>
  218. <example caption="Requesting Another User's vCard"><![CDATA[
  219. <iq from='stpeter@jabber.org/roundabout'
  220. id='v3'
  221. to='jer@jabber.org'
  222. type='get'>
  223. <vCard xmlns='vcard-temp'/>
  224. </iq>
  225. ]]></example>
  226. <p>In accordance with &xmppcore;, a compliant server MUST respond on behalf of the requestor and not forward the IQ to the requestee's connected resource.</p>
  227. <example caption="Receiving Another User's vCard"><![CDATA[
  228. <iq from='jer@jabber.org'
  229. to='stpeter@jabber.org/roundabout'
  230. type='result'
  231. id='v3'>
  232. <vCard xmlns='vcard-temp'>
  233. <FN>JeremieMiller</FN>
  234. <N>
  235. <GIVEN>Jeremie</GIVEN>
  236. <FAMILY>Miller</FAMILY>
  237. <MIDDLE/>
  238. </N>
  239. <NICKNAME>jer</NICKNAME>
  240. <EMAIL><INTERNET/><PREF/><USERID>jeremie@jabber.org</USERID></EMAIL>
  241. <JABBERID>jer@jabber.org</JABBERID>
  242. </vCard>
  243. </iq>
  244. ]]></example>
  245. <p>If no vCard exists or the user does not exist, the server MUST return a stanza error, which SHOULD be either &unavailable; or &notfound; (but the server MUST return the same error condition in both cases to help prevent directory harvesting attacks).</p>
  246. <example caption="No vCard"><![CDATA[
  247. <iq id='v3'
  248. to='stpeter@jabber.org/roundabout'
  249. type='error'>
  250. <vCard xmlns='vcard-temp'/>
  251. <error type='cancel'>
  252. <service-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
  253. </error>
  254. </iq>
  255. ]]></example>
  256. <p>Note: The use of vCards is not limited to accounts associated with human users. For example, an XMPP server could itself have a vCard that defines the server's hosting organization, physical location, and relevant contact addresses.</p>
  257. </section2>
  258. </section1>
  259. <section1 topic='Determining Support' anchor='support'>
  260. <p>If an entity supports the vcard-temp protocol, it MUST report that by including a service discovery feature of "vcard-temp" &NSNOTE; in response to a &xep0030; information request:</p>
  261. <example caption="Service Discovery Information Request"><![CDATA[
  262. <iq type='get'
  263. from='juliet@capulet.lit/balcony'
  264. to='capulet.lit'
  265. id='disco1'>
  266. <query xmlns='http://jabber.org/protocol/disco#info'/>
  267. </iq>
  268. ]]></example>
  269. <example caption="Service Discovery Information Response"><![CDATA[
  270. <iq type='result'
  271. from='capulet.lit'
  272. to='juliet@capulet.lit/balcony'
  273. id='disco1'>
  274. <query xmlns='http://jabber.org/protocol/disco#info'>
  275. ...
  276. <feature var='vcard-temp'/>
  277. ...
  278. </query>
  279. </iq>
  280. ]]></example>
  281. <p>This information can also be encapsulated via &xep0115; for entities who share presence.</p>
  282. </section1>
  283. <section1 topic='Security Considerations' anchor='security'>
  284. <p>The vCard information published to one's Jabber server is world-readable; therefore, users should exercise due caution when determining what information to include (e.g., street addresses, personal telephone numbers, or email addresses).</p>
  285. </section1>
  286. <section1 topic='IANA Considerations' anchor='iana'>
  287. <p>This document requires no interaction with &IANA;.</p>
  288. </section1>
  289. <section1 topic='XMPP Registrar Considerations' anchor='registrar'>
  290. <section2 topic='Protocol Namespaces' anchor='registrar-ns'>
  291. <p>The &REGISTRAR; includes the 'vcard-temp' namespace in its registry of official namespaces (see &NAMESPACES;).</p>
  292. </section2>
  293. <section2 topic='URI Query Types' anchor='registrar-querytypes'>
  294. <p>As authorized by &xep0147;, the XMPP Registrar maintains a registry of queries and key-value pairs for use in XMPP URIs (see &QUERYTYPES;).</p>
  295. <p>The "vcard" querytype is registered as a vCard-related action.</p>
  296. <example caption='vCard Action: IRI/URI'><![CDATA[
  297. xmpp:romeo@montague.net?vcard
  298. ]]></example>
  299. <example caption='vCard Action: Resulting Stanza'><![CDATA[
  300. <iq to='romeo@montague.net' type='get'>
  301. <vCard xmlns='vcard-temp'/>
  302. </iq>
  303. ]]></example>
  304. <p>The following submission registers the "vcard" querytype.</p>
  305. <code><![CDATA[
  306. <querytype>
  307. <name>vcard</name>
  308. <proto>vcard-temp</proto>
  309. <desc>enables retrieval of an entity's vCard data</desc>
  310. <doc>XEP-0054</doc>
  311. </querytype>
  312. ]]></code>
  313. </section2>
  314. </section1>
  315. <section1 topic='Implementation Notes' anchor='impl'>
  316. <p>Note the following:</p>
  317. <ul>
  318. <li>The correct capitalization of the wrapper element is &lt;vCard/&gt; (and XML element names are case-sensitive).</li>
  319. <li>All elements within the &lt;vCard/&gt; element MUST be in ALL CAPS (even though this is at odds with draft-dawson-vcard-xml-dtd-01).</li>
  320. <li>The country abbreviation is contained in a &lt;CTRY/&gt; element, <em>not</em> a &lt;COUNTRY/&gt; element (even though this is at odds with draft-dawson-vcard-xml-dtd-01).</li>
  321. <li>Phone numbers MUST be contained in a &lt;NUMBER&gt; element, not included as CDATA within the &lt;TEL/&gt; element.</li>
  322. <li>If no telephone number is included in a &lt;TEL/&gt; element, an empty &lt;NUMBER/&gt; child MUST be included.</li>
  323. <li>Email addresses MUST be contained in a &lt;USERID&gt; element, not included as CDATA within the &lt;EMAIL/&gt; element.</li>
  324. <li>Some Jabber implementations add a 'version' attribute to the &lt;vCard/&gt; element, with the value set at "2.0" or "3.0". The DTD is incorrect, and the examples in draft-dawson-vcard-xml-dtd-01 clearly show that version information is to be included by means of a 'version' attribute, not the &lt;VERSION/&gt; element as defined in the DTD. However, to conform to draft-dawson-vcard-xml-dtd-01, the value should be "3.0", not "2.0".</li>
  325. </ul>
  326. </section1>
  327. <section1 topic='DTD' anchor='dtd'>
  328. <p>The following DTD is a slightly modified version of that contained in draft-dawson-vcard-xml-dtd-01. The only modifications were to add the JABBERID and DESC elements.</p>
  329. <code><![CDATA[
  330. <?xml version="1.0" encoding="UTF-8"?>
  331. <!--
  332. Copyright (C) The Internet Society (2000). All Rights Reserved.
  333. This document and translations of it may be copied and
  334. furnished to others, and derivative works that comment
  335. on or otherwise explain it or assist in its implmentation
  336. may be prepared, copied, published and distributed, in whole
  337. or in part, without restriction of any kind, provided that
  338. the above copyright notice and this paragraph are included
  339. on all such copies and derivative works.
  340. However, this document itself may not be modified in any
  341. way, such as by removing the copyright notice or references
  342. to the Internet Society or other Internet organizations,
  343. except as needed for the purpose of developing Internet
  344. standards in which case the procedures for copyrights
  345. defined in the Internet Standards process MUST be followed,
  346. or as required to translate it into languages other than English.
  347. The limited permissions granted above are perpetual and will
  348. not be revoked by the Internet Society or its successors or
  349. assigns.
  350. This document and the information contained herein is provided
  351. on an "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET
  352. ENGINEERING TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR
  353. IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE
  354. USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR
  355. ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A
  356. PARTICULAR PURPOSE.
  357. -->
  358. <!-- ==== -->
  359. <!-- NOTE: the following root element is not used in the
  360. modified vcard-temp DTD published by the Jabber
  361. project (now XMPP Standards Foundation) and is
  362. included here only for historical purposes;
  363. implementations that comply with vcard-temp must
  364. specify the root element as vCard, not xCard. -->
  365. <!-- Root element and container for one
  366. or more vCard objects -->
  367. <!ELEMENT xCard (vCard)+>
  368. <!-- Individual vCard container -->
  369. <!ELEMENT vCard (
  370. (VERSION, FN, N),
  371. (NICKNAME?,
  372. PHOTO?,
  373. BDAY?,
  374. ADR?,
  375. LABEL?,
  376. TEL?,
  377. EMAIL?,
  378. JABBERID?,
  379. MAILER?,
  380. TZ?,
  381. GEO?,
  382. TITLE?,
  383. ROLE?,
  384. LOGO?,
  385. AGENT?,
  386. ORG?,
  387. CATEGORIES?,
  388. NOTE?,
  389. PRODID?,
  390. REV?,
  391. SORT-STRING?,
  392. SOUND?,
  393. UID?,
  394. URL?,
  395. CLASS?,
  396. KEY?,
  397. DESC?
  398. )*)>
  399. <!-- vCard specification version property.
  400. This MUST be 2.0, if the document conforms to RFC 2426. -->
  401. <!ELEMENT VERSION (#PCDATA)>
  402. <!-- Formatted or display name property. -->
  403. <!ELEMENT FN (#PCDATA)>
  404. <!-- Structured name property. Name components with multiple
  405. values must be specified as a comma separated
  406. list of values. -->
  407. <!ELEMENT N ( FAMILY?, GIVEN?, MIDDLE?, PREFIX?, SUFFIX?)>
  408. <!ELEMENT FAMILY (#PCDATA)>
  409. <!ELEMENT GIVEN (#PCDATA)>
  410. <!ELEMENT MIDDLE (#PCDATA)>
  411. <!ELEMENT PREFIX (#PCDATA)>
  412. <!ELEMENT SUFFIX (#PCDATA)>
  413. <!-- Nickname property. Multiple nicknames must be
  414. specified as a comma separated list value. -->
  415. <!ELEMENT NICKNAME (#PCDATA)>
  416. <!-- Photograph property. Value is either a BASE64 encoded
  417. binary value or a URI to the external content. -->
  418. <!ELEMENT PHOTO ((TYPE, BINVAL) | EXTVAL)>
  419. <!-- Birthday property. Value must be an ISO 8601 formatted
  420. date or date/time value. -->
  421. <!ELEMENT BDAY (#PCDATA)>
  422. <!-- Structured address property. Address components with
  423. multiple values must be specified as a comma separated list
  424. of values. -->
  425. <!ELEMENT ADR (
  426. HOME?,
  427. WORK?,
  428. POSTAL?,
  429. PARCEL?,
  430. (DOM | INTL)?,
  431. PREF?,
  432. POBOX?,
  433. EXTADD?,
  434. STREET?,
  435. LOCALITY?,
  436. REGION?,
  437. PCODE?,
  438. CTRY?
  439. )>
  440. <!ELEMENT POBOX (#PCDATA)>
  441. <!ELEMENT EXTADD (#PCDATA)>
  442. <!ELEMENT STREET (#PCDATA)>
  443. <!ELEMENT LOCALITY (#PCDATA)>
  444. <!ELEMENT REGION (#PCDATA)>
  445. <!ELEMENT PCODE (#PCDATA)>
  446. <!ELEMENT CTRY (#PCDATA)>
  447. <!-- Address label property. -->
  448. <!ELEMENT LABEL (
  449. HOME?,
  450. WORK?,
  451. POSTAL?,
  452. PARCEL?,
  453. (DOM | INTL)?,
  454. PREF?,
  455. LINE+
  456. )>
  457. <!-- Individual label lines. -->
  458. <!ELEMENT LINE (#PCDATA)>
  459. <!-- Telephone number property. -->
  460. <!ELEMENT TEL (
  461. HOME?,
  462. WORK?,
  463. VOICE?,
  464. FAX?,
  465. PAGER?,
  466. MSG?,
  467. CELL?,
  468. VIDEO?,
  469. BBS?,
  470. MODEM?,
  471. ISDN?,
  472. PCS?,
  473. PREF?,
  474. NUMBER
  475. )>
  476. <!-- Phone number value. -->
  477. <!ELEMENT NUMBER (#PCDATA)>
  478. <!-- Email address property. Default type is INTERNET. -->
  479. <!ELEMENT EMAIL (
  480. HOME?,
  481. WORK?,
  482. INTERNET?,
  483. PREF?,
  484. X400?,
  485. USERID
  486. )>
  487. <!ELEMENT USERID (#PCDATA)>
  488. <!-- NOTE: the following element was added by the Jabber
  489. project (now XMPP Standards Foundation) to
  490. handle Jabber IDs; the value must be in the
  491. form of user@host -->
  492. <!ELEMENT JABBERID (#PCDATA)>
  493. <!-- Mailer (e.g., Mail User Agent Type) property. -->
  494. <!ELEMENT MAILER (#PCDATA)>
  495. <!-- Time zone's Standard Time UTC offset. Value must be an
  496. ISO 8601 formatted UTC offset. -->
  497. <!ELEMENT TZ (#PCDATA)>
  498. <!-- Geographical position. Values are the decimal degress of
  499. LATitude and LONgitude. The value should be specified to
  500. six decimal places.-->
  501. <!ELEMENT GEO (LAT, LON)>
  502. <!-- Latitude value. -->
  503. <!ELEMENT LAT (#PCDATA)>
  504. <!-- Longitude value. -->
  505. <!ELEMENT LON (#PCDATA)>
  506. <!-- Title property. -->
  507. <!ELEMENT TITLE (#PCDATA)>
  508. <!-- Role property. -->
  509. <!ELEMENT ROLE (#PCDATA)>
  510. <!-- Organization logo property. -->
  511. <!ELEMENT LOGO ((TYPE, BINVAL) | EXTVAL)>
  512. <!-- Administrative agent property. -->
  513. <!ELEMENT AGENT (vCard | EXTVAL)>
  514. <!-- Organizational name and units property. -->
  515. <!ELEMENT ORG (ORGNAME, ORGUNIT*)>
  516. <!ELEMENT ORGNAME (#PCDATA)>
  517. <!ELEMENT ORGUNIT (#PCDATA)>
  518. <!-- Application specific categories property. -->
  519. <!ELEMENT CATEGORIES (KEYWORD+)>
  520. <!ELEMENT KEYWORD (#PCDATA)>
  521. <!-- Commentary note property. -->
  522. <!ELEMENT NOTE (#PCDATA)>
  523. <!-- Identifier of product that generated the vCard property. -->
  524. <!ELEMENT PRODID (#PCDATA)>
  525. <!-- Last revised property. The value must be an
  526. ISO 8601 formatted UTC date/time. -->
  527. <!ELEMENT REV (#PCDATA)>
  528. <!-- Sort string property. -->
  529. <!ELEMENT SORT-STRING (#PCDATA)>
  530. <!-- Formatted name pronunciation property. The value is
  531. either a textual phonetic pronunciation, a BASE64
  532. encoded binary digital audio pronunciation or a URI to
  533. an external binary digital audio pronunciation.-->
  534. <!ELEMENT SOUND (PHONETIC | BINVAL | EXTVAL)>
  535. <!-- Textual phonetic pronunciation. -->
  536. <!ELEMENT PHONETIC (#PCDATA)>
  537. <!-- Unique identifier property. -->
  538. <!ELEMENT UID (#PCDATA)>
  539. <!-- Directory URL property. -->
  540. <!ELEMENT URL (#PCDATA)>
  541. <!-- NOTE: the following element was added by the Jabber
  542. project (now XMPP Standards Foundation) to
  543. handle free-form descriptive text. -->
  544. <!ELEMENT DESC (#PCDATA)>
  545. <!-- Privacy classification property. -->
  546. <!ELEMENT CLASS (PUBLIC | PRIVATE | CONFIDENTIAL)>
  547. <!ELEMENT PUBLIC EMPTY>
  548. <!ELEMENT PRIVATE EMPTY>
  549. <!ELEMENT CONFIDENTIAL EMPTY>
  550. <!-- Authentication credential or encryption key property. -->
  551. <!ELEMENT KEY (TYPE?, CRED)>
  552. <!ELEMENT CRED (#PCDATA)>
  553. <!-- ==== -->
  554. <!-- Common elements. -->
  555. <!-- Addressing type indicators. -->
  556. <!ELEMENT HOME EMPTY>
  557. <!ELEMENT WORK EMPTY>
  558. <!ELEMENT POSTAL EMPTY>
  559. <!ELEMENT PARCEL EMPTY>
  560. <!ELEMENT DOM EMPTY>
  561. <!ELEMENT INTL EMPTY>
  562. <!ELEMENT PREF EMPTY>
  563. <!ELEMENT VOICE EMPTY>
  564. <!ELEMENT FAX EMPTY>
  565. <!ELEMENT PAGER EMPTY>
  566. <!ELEMENT MSG EMPTY>
  567. <!ELEMENT CELL EMPTY>
  568. <!ELEMENT VIDEO EMPTY>
  569. <!ELEMENT BBS EMPTY>
  570. <!ELEMENT MODEM EMPTY>
  571. <!ELEMENT ISDN EMPTY>
  572. <!ELEMENT PCS EMPTY>
  573. <!ELEMENT INTERNET EMPTY>
  574. <!ELEMENT X400 EMPTY>
  575. <!-- Format type parameter. -->
  576. <!ELEMENT TYPE (#PCDATA)>
  577. <!-- Base64 encoded binary value. -->
  578. <!ELEMENT BINVAL (#PCDATA)>
  579. <!-- URI to external binary value -->
  580. <!ELEMENT EXTVAL (#PCDATA)>
  581. <!-- ==== -->
  582. ]]></code>
  583. </section1>
  584. </xep>