Re: [VCARDDAV] vCard XML

Cyrus Daboo <cyrus@daboo.name> Fri, 05 March 2010 21:34 UTC

Return-Path: <cyrus@daboo.name>
X-Original-To: vcarddav@core3.amsl.com
Delivered-To: vcarddav@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id BE66C28C355 for <vcarddav@core3.amsl.com>; Fri, 5 Mar 2010 13:34:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.024
X-Spam-Level:
X-Spam-Status: No, score=-2.024 tagged_above=-999 required=5 tests=[AWL=-0.425, BAYES_00=-2.599, J_BACKHAIR_35=1]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OCUf-DvP2qvr for <vcarddav@core3.amsl.com>; Fri, 5 Mar 2010 13:34:26 -0800 (PST)
Received: from daboo.name (daboo.name [151.201.22.177]) by core3.amsl.com (Postfix) with ESMTP id BD71A3A8C7E for <vcarddav@ietf.org>; Fri, 5 Mar 2010 13:34:25 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by daboo.name (Postfix) with ESMTP id 69820F4A2123; Fri, 5 Mar 2010 16:34:28 -0500 (EST)
X-Virus-Scanned: amavisd-new at daboo.name
Received: from daboo.name ([127.0.0.1]) by localhost (chewy.mulberrymail.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tyVL8Pr3bR1m; Fri, 5 Mar 2010 16:34:28 -0500 (EST)
Received: from caldav.corp.apple.com (unknown [17.101.32.44]) by daboo.name (Postfix) with ESMTPSA id 0BDB3F4A2117; Fri, 5 Mar 2010 16:34:26 -0500 (EST)
Date: Fri, 05 Mar 2010 16:34:24 -0500
From: Cyrus Daboo <cyrus@daboo.name>
To: Simon Perreault <simon.perreault@viagenie.ca>, vcarddav@ietf.org
Message-ID: <C493BC91E766563291890996@caldav.corp.apple.com>
In-Reply-To: <4B917310.8050905@viagenie.ca>
References: <D73BA7B608FA67B02A90FD64@caldav.corp.apple.com> <4B917310.8050905@viagenie.ca>
X-Mailer: Mulberry/4.1.0a1 (Mac OS X)
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format="flowed"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; size="2660"
Subject: Re: [VCARDDAV] vCard XML
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vcarddav>
List-Post: <mailto:vcarddav@ietf.org>
List-Help: <mailto:vcarddav-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vcarddav>, <mailto:vcarddav-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Mar 2010 21:34:26 -0000

Hi Simon,

--On March 5, 2010 4:09:36 PM -0500 Simon Perreault 
<simon.perreault@viagenie.ca> wrote:

>> 3) All XML elements in the "urn:ietf:params:xml:ns:vcard-4.0" namespace
>> must be mapped to their vCard equivalents (component, property,
>> parameter).
>
>> (3) is wrong right now in that the vCard XML: property as defined allows
>> for normal vCard properties to remain encoded as XML in the vCard itself
>> as shown in the example in Section 5. I think this issue was discussed
>> before (at a meeting or on the list) and consensus was to change that to
>> follow what is proposed for iCalendar.
>
> I don't recall any discussion on this issue. Personally I don't care, but
> a priori I would tend to favour flexibility.
>
> Why is it important that this cannot be written?
>
> XML:<email><text>simon.perreault@viagenie.ca</text></email>

A vCard parser seeing this will treat it as an opaque value. vCard parsers 
should not be expected to parse XML into vCard properties - that is the 
duty of the XML<->vCard converter.

>> Also, I think we should
>> prefix/suffix schema elements with "property-", "param", "value-" as we
>> did in iCalendar. Again that is important to avoid a clash of names
>> (e.g. if the same name is used for a property and parameter in vCard).
>
> I think we should forbid name clashes completely in vCard. I'll add that
> to the vCard base spec, and then we don't need the prefixes anymore.
>
> We could even remove the <parameters> element now that clashes are not an
> issue.

I don't think we should forbid the use of the same name in a property, 
parameter or value. Its seems somewhat unfair to say we can't have a DATE 
property or parameter now given that the only concern is how the XML schema 
is written (and its really just a stylistic feature of the schema - after 
all there is nothing that requires the relaxNG definitions to use names 
that match their vCard equivalents - the names of elements have to match of 
course).

>> (8) The current vCard spec does use elements for enumerated types, e.g.:
>>
>> element type {
>> element work { empty }?,
>> element home { empty }?,
>> element media { \text }?
>> }
>>
>> In the iCalendar spec we did things like:
>>
>> roleparam = element role {
>> "CHAIR" |
>> "REQ-PARTICIPANT" |
>> "OPT-PARTICIPANT" |
>> "NON-PARTICIPANT"
>> }
>>
>> Given that parameter values are text and in vCard are allowed to contain
>> characters that are possibly disallowed as XML element names (e.g. "<"
>> or ">" !!) I think we need to make these enumerations text values and
>> not XML elements.
>
> Done. (There was consensus on this issue in Hiroshima.)

Thanks.

-- 
Cyrus Daboo