XEP-0292: vCard4 Over XMPP

Abstract:This document specifies an XMPP extension for use of the vCard4 XML format in XMPP systems, with the intent of obsoleting the vcard-temp format.
Authors:Peter Saint-Andre, Samantha Mizzi
Copyright:© 1999 - 2011 XMPP Standards Foundation. SEE LEGAL NOTICES.
Status:Experimental
Type:Standards Track
Version:0.5
Last Updated:2011-06-24

WARNING: This Standards-Track document is Experimental. Publication as an XMPP Extension Protocol does not imply approval of this proposal by the XMPP Standards Foundation. Implementation of the protocol described herein is encouraged in exploratory implementations, but production systems are advised to carefully consider whether it is appropriate to deploy implementations of this protocol before it advances to a status of Draft.


Table of Contents


1. Introduction
2. Requirements
3. Reuse of vCard4
4. IQ-Based Publication and Retrieval
    4.1. Retrieval
    4.2. Publication
5. Event Notifications
    5.1. Location
    5.2. Subscribing to vCard Notifications
    5.3. Receiving a vCard Notification
6. vCards of Automated Entities
7. Security Considerations
8. IANA Considerations
9. Mapping from vcard-temp to vCard4
    9.1. Properties Defined in vcard-temp but not in vCard3 or vCard4
       9.1.1. DESC
       9.1.2. JABBERID
    9.2. Properties Defined Incorrectly in vcard-temp
       9.2.1. KEY
       9.2.2. SOUND
    9.3. Properties Defined Differently in vcard-temp, vCard3, and vCard4
       9.3.1. ADR
       9.3.2. AGENT
       9.3.3. ORG
       9.3.4. SORT-STRING
       9.3.5. TEL
    9.4. Properties Defined Similarly in vcard-temp, vCard3, and vCard4
    9.5. Properties Defined in vCard3 but Removed from vCard4
10. Migration Tools
    10.1. Extensible Stylesheet Language Transformation (XSLT) from vcard-temp to vCard4
    10.2. Example of vcard-temp Data
    10.3. Example of vCard XML Data
11. Acknowledgements

Appendices
    A: Document Information
    B: Author Information
    C: Legal Notices
    D: Relation to XMPP
    E: Discussion Venue
    F: Requirements Conformance
    G: Notes
    H: Revision History


1. Introduction

Since 1999, the Jabber/XMPP community has used an interim, unofficial XML representation of vCard data for personal contacts, called vcard-temp [1]. Recently, the IETF has upgraded vCard from vCard3 to vCard4 [2], and at the same time has defined vCard4 XML [3] as an official XML format for vCard4. This document specifies an XMPP extension for use of the vCard4 XML format in XMPP systems, with the intent of obsoleting the vcard-temp format. Primarily this document defines the encapsulation method itself; secondarily it also defines transport methods and a mapping to the vcard-temp format for migration by clients and servers.

2. Requirements

This specification was designed with the following requirements in mind.

  1. Reuse vCard4 as defined in draft-ietf-vcarddav-vcardrev.
  2. Reuse the vCard4 XML format as defined in draft-ietf-vcarddav-vcardxml.
  3. Ensure that clients and servers can easily migrate from vcard-temp to the new encapsulation format.
  4. Notify interested parties of changes to vCard data using standard XMPP extensions, specifically Personal Eventing Protocol [4].
  5. Support vCards for non-human entities such as XMPP servers and Multi-User Chat [5] rooms.
  6. Enable XMPP servers to store vCard4 XML data in LDAP directories if desired.

3. Reuse of vCard4

Because there is now an XML namespace for the official vCard format, we can simply re-use that namespace: "urn:ietf:params:xml:ns:vcard-4.0".

The vCard XML format defined at the IETF specifies that the root element is <vcards/>, where the only defined child element is <vcard/>. For use in XMPP, we specify that the root element shall be <vcard/>, not <vcards/>.

4. IQ-Based Publication and Retrieval

As in XEP-0054, the primary method for publishing and retrieving vCards is the XMPP <iq/> stanza.

4.1 Retrieval

An XMPP entity retrieves the vCard of another entity (or itself) by sending an IQ-get to the target entity containing a <vcard/> child element (note the lowercase "c"!) qualified by the 'urn:ietf:params:xml:ns:vcard-4.0' namespace.

Example 1. vCard Retrieval Request

<iq from='samizzi@cisco.com/foo'
    id='bx81v356'
    to='stpeter@jabber.org'
    type='get'>
  <vcard xmlns='urn:ietf:params:xml:ns:vcard-4.0'/>
</iq>
    

If a vCard exists for the target entity, the responsible entity (e.g., the XMPP server that hosts the account for a bare JID) MUST return the data in an IQ-result:

Example 2. Server Returns vCard

<iq from='stpeter@jabber.org'
    id='bx81v356'
    to='samizzi@cisco.com/foo'
    type='result'>
  <vcard xmlns="urn:ietf:params:xml:ns:vcard-4.0">
    <fn><text>Peter Saint-Andre</text></fn>
    <n><surname>Saint-Andre</surname><given>Peter</given><middle></middle></n>
    <nickname><text>stpeter</text></nickname>
    <nickname><text>psa</text></nickname>
    <photo><uri>http://me.stpeter.im/images/stpeter_oscon.jpg</uri></photo>
    <bday><date>1966-08-06</date></bday>
    <adr>
      <parameters>
        <type><text>work</text><text>voice</text></type>
        <pref><integer>1</integer></pref>
      </parameters>
      <ext>Suite 600</ext>
      <street>1899 Wynkoop Street</street>
      <locality>Denver</locality>
      <region>CO</region>
      <code>80202</code>
      <country>USA</country>
    </adr>
    <adr>
      <parameters><type><text>home</text></type></parameters>
      <ext></ext>
      <street></street>
      <locality>Denver</locality>
      <region>CO</region>
      <code>80210</code>
      <country>USA</country>
    </adr>
    <tel>
      <parameters>
        <type><text>work</text><text>voice</text></type>
        <pref><integer>1</integer></pref>
      </parameters>
      <uri>tel:+1-303-308-3282</uri>
    </tel>
    <tel>
      <parameters><type><text>work</text><text>fax</text></type></parameters>
      <uri>tel:+1-303-308-3219</uri>
    </tel>
    <tel>
      <parameters><type><text>home</text><text>voice</text></type></parameters>
      <uri>tel:+1-303-555-1212</uri>
    </tel>
    <geo><uri>geo:39.59,-105.01</uri></geo>
    <title><text>Executive Director</text></title>
    <role><text>Patron Saint</text></role>
    <org>
      <parameters><type><text>work</text></type></parameters>
      <text>XMPP Standards Foundation</text>
    </org>
    <url><uri>https://stpeter.im/</uri></url>
    <note>
      <text>
      More information about me is located on my 
      personal website: https://stpeter.im/
      </text>
    </note>
    <gender><sex><text>M</text></sex></gender>
    <lang>
      <parameters><pref>1</pref></parameters>
      <language-tag>en</language-tag>
    </lang>
    <email>
      <parameters><type><text>work</text></type></parameters>
      <text>psaintan@cisco.com</text>
    </email>
    <email>
      <parameters><type><text>home</text></type></parameters>
      <text>stpeter@jabber.org</text>
    </email>
    <impp>
      <parameters><type><text>work</text></type></parameters>
      <uri>xmpp:psaintan@cisco.com</uri>
    </impp>
    <impp>
      <parameters><type><text>home</text></type></parameters>
      <uri>xmpp:stpeter@jabber.org</uri>
    </impp>
    <key>
      <uri>https://stpeter.im/stpeter.asc</uri>
    </key>
  </vcard>
