The implementation note (pasted below) does not say that VERSION element is optional:
Some Jabber implementations add a 'version' attribute to the <vCard/> 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 <VERSION/> 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". -- Bala -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Peter Saint-Andre Sent: Thursday, October 27, 2011 4:58 PM To: XMPP Standards Cc: Bala Pitchandi Subject: Re: [Standards] XEP-0054 (vcard-temp) Issues On 10/27/11 2:54 PM, Bala Pitchandi wrote: > The DTD in section 9 <http://xmpp.org/extensions/xep-0054.html#dtd> > mandates that the element vCard must contain VERSION, FN, N but the > examples in section 3.1 do not comply. Particularly the vCard > retrieval request (Section 3.1, example 1) has an empty vCard element. > > > > <!-- Individual vCard container --> > <!ELEMENT vCard ( > (VERSION, FN, N), > > > > Maybe the intent was to add a “?” at the end to make the sequence of > Version, Full Name & Name optional, like: > > <!-- Individual vCard container --> > <!ELEMENT vCard ( > (VERSION, FN, N)*?*, > > > > Even with this fix, examples other than the vCard retrieval request > need to be corrected to include the VERSION. http://xmpp.org/extensions/xep-0054.html#impl