</iq>
    

If no vCard exists, the server MUST return an IQ-result containing an empty <vcard/> element.

Example 3. No vCard (empty element)

<iq from='stpeter@jabber.org'
    id='bx81v356'
    to='samizzi@cisco.com/foo'
    type='result'>
  <vcard xmlns='urn:ietf:params:xml:ns:vcard-4.0'/>
</iq>
    

4.2 Publication

An XMPP entity publishes or updates its vCard by sending an IQ-set to itself, containing a <vcard/> child element qualified by the 'urn:ietf:params:xml:ns:vcard-4.0' namespace.

Example 4. vCard Publication Request

<iq from='stpeter@jabber.org/squire
    id='h3vz319m'
    to='stpeter@jabber.org'
    type='set'>
  <vcard xmlns='urn:ietf:params:xml:ns:vcard-4.0'>
    [...]
  </vcard>
</iq>
    

If no error occurs, the responsible entity returns an IQ-result.

Example 5. Server Acknowledges Publication

<iq from='stpeter@jabber.org'
    id='bx81v356'
    to='stpeter@jabber.org/squire'
    type='result'/>
    

Note: An entity MAY have authorization to update the vCard of another entity (e.g., a server administrator might have authorization to modify the server's vCard).

5. Event Notifications

Publish-Subscribe [6] provides a way to subscribe to events, and Personal Eventing Protocol [7] defines a pubsub profile for events associated with instant messaging (IM) accounts. If PEP is supported by an IM server, it can be used to automatically generate event notifications when a user's vCard is modified.

5.1 Location

The canonical location for notifications regarding a user's vCard is a pubsub node whose name is "urn:xmpp:vcard4".

5.2 Subscribing to vCard Notifications

Let us imagine that Juliet wishes to receive the updates that Romeo publishes to his vCard. She has two options:

  1. Implicitly subscribe by advertising support for "urn:xmpp:vcard4+notify" in her Entity Capabilities [8] data. Romeo's PEP service then automatically sends vCard updates to her when it receives presence from her, until and unless she sends presence of type unavailable or stops advertising an interest in vCard updates. This is in accordance with XEP-0060, section 6.1.
  2. Explicitly subscribe by sending a formal subscription request to the "urn:xmpp:vcard4" node at Romeo's JabberID. Romeo's PEP service may send her all vCard updates even if she is offline at the time (depending on service policies regarding presence integration).

5.3 Receiving a vCard Notification

Because Juliet has sent presence to Romeo including Entity Capabilities data that includes the "urn:xmpp:vcard4+notify" feature, Romeo's XMPP server will send a PEP notification to Juliet. The notification can include an XMPP message body for backwards-compatibility with XMPP clients that are not pubsub-capable (see Message Body). This is in accordance with XEP-0060, second 6.1.7.

Example 6. Receiving a vCard publication/update

<message from='romeo@montague.lit'
         to='juliet@capulet.lit'
         type='headline'>
  <event xmlns='http://jabber.org/protocol/pubsub#event'>
    <items node='urn:xmpp:vcard4'>
      <item id='current'/>
    </items>
  </event>
</message>
    

Note: There is no payload, because this is a pure notification (the receiver needs to retrieve the vCard using an IQ-get as described earlier..

6. vCards of Automated Entities

Traditionally, vCards have been used on the XMPP network for entities other than human users, e.g. by XMPP servers and chatrooms. When such automated entities use vCards, it is RECOMMENDED to specify a value of "thing" for the vCard4 KIND property vCard KIND:thing [9]. An example follows.

Example 7. vCard for a Thing

<iq from='jabber.org'
    id='yhx51c35'
    to='samizzi@cisco.com/foo'
    type='result'>
  <vcard xmlns='urn:ietf:params:xml:ns:vcard-4.0'>
    <fn><text>jabber.org IM service</text></fn>
    <url><uri>http://www.jabber.org/</uri></url>
    <lang>
      <parameters><pref>1</pref></parameters>
      <language-tag>en</language-tag>
    </lang>
    <email><text>xmpp@jabber.org</text></email>
    <impp><uri>xmpp:jabber.org</uri></impp>
    <logo><uri>http://www.jabber.org/images/logo.png</uri></logo>
    <geo><uri>geo:42.25,-91.05</uri></geo>
    <tz><text>America/Chicago</text></tz>
    <kind><text>thing</text></kind>
  </vcard>
</iq>
    

7. Security Considerations

The vCard information published to one's XMPP 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).

8. IANA Considerations

This document does not require interaction with the Internet Assigned Numbers Authority (IANA) [10].

9. Mapping from vcard-temp to vCard4

This section provides a more detailed description of mapping vcard-temp properties to vcard4 properties.

9.1 Properties Defined in vcard-temp but not in vCard3 or vCard4

9.1.1 DESC

The vcard-temp specification defined a <DESC/> element. This element was not part of the vCard3 schema. Mapping the vcard-temp <DESC/> element to the vCard4 NOTE property is appropriate.

Example 8. Deprecated DESC element

<DESC>
   More information about me is located on my 
   personal website: https://stpeter.im/
</DESC>
      

Example 9. NOTE property

<note>
  <text>
     More information about me is located on my 
     personal website: https://stpeter.im/
  </text>
</note>
      

9.1.2 JABBERID

The vcard-temp specification defined a <JABBERID/> element:

Example 10. Deprecated JABBERID element

<JABBERID>stpeter@jabber.org</JABBERID>
      

Although the JABBERID field was not part of the vCard3 schema and was simply hacked into vcard-temp, RFC 4770 [11] defined an IMPP property for instant messaging and presence addresses, which was ported to vCard4. In the vCard4 XML format, the IMPP property for a JabberID would be as follows.

Example 11. IMPP property

<impp>
  <uri>xmpp:stpeter@jabber.org</uri>
</impp>
      

9.2 Properties Defined Incorrectly in vcard-temp

Several of the properties in vcard-temp are defined differently in vCard3. In fact, the definitions even differ from those provisionally made in the so-called "Dawson drafts" from which vcard-temp was supposedly derived (for reference, the last of these is archived at <http://www.watersprings.org/pub/id/draft-dawson-vcard-xml-dtd-03.txt>). The reasons for these discrepancies are unknown. However, care must be taken in correctly mapping these properties from vcard-temp to vCard4.

9.2.1 KEY

The DTD in XEP-0054 provided this definition for the KEY element:

<!ELEMENT KEY (TYPE?, CRED)>
      

However, the DTD in the final Dawson draft provided the following definition:

<!ELEMENT key (extref | b64bin)>
      

The relevant RelaxNG definition in vCard4 XML is as follows:

property-key = element key {
    (value-uri | value-text)
  }
      

The source of the spurious <TYPE/> and <CRED/> elements is unknown. Here we map the vcard-temp <CRED/> element to the vCard4 value-text construction.

9.2.2 SOUND

The DTD in XEP-0054 provided this definition for the SOUND element:

<!ELEMENT SOUND (PHONETIC | BINVAL | EXTVAL)>
      

However, the DTD in the final Dawson draft provided the following definition:

<!ELEMENT sound (extref | b64bin)>
      

The source of the spurious <PHONETIC/> element is unknown. However, it does not exist in vCard4 and therefore is simply discarded when mapping.

9.3 Properties Defined Differently in vcard-temp, vCard3, and vCard4

The following properties are defined differently in vcard-temp and vCard4. As a result, the mappings are workable but might not preserve all information that could have been contained in vcard-temp data.

9.3.1 ADR

The following address type values allowed in vCard3 were removed from vCard4:

9.3.2 AGENT

In vCard3 and vcard-temp, the AGENT property was allowed to contain the inline vCard of someone who could act as an agent for the primary owner of the referenced vCard. In vCard4, inline vCards are disallowed. Therefore only pointers to external vCard objects are now allowed, by means of a URI.

9.3.3 ORG

The ORGUNIT property was removed from vCard4, with the result that the ORGNAME property becomes the only value for an ORG.

9.3.4 SORT-STRING

The SORT-STRING property from vCard3 was renamed to SORT-AS in vCard4.

9.3.5 TEL

The following telephony type values allowed in vCard3 were removed from vCard4:

In addition, in vCard4 the telephone number is represented as a tel: URI, not by means of a NUMBER property.

9.4 Properties Defined Similarly in vcard-temp, vCard3, and vCard4

The following properties are defined similarly in vcard-temp, vCard3, and vCard4, and the mappings are fairly straightforward (a future version of this document might provide more detailed narrative descriptions of the mappings).

9.5 Properties Defined in vCard3 but Removed from vCard4

The following properties were defined in vCard3 but were removed from vCard4:

There is no mapping from these properties to vCard4.

10. Migration Tools

This section contains three tools that are intended to help developers in migrating from vcard-temp to vCard4 XML:

  1. An Extensible Stylesheet Language Transformation (XSLT) script for automatically translating the vcard-temp XML format into the vCard4 XML format.
  2. An example of vcard-temp data that uses most of the elements defined in XEP-0054 that can be mapped to vCard4 properties (note that some of these elements were never used in practice).
  3. An example of vCard4 XML data showing the transformation of the vcard-temp example using the XSLT stylesheet.

The tools are purely informational and are not a normative part of this specification.

10.1 Extensible Stylesheet Language Transformation (XSLT) from vcard-temp to vCard4

<?xml version='1.0' encoding='UTF-8'?>

<!--

Copyright (c) 1999 - 2011 XMPP Standards Foundation

Permission is hereby granted, free of charge, to any 
person obtaining a copy of this software and 
associated documentation files (the "Software"), to 
deal in the Software without restriction, including 
without limitation the rights to use, copy, modify, 
merge, publish, distribute, sublicense, and/or sell 
copies of the Software, and to permit persons to whom 
the Software is furnished to do so, subject to the 
following conditions:

The above copyright notice and this permission notice 
shall be included in all copies or substantial portions 
of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF 
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED 
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A 
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT 
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 
ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE 
OR OTHER DEALINGS IN THE SOFTWARE.

-->

<!-- Author: stpeter@jabber.org -->

<!-- Version: 0.0.2 -->

<!-- Last Updated: 2011-06-22 -->

<!-- NOTE: This is a provisional mapping with known
     errors. It is subject to change without notice.
     Please use this only for experimental purposes!
     You have been warned!! -->

<xsl:stylesheet 
     xmlns='urn:ietf:params:xml:ns:vcard-4.0' 
     xmlns:xsl='http://www.w3.org/1999/XSL/Transform' 
     version='1.0'>

  <xsl:output method='xml'/>

  <xsl:template match='/'>
    <vcard>

      <!-- BEGIN VARIABLES -->

      <!-- in case we need them, count instances of the vcard-temp 
           elements per the DTD in XEP-0054 -->

      <xsl:variable name='FN.count' select='count(/vCard/FN)'/>
      <xsl:variable name='N.count' select='count(/vCard/N)'/>
      <xsl:variable name='NICKNAME.count' select='count(/vCard/NICKNAME)'/>
      <xsl:variable name='PHOTO.count' select='count(/vCard/PHOTO)'/>
      <xsl:variable name='BDAY.count' select='count(/vCard/BDAY)'/>
      <xsl:variable name='ADR.count' select='count(/vCard/ADR)'/>
      <xsl:variable name='LABEL.count' select='count(/vCard/LABEL)'/>
      <xsl:variable name='TEL.count' select='count(/vCard/TEL)'/>
      <xsl:variable name='EMAIL.count' select='count(/vCard/EMAIL)'/>
      <xsl:variable name='JABBERID.count' select='count(/vCard/JABBERID)'/>
      <xsl:variable name='MAILER.count' select='count(/vCard/MAILER)'/>
      <xsl:variable name='TZ.count' select='count(/vCard/TZ)'/>
      <xsl:variable name='GEO.count' select='count(/vCard/GEO)'/>
      <xsl:variable name='TITLE.count' select='count(/vCard/TITLE)'/>
      <xsl:variable name='ROLE.count' select='count(/vCard/ROLE)'/>
      <xsl:variable name='LOGO.count' select='count(/vCard/LOGO)'/>
      <xsl:variable name='AGENT.count' select='count(/vCard/AGENT)'/>
      <xsl:variable name='ORG.count' select='count(/vCard/ORG)'/>
      <xsl:variable name='CATEGORIES.count' select='count(/vCard/CATEGORIES)'/>
      <xsl:variable name='NOTE.count' select='count(/vCard/NOTE)'/>
      <xsl:variable name='PRODID.count' select='count(/vCard/PRODID)'/>
      <xsl:variable name='REV.count' select='count(/vCard/REV)'/>
      <xsl:variable name='SORT-STRING.count' select='count(/vCard/SORT-STRING)'/>
      <xsl:variable name='SOUND.count' select='count(/vCard/SOUND)'/>
      <xsl:variable name='UID.count' select='count(/vCard/UID)'/>
      <xsl:variable name='URL.count' select='count(/vCard/URL)'/>
      <xsl:variable name='CLASS.count' select='count(/vCard/CLASS)'/>
      <xsl:variable name='KEY.count' select='count(/vCard/KEY)'/>
      <xsl:variable name='DESC.count' select='count(/vCard/DESC)'/>

      <!-- END VARIABLES -->

      <!-- BEGIN VCARD4 OUTPUT -->

      <!-- FN is required -->

      <fn><text><xsl:value-of select='/vCard/FN'/></text></fn>

      <!-- N is required -->

      <xsl:apply-templates select='/vCard/N'/>

      <!-- NICKNAME can be included one or more times -->

      <xsl:for-each select='/vCard/NICKNAME'>
        <nickname><text><xsl:value-of select='.'/></text></nickname>
      </xsl:for-each>

      <!-- PHOTO can be included one or more times -->
      <!-- content is either a pointer to a URL or inline binary,
           which is mapped to a data: URI in vCard4 -->

      <xsl:for-each select='/vCard/PHOTO'>
        <xsl:variable name='PHOTO.ext' select='count(EXTVAL)'/>
        <xsl:variable name='PHOTO.type' select='TYPE'/>
        <xsl:choose>
          <xsl:when test='$PHOTO.ext=1'>
            <photo><uri><xsl:value-of select='EXTVAL'/></uri></photo>
          </xsl:when>
          <xsl:otherwise>
            <photo><uri><xsl:text>data:</xsl:text><xsl:value-of select='TYPE'/><xsl:text>;</xsl:text><xsl:value-of select='BINVAL'/></uri></photo>
          </xsl:otherwise>
        </xsl:choose>
      </xsl:for-each>

      <!-- BDAY can be included once -->

      <xsl:if test='$BDAY.count=1'>
        <bday><date><xsl:value-of select='/vCard/BDAY'/></date></bday>
      </xsl:if>

      <!-- ADR can be included one or more times -->

      <xsl:apply-templates select='/vCard/ADR'/>

      <!-- NOTE: vcard-temp allowed a LABEL element, 
           but it was removed from vCard4 -->

      <!-- one or more TEL elements can be included -->

      <!-- FIXME -->

      <xsl:apply-templates select='/vCard/TEL'/>

      <!-- one or more EMAIL elements can be included -->

      <xsl:apply-templates select='/vCard/EMAIL'/>

      <!-- JABBERID can be included one or more times -->
      <!-- we map this to the vCard4 IMPP property -->

      <xsl:for-each select='/vCard/JABBERID'>
        <impp><uri><xsl:text>xmpp:</xsl:text><xsl:value-of select='.'/></uri></impp>
      </xsl:for-each>

      <!-- NOTE: vcard-temp allowed a MAILER element, 
           but it was removed from vCard4 -->

      <!-- one or more TZ elements can be included -->
      <xsl:for-each select='/vCard/TZ'>
        <tz><text><xsl:value-of select='.'/></text></tz>
      </xsl:for-each>

      <!-- one or more GEO elements can be included -->
      <xsl:for-each select='/vCard/GEO'>
        <geo><uri><xsl:text>geo:</xsl:text><xsl:value-of select='LAT'/><xsl:text>,</xsl:text><xsl:value-of select='LON'/></uri></geo>
      </xsl:for-each>

      <!-- one or more TITLE elements can be included -->
      <xsl:for-each select='/vCard/TITLE'>
        <title><text><xsl:value-of select='.'/></text></title>
      </xsl:for-each>

      <!-- one or more ROLE elements can be included -->
      <xsl:for-each select='/vCard/ROLE'>
        <role><text><xsl:value-of select='.'/></text></role>
      </xsl:for-each>

      <!-- one or more LOGO elements can be included -->
      <!-- content is either a pointer to a URL or inline binary,
           which is mapped to a data: URI in vCard4 -->
      <xsl:for-each select='/vCard/LOGO'>
        <xsl:variable name='LOGO.ext' select='count(EXTVAL)'/>
        <xsl:variable name='LOGO.type' select='TYPE'/>
        <xsl:choose>
          <xsl:when test='$LOGO.ext=1'>
            <logo><uri><xsl:value-of select='EXTVAL'/></uri></logo>
          </xsl:when>
          <xsl:otherwise>
            <logo><uri><xsl:text>data:</xsl:text><xsl:value-of select='TYPE'/><xsl:text>;</xsl:text><xsl:value-of select='BINVAL'/></uri></logo>
          </xsl:otherwise>
        </xsl:choose>
      </xsl:for-each>

      <!-- one or more AGENT elements can be included -->
      <!-- however, inline vcards are not supported in vCard4 -->
      <!-- the relevant vCard4 property is RELATED -->
      <!-- only EXTVAL is supported now via URIs -->
      <!-- NOTE: this element was probably unused in vcard-temp -->

      <xsl:for-each select='/vCard/AGENT'>
        <xsl:variable name='AGENT.ext' select='count(EXTVAL)'/>
        <xsl:if test='$AGENT.ext=1'>
          <agent><uri><xsl:value-of select='EXTVAL'/></uri></agent>
        </xsl:if>
      </xsl:for-each>

      <!-- one or more ORG elements can be included -->
      <!-- NOTE: ORGUNIT is no longer used in vcard4 -->

      <xsl:for-each select='/vCard/ORG'>
        <org>
          <xsl:variable name='ORGNAME.count' select='count(ORGNAME)'/>
          <xsl:if test='$ORGNAME.count=1'>
            <text><xsl:value-of select='ORGNAME'/></text>
          </xsl:if>
        </org>
      </xsl:for-each>

      <!-- one or more CATEGORIES elements can be included -->
      <!-- NOTE: this element was probably unused in vcard-temp -->

      <xsl:for-each select='/vCard/CATEGORIES'>
        <categories><text><xsl:value-of select='.'/></text></categories>
      </xsl:for-each>

      <!-- one or more NOTE elements can be included -->
      <!-- NOTE: this element was probably unused in vcard-temp -->

      <xsl:for-each select='/vCard/NOTE'>
        <note><text><xsl:value-of select='.'/></text></note>
      </xsl:for-each>

      <!-- PRODID can be included exactly once -->
      <!-- NOTE: this element was probably unused in vcard-temp -->

      <xsl:if test='$PRODID.count=1'>
        <prodid><text><xsl:value-of select='.'/></text></prodid>
      </xsl:if>

      <!-- REV can be included exactly once -->
      <!-- NOTE: this element was probably unused in vcard-temp -->

      <xsl:if test='$REV.count=1'>
        <rev><timestamp><xsl:value-of select='.'/></timestamp></rev>
      </xsl:if>

      <!-- one or more SORT-STRING elements can be included -->
      <!-- this element maps to SORT-AS in vCard4 -->
      <xsl:for-each select='/vCard/SORT-STRING'>
        <sort-as><xsl:value-of select='.'/></sort-as>
      </xsl:for-each>

      <!-- one or more SOUND elements can be included -->
      <!-- NOTE: for some reason, vcard-temp allowed a <PHONETIC/>
           child element, but that was not documented in the
           original Dawson I-Ds and is not supported in vCard4 -->

      <xsl:for-each select='/vCard/SOUND'>
        <xsl:variable name='SOUND.ext' select='count(EXTVAL)'/>
        <xsl:variable name='SOUND.bin' select='count(BINVAL)'/>
        <xsl:choose>
          <xsl:when test='$SOUND.ext=1'>
            <sound><uri><xsl:value-of select='EXTVAL'/></uri></sound>
          </xsl:when>
          <xsl:when test='$SOUND.ext=1'>
            <sound><uri><xsl:text>data:audio/basic;base64,</xsl:text><xsl:value-of select='BINVAL'/></uri></sound>
          </xsl:when>
          <xsl:otherwise>
          </xsl:otherwise>
        </xsl:choose>
      </xsl:for-each>

      <!-- UID can be included exactly once -->

      <xsl:if test='$UID.count=1'>
        <uid><uri><xsl:value-of select='/vCard/UID'/></uri></uid>
      </xsl:if>

      <!-- URL can be included one or more times -->

      <xsl:for-each select='/vCard/URL'>
        <url><uri><xsl:value-of select='.'/></uri></url>
      </xsl:for-each>

      <!-- NOTE: vcard-temp allowed a CLASS element, 
           but it was removed from vCard4 -->

      <!-- KEY can be included one or more times -->

      <xsl:for-each select='/vCard/KEY'>
        <key><text><xsl:value-of select='CRED'/></text></key>
      </xsl:for-each>

      <!-- DESC can be included one or more times -->
      <!-- this existed in vcard-temp but not vCard3 -->
      <!-- mapped to the NOTE element -->

      <xsl:for-each select='/vCard/DESC'>
        <note><text><xsl:value-of select='.'/></text></note>
      </xsl:for-each>

    </vcard>

  </xsl:template>

  <xsl:template match='N'>
    <n>
      <xsl:variable name='FAMILY.count' select='count(FAMILY)'/>
      <xsl:variable name='GIVEN.count' select='count(GIVEN)'/>
      <xsl:variable name='MIDDLE.count' select='count(MIDDLE)'/>
      <xsl:variable name='PREFIX.count' select='count(PREFIX)'/>
      <xsl:variable name='SUFFIX.count' select='count(SUFFIX)'/>
      <xsl:if test='$FAMILY.count=1'>
        <surname><xsl:value-of select='FAMILY'/></surname>
      </xsl:if>
      <xsl:if test='$GIVEN.count=1'>
        <given><xsl:value-of select='GIVEN'/></given>
      </xsl:if>
      <xsl:if test='$MIDDLE.count=1'>
        <middle><xsl:value-of select='MIDDLE'/></middle>
      </xsl:if>
      <xsl:if test='$PREFIX.count=1'>
        <prefix><xsl:value-of select='PREFIX'/></prefix>
      </xsl:if>
      <xsl:if test='$SUFFIX.count=1'>
        <suffix><xsl:value-of select='SUFFIX'/></suffix>
      </xsl:if>
    </n>
  </xsl:template>

  <xsl:template match='ADR'>
    <adr>
      <xsl:variable name='HOME.count' select='count(HOME)'/>
      <xsl:variable name='WORK.count' select='count(WORK)'/>
      <!-- NOTE: vcard-temp allowed address types of POSTAL, PARCEL,
           DOM, and INTL, but they were removed from vCard4 -->
      <xsl:variable name='PREF.count' select='count(PREF)'/>
      <xsl:variable name='POBOX.count' select='count(POBOX)'/>
      <xsl:variable name='EXTADD.count' select='count(EXTADD)'/>
      <xsl:variable name='STREET.count' select='count(STREET)'/>
      <xsl:variable name='LOCALITY.count' select='count(LOCALITY)'/>
      <xsl:variable name='REGION.count' select='count(REGION)'/>
      <xsl:variable name='PCODE.count' select='count(PCODE)'/>
      <!-- NOTE: yes, vcard-temp has CTRY, not COUNTRY -->
      <xsl:variable name='CTRY.count' select='count(CTRY)'/>
      <!-- first we count the number of vCard TYPE parameters -->
      <xsl:variable name='TYPE.count' select='$HOME.count + $WORK.count'/>
      <!-- now we output all the parameters -->
      <xsl:if test='$TYPE.count &gt; 0'>
        <parameters>
          <type>
            <xsl:if test='$HOME.count=1'>
              <text>home</text>
            </xsl:if>
            <xsl:if test='$WORK.count=1'>
              <text>work</text>
            </xsl:if>
          </type>
          <xsl:if test='$PREF.count=1'>
            <pref><integer>1</integer></pref>
          </xsl:if>
        </parameters>
      </xsl:if>
      <xsl:if test='$POBOX.count=1'>
        <pobox><xsl:value-of select='POBOX'/></pobox>
      </xsl:if>
      <xsl:if test='$EXTADD.count=1'>
        <ext><xsl:value-of select='EXTADD'/></ext>
      </xsl:if>
      <xsl:if test='$STREET.count=1'>
        <street><xsl:value-of select='STREET'/></street>
      </xsl:if>
      <xsl:if test='$LOCALITY.count=1'>
        <locality><xsl:value-of select='LOCALITY'/></locality>
      </xsl:if>
      <xsl:if test='$REGION.count=1'>
        <region><xsl:value-of select='REGION'/></region>
      </xsl:if>
      <xsl:if test='$PCODE.count=1'>
        <code><xsl:value-of select='PCODE'/></code>
      </xsl:if>
      <xsl:if test='$CTRY.count=1'>
        <country><xsl:value-of select='CTRY'/></country>
      </xsl:if>
    </adr>
  </xsl:template>

  <xsl:template match='TEL'>
    <tel>
      <xsl:variable name='HOME.count' select='count(HOME)'/>
      <xsl:variable name='WORK.count' select='count(WORK)'/>
      <xsl:variable name='TEXT.count' select='count(TEXT)'/>
      <xsl:variable name='VOICE.count' select='count(VOICE)'/>
      <xsl:variable name='FAX.count' select='count(FAX)'/>
      <xsl:variable name='CELL.count' select='count(CELL)'/>
      <xsl:variable name='VIDEO.count' select='count(VIDEO)'/>
      <xsl:variable name='PAGER.count' select='count(PAGER)'/>
      <xsl:variable name='TEXTPHONE.count' select='count(TEXTPHONE)'/>
      <!-- NOTE: vcard-temp allowed telephony types of MSG, BBS,
           MODEM, ISDN, and PCS but they were removed from vCard4 -->
      <xsl:variable name='PREF.count' select='count(PREF)'/>
      <xsl:variable name='NUMBER.count' select='count(NUMBER)'/>
      <!-- first we count the number of vCard TYPE parameters -->
      <xsl:variable name='TYPE.count' select='$HOME.count + $WORK.count + $TEXT.count + $VOICE.count + $FAX.count + $CELL.count + $VIDEO.count + $PAGER.count + $TEXTPHONE.count'/>
      <!-- now we output all the parameters -->
      <xsl:if test='$TYPE.count &gt; 0'>
        <parameters>
          <type>
            <xsl:if test='$HOME.count=1'>
              <text>home</text>
            </xsl:if>
            <xsl:if test='$WORK.count=1'>
              <text>work</text>
            </xsl:if>
            <xsl:if test='$TEXT.count=1'>
              <text>text</text>
            </xsl:if>
            <xsl:if test='$VOICE.count=1'>
              <text>voice</text>
            </xsl:if>
            <xsl:if test='$FAX.count=1'>
              <text>fax</text>
            </xsl:if>
            <xsl:if test='$CELL.count=1'>
              <text>cell</text>
            </xsl:if>
            <xsl:if test='$VIDEO.count=1'>
              <text>video</text>
            </xsl:if>
            <xsl:if test='$PAGER.count=1'>
              <text>pager</text>
            </xsl:if>
            <xsl:if test='$TEXTPHONE.count=1'>
              <text>texphone</text>
            </xsl:if>
          </type>
          <xsl:if test='$PREF.count=1'>
            <pref><integer>1</integer></pref>
          </xsl:if>
        </parameters>
      </xsl:if>
      <xsl:if test='$NUMBER.count=1'>
        <uri><xsl:text>tel:</xsl:text><xsl:value-of select='NUMBER'/></uri>
      </xsl:if>
    </tel>
  </xsl:template>

  <xsl:template match='EMAIL'>
    <email>
      <xsl:variable name='HOME.count' select='count(HOME)'/>
      <xsl:variable name='WORK.count' select='count(WORK)'/>
      <!-- NOTE: vcard-temp allowed email types of INTERNET
           and X400, but they were never in vCard3 -->
      <xsl:variable name='PREF.count' select='count(PREF)'/>
      <xsl:variable name='USERID.count' select='count(USERID)'/>
      <!-- first we count the number of vCard TYPE parameters -->
      <xsl:variable name='TYPE.count' select='$HOME.count + $WORK.count'/>
      <!-- now we output all the parameters -->
      <xsl:if test='$TYPE.count &gt; 0'>
        <parameters>
          <type>
            <xsl:if test='$HOME.count=1'>
              <text>home</text>
            </xsl:if>
            <xsl:if test='$WORK.count=1'>
              <text>work</text>
            </xsl:if>
          </type>
          <xsl:if test='$PREF.count=1'>
            <pref><integer>1</integer></pref>
          </xsl:if>
        </parameters>
      </xsl:if>
      <xsl:if test='$USERID.count=1'>
        <text><xsl:value-of select='USERID'/></text>
      </xsl:if>
    </email>
  </xsl:template>

</xsl:stylesheet>
    

10.2 Example of vcard-temp Data

<vCard>
  <FN>Peter Saint-Andre</FN>
  <N>
    <FAMILY>Saint-Andre</FAMILY>
    <GIVEN>Peter</GIVEN>
    <MIDDLE/>
  </N>
  <NICKNAME>stpeter</NICKNAME>
  <NICKNAME>psa</NICKNAME>
  <PHOTO><EXTVAL>http://me.stpeter.im/images/stpeter_oscon.jpg</EXTVAL></PHOTO>
  <PHOTO><EXTVAL>http://me.stpeter.im/images/stpeter_hell.jpg</EXTVAL></PHOTO>
  <BDAY>1966-08-06</BDAY>
  <ADR>
    <WORK/>
    <PREF/>
    <EXTADD>Suite 600</EXTADD>
    <STREET>1899 Wynkoop Street</STREET>
    <LOCALITY>Denver</LOCALITY>
    <REGION>CO</REGION>
    <PCODE>80202</PCODE>
    <CTRY>USA</CTRY>
  </ADR>
  <ADR>
    <HOME/>
    <EXTADD/>
    <STREET/>
    <LOCALITY>Denver</LOCALITY>
    <REGION>CO</REGION>
    <PCODE>80210</PCODE>
    <CTRY>USA</CTRY>
  </ADR>
  <TEL><PREF/><WORK/><VOICE/><NUMBER>303-308-3282</NUMBER></TEL>
  <TEL><WORK/><FAX/><NUMBER>303-308-3219</NUMBER></TEL>
  <TEL><HOME/><VOICE/><NUMBER>303-555-1212</NUMBER></TEL>
  <EMAIL><INTERNET/><PREF/><USERID>stpeter@jabber.org</USERID></EMAIL>
  <EMAIL><WORK/><USERID>psaintan@cisco.com</USERID></EMAIL>
  <JABBERID>stpeter@jabber.org</JABBERID>
  <TZ>America/Denver</TZ>
  <GEO><LAT>39.59</LAT><LON>-105.01</LON></GEO>
  <TITLE>Executive Director</TITLE>
  <ROLE>Patron Saint</ROLE>
  <LOGO>
    <TYPE>image/jpeg</TYPE>
    <BINVAL>
/9j/4AAQSkZJRgABAQEASABIAAD//gAXQ3JlYXRlZCB3aXRoIFRoZSBHSU1Q/9sAQwAIBgYHBgUI
BwcHCQkICgwUDQwLCwwZEhMPFB0aHx4dGhwcICQuJ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QZAWJB0/2ipRgWiaQnLsNicDjA6mqaa1DuG2/wAqjqewAqFpp0zRHKNR/eCtel/x
ArKyvVZmEah+9Wvp/gz8Kyspl0cIZ/3bUvi6r/dWVlSZOx4maF/6wvz/ADNOtB/eXf8A8jVlZUcz
aPYXq38EfnUbcfxXyFZWUMQch0LTP4SH+2nX/sn4VlZXqx/VEz7EF19/50bpf8SPgPzrKyuAO4P3
0vx/+oqw7D4D8qysrzcv7jro/9k=
    </BINVAL>
  </LOGO>
  <ORG>
    <ORGNAME>XMPP Standards Foundation</ORGNAME>
    <ORGUNIT/>
  </ORG>
  <URL>https://stpeter.im/</URL>
  <URL>http://www.saint-andre.com/</URL>
  <KEY>
    <CRED>
-----BEGIN PGP PUBLIC KEY BLOCK-----

mQGiBEjXs/wRBADTAryt5hEaXweW+Xdu65otFdMJ7GaJYRhU/tKBLl8cZS2+1Bl9
TmSLfCaF6mnrdYFZzhTJ3W4qBNfT7sCVTQv3LOVPxq2cXiohS2Sjyjbx9eZPoVh7
xP4+T+hqtHYpGXoefHlC1+DRZu/gVhaF+7XqrBSCQ107+lnWGFckR+sLZwCg/UdG
ZeOpeFkKn+UyS473wHA47P8D/iqcBj6JM/fhiPW731SVgCM+uH/Qa5EOPjTKcmLS
Mx1Szyrt2XR+A4NAkwLwH206LI4kkARZM3uelDaLBwS7OdDbvbNlhrOfeUHEB/UW
XGWVSbRC4U+j/47AJwuSEHRsdJhkCVzkWh+pWKNRXmnD/1d81p0bDYUeI+eQVGFV
AfukA/0fY8MMGOlRgDwqbOrhfb00jvw5fRoLgPyVI5TewTU5WUzTIoW5lJ8c4vQc
BVC3J+E87N+j1I6pKrqaEBDIg6c+9fF2yARYH1NIo51rwwEWSa9MSUp6I0C8wosU
psq05MWQdCSM3M8lLdOvb20BW9ghj4MpRwc8JHVswvEKDnuB77QmUGV0ZXIgU2Fp
bnQtQW5kcmUgPHN0cGV0ZXJAc3RwZXRlci5pbT6IYAQTEQIAIAUCSNez/AIbAwYL
CQg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aoRW7110/AJZGvphmJkQDTZtaaJ
oPDMKVXdteSiT2ifnY4thIkAYs6ahhC3t5TN82auf33zWsZYeR8SbZnHrf2rr4ap
/8H23mrDyL5uzKJhmrgytN2IUYM2kfZwdXiVp4FFFhcUIkdCdQcXoQBaTIi/6R9u
60EhC3UQRdJzML4hl7ayTeXWbZAi+Uh5ZbonOpYTy7Kso/cO21VhJRCDVLV/1XeP
V67nkhRKC+pjcSL7LwRmFZ0Um+XF4PTvKIMK34z2WILjLvDGIR5Yc/5IopmQYvX8
vjEeX47ASFwgUQezJpzEV/2wOZWI3/avCQzctqjVvb7yKbjBiO8Q95ub8OvM05hK
kFJWx6KQXHUjKZ33ohhvXvpJmy54MF34/adrFLTHzMgjOhljinlp/OQso1l01eOQ
bAnQQjs8eWZr68R4VLDniEkEGBECAAkFAkjXs/wCGwwACgkQNL8k5A2w/vwbbQCg
vg1b8xiNvBYs7KmcWkZMV+KlAloAn38KQv4WdVk2ugeCDCcVe9ARI3PE
=4sgL
-----END PGP PUBLIC KEY BLOCK-----
    </CRED>
  </KEY>
  <DESC>
    More information about me is located on my 
    personal website: https://stpeter.im/
  </DESC>
</vCard>
    

10.3 Example of vCard XML Data

<vcard xmlns="urn:ietf:params:xml:ns:vcard-4.0">
  <fn>
    <text>Peter Saint-Andre</text>
  </fn>
  <n>
    <surname>Saint-Andre</surname>
    <given>Peter</given>
    <middle></middle>
  </n>
  <nickname>
    <text>stpeter</text>
  </nickname>
  <nickname>
    <text>psa</text>
  </nickname>
  <photo>
    <uri>http://me.stpeter.im/images/stpeter_oscon.jpg</uri>
  </photo>
  <photo>
    <uri>http://me.stpeter.im/images/stpeter_hell.jpg</uri>
  </photo>
  <bday>
    <date>1966-08-06</date>
  </bday>
  <adr>
    <parameters>
      <type><text>work</text></type>
      <pref><integer>1</integer></pref>
    </parameters>
    <ext>Suite 600</ext>
    <street>1899 Wynkoop Street</street>
    <locality>Denver</locality>
    <region>CO</region>
    <code>80202</code>
    <country>USA</country>
  </adr>
  <adr>
    <parameters><type><text>home</text></type></parameters>
    <ext></ext>
    <street></street>
    <locality>Denver</locality>
    <region>CO</region>
    <code>80210</code>
    <country>USA</country>
  </adr>
  <tel>
    <parameters>
      <type><text>work</text><text>voice</text></type>
      <pref><integer>1</integer></pref>
    </parameters>
    <uri>tel:303-308-3282</uri>
  </tel>
  <tel>
    <parameters>
      <type><text>work</text><text>fax</text></type>
    </parameters>
    <uri>tel:303-308-3219</uri>
  </tel>
  <tel>
    <parameters>
      <type><text>home</text><text>voice</text></type>
    </parameters>
    <uri>tel:303-555-1212</uri>
  </tel>
  <email>
    <text>stpeter@jabber.org</text>
  </email>
  <email>
    <parameters>
      <type><text>work</text></type>
    </parameters>
    <text>psaintan@cisco.com</text>
  </email>
  <impp>
    <uri>xmpp:stpeter@jabber.org</uri>
   </impp>
   <tz>
     <text>America/Denver</text>
   </tz>
   <geo>
     <uri>geo:39.59,-105.01</uri>
   </geo>
   <title>
     <text>Executive Director</text>
   </title>
   <role>
     <text>Patron Saint</text>
   </role>
   <logo>
     <uri>data:image/jpeg;
/9j/4AAQSkZJRgABAQEASABIAAD//gAXQ3JlYXRlZCB3aXRoIFRoZSBHSU1Q/9sAQwAIBgYHBgUI
BwcHCQkICgwUDQwLCwwZEhMPFB0aHx4dGhwcICQuJyAiLCMcHCg3KSwwMTQ0NB8nOT04MjwuMzQy
/9sAQwEJCQkMCwwYDQ0YMiEcITIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIy
MjIyMjIyMjIyMjIy/8AAEQgAgQB7AwEiAAIRAQMRAf/EABsAAAMAAwEBAAAAAAAAAAAAAAQFBgAD
BwIB/8QAPRAAAgEDAwIDBQQJBAEFAAAAAQIDAAQRBRIhMUEGE1EiYXGBkRQyobEHFSMzNEJScsEk
YtHw0jVDc8Lh/8QAGQEAAwEBAQAAAAAAAAAAAAAAAQIEAwAF/8QAJBEAAgICAgICAgMAAAAAAAAA
AAECEQMhEjEEQSJREz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aNGZBGI5InbaxK8ZHr2r5Z2k1rrVjbSxvE5uEB3jbgZ5q9xa/wgu2OP
HE4k+xIh/ZoZAMd8bakl5ljb1I/MVTeNCpWw8v7oMqjj4c/WphWwV5xyDSJ6CdYdv9Vnk4c1SWlq
4tYwsgC44GKmCf2z9gGz3qxsJozYQFm5KA/WlOOXyXmV3LbuBjqFOKG86VwSu3gdCc0El/Pavtcs
wHGCc0aJBcJ5ls6h+pU165mCudxGXYtnOOgFCzXgSJgxCRgd+rGjmkimO2T9nIOMilV/aOmWOGjJ
/wCmhK60cgAXOx/bJIY1vWeSBtybnU9QBS2aNIs7nJ9MCt1ndMDsyfQZPU9qmbT+Mh1raDpl+0Dc
o+tBeQ6ScJkVkd5JNqYt7OMyqAd2Ty3rj4UwhxOqyRZKn6j3GoMmNReiqMuW2b7RHwCRilviaQyf
Y4V5wxOPU04x5ERZuTj6UhvdUtoL3eEFxMowP6F9ce+kxQVhySqNIrtDjks9DSJWG3GWVutM7e4h
ljXzHDqP5ZBnHw7ilFrL5yQOmfLZAw+fNN7e3jVi7DrXs0qoha2aNV0uDUokEMqxSIxIDHIbIHHu
qQvrK5sJRHPEVcA4PZvgasb28gXIVFDD+YcZoIzG/ga2uYjLG3C46qT3rGeFVaOTKQXDNKwlOT0y
F93f51To5ihiQZAWJB0/2ipRgWiaQnLsNicDjA6mqaa1DuG2/wAqjqewAqFpp0zRHKNR/eCtel/x
ArKyvVZmEah+9Wvp/gz8Kyspl0cIZ/3bUvi6r/dWVlSZOx4maF/6wvz/ADNOtB/eXf8A8jVlZUcz
aPYXq38EfnUbcfxXyFZWUMQch0LTP4SH+2nX/sn4VlZXqx/VEz7EF19/50bpf8SPgPzrKyuAO4P3
0vx/+oqw7D4D8qysrzcv7jro/9k=
      </uri>
    </logo>
    <org>
      <text>XMPP Standards Foundation</text>
    </org>
    <url>
      <uri>https://stpeter.im/</uri>
    </url>
    <url>
      <uri>http://www.saint-andre.com/</uri>
    </url>
    <key>
      <text>
-----BEG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HzMgjOhljinlp/OQso1l01eOQ
bAnQQjs8eWZr68R4VLDniEkEGBECAAkFAkjXs/wCGwwACgkQNL8k5A2w/vwbbQCg
vg1b8xiNvBYs7KmcWkZMV+KlAloAn38KQv4WdVk2ugeCDCcVe9ARI3PE
=4sgL
-----END PGP PUBLIC KEY BLOCK-----
      </text>
    </key>
    <note>
      <text>
More information about me is located on my 
personal website: https://stpeter.im/
    </text>
  </note>
</vcard>
    

11. Acknowledgements

Thanks to Joe Hildebrand, Waqas Hussain, and Matt Miller for their feedback.


Appendices


Appendix A: Document Information

Series: XEP
Number: 0292
Publisher: XMPP Standards Foundation
Status: Experimental
Type: Standards Track
Version: 0.5
Last Updated: 2011-06-24
Approving Body: XMPP Council
Dependencies: XMPP Core, draft-ietf-vcarddav-vcardrev, draft-ietf-vcarddav-vcardxml
Supersedes: XEP-0054
Superseded By: None
Short Name: NOT_YET_ASSIGNED
Source Control: HTML
This document in other formats: XML  PDF


Appendix B: Author Information

Peter Saint-Andre

Email: stpeter@jabber.org
JabberID: stpeter@jabber.org
URI: https://stpeter.im/

Samantha Mizzi

Email: samizzi@cisco.com
JabberID: samizzi@cisco.com


Appendix C: Legal Notices

Copyright

This XMPP Extension Protocol is copyright © 1999 - 2011 by the XMPP Standards Foundation (XSF).

Permissions

Permission is hereby granted, free of charge, to any person obtaining a copy of this specification (the "Specification"), 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.

Disclaimer of Warranty

## NOTE WELL: This Specification is provided on an "AS IS" 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. ##

Limitation of Liability

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.

IPR Conformance

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 <http://xmpp.org/extensions/ipr-policy.shtml> or obtained by writing to XMPP Standards Foundation, 1899 Wynkoop Street, Suite 600, Denver, CO 80202 USA).

Appendix D: Relation to XMPP

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.


Appendix E: Discussion Venue

The primary venue for discussion of XMPP Extension Protocols is the <standards@xmpp.org> discussion list.

Discussion on other xmpp.org discussion lists might also be appropriate; see <http://xmpp.org/about/discuss.shtml> for a complete list.

Errata can be sent to <editor@xmpp.org>.


Appendix F: Requirements Conformance

The following requirements keywords as used in this document are to be interpreted as described in RFC 2119: "MUST", "SHALL", "REQUIRED"; "MUST NOT", "SHALL NOT"; "SHOULD", "RECOMMENDED"; "SHOULD NOT", "NOT RECOMMENDED"; "MAY", "OPTIONAL".


Appendix G: Notes

1. XEP-0054: vcard-temp <http://xmpp.org/extensions/xep-0054.html>.

2. vCard Format Specification <http://tools.ietf.org/html/draft-ietf-vcarddav-vcardrev>. Work in progress.

3. vCard XML Representation <http://tools.ietf.org/html/draft-ietf-vcarddav-vcardxml>. Work in progress.

4. XEP-0163: Personal Eventing Protocol <http://xmpp.org/extensions/xep-0163.html>.

5. XEP-0045: Multi-User Chat <http://xmpp.org/extensions/xep-0045.html>.

6. XEP-0060: Publish-Subscribe <http://xmpp.org/extensions/xep-0060.html>.

7. XEP-0163: Personal Eventing Protocol <http://xmpp.org/extensions/xep-0163.html>.

8. XEP-0115: Entity Capabilities <http://xmpp.org/extensions/xep-0115.html>.

9. vCard KIND:thing <http://tools.ietf.org/html/draft-saintandre-vcarddav-thing>. Work in progress.

10. 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 <http://www.iana.org/>.

11. RFC 4770: vCard Extensions for Instant Messaging (IM) <http://tools.ietf.org/html/rfc4770>.


Appendix H: Revision History

Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/

Version 0.5 (2011-06-24)

Corrected XSLT script; provided detailed examples of the vcard-temp and vCard4 XML formats.

(psa)

Version 0.4 (2011-06-20)

Defined provisional mapping from vcard-temp to vCard4.

(psa)

Version 0.3 (2011-04-07)

Updated to track base vCard4 specs; defined IQ transport, with pubsub for notifications; added examples for server vCards; described several problematic aspects of mapping from vcard-temp.

(psa)

Version 0.2 (2011-04-07)

Updated to track base vCard4 specs; defined IQ transport, with pubsub for notifications; added examples for server vCards; specified mapping from vcard-temp.

(psa)

Version 0.1 (2011-03-02)

Initial published version.

(psa)

Version 0.0.5 (2011-02-28)

Corrected more errors in the examples.

(psa)

Version 0.0.4 (2011-02-25)

Corrected some errors in the examples.

(psa)

Version 0.0.3 (2011-02-12)

Third draft.

(psa)

Version 0.0.2 (2011-01-31)

Second draft.

(srm)

Version 0.0.1 (2010-11-30)

First draft.

(srm)

END