Re: [VCARDDAV] vCard XML

Simon Perreault <simon.perreault@viagenie.ca> Fri, 05 March 2010 21:41 UTC

Return-Path: <simon.perreault@viagenie.ca>
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 7594C3A8E65 for <vcarddav@core3.amsl.com>; Fri, 5 Mar 2010 13:41:31 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level:
X-Spam-Status: No, score=-2.099 tagged_above=-999 required=5 tests=[AWL=-0.500, 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 9g3V9WFcVpXy for <vcarddav@core3.amsl.com>; Fri, 5 Mar 2010 13:41:30 -0800 (PST)
Received: from jazz.viagenie.ca (jazz.viagenie.ca [206.123.31.2]) by core3.amsl.com (Postfix) with ESMTP id 50EDA3A8BFE for <vcarddav@ietf.org>; Fri, 5 Mar 2010 13:41:30 -0800 (PST)
Received: from ringo.viagenie.ca (ringo.viagenie.ca [IPv6:2620:0:230:c000::67]) by jazz.viagenie.ca (Postfix) with ESMTPSA id C4A4221BDC; Fri, 5 Mar 2010 16:41:30 -0500 (EST)
Message-ID: <4B917A8A.9020807@viagenie.ca>
Date: Fri, 05 Mar 2010 16:41:30 -0500
From: Simon Perreault <simon.perreault@viagenie.ca>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100301 Fedora/3.0.3-1.fc12 Thunderbird/3.0.3
MIME-Version: 1.0
To: Cyrus Daboo <cyrus@daboo.name>
References: <D73BA7B608FA67B02A90FD64@caldav.corp.apple.com> <4B917310.8050905@viagenie.ca> <C493BC91E766563291890996@caldav.corp.apple.com>
In-Reply-To: <C493BC91E766563291890996@caldav.corp.apple.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
Cc: vcarddav@ietf.org
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:41:31 -0000

On 2010-03-05 16:34, Cyrus Daboo wrote:
>> 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.

Yes of course. A proper converter would do that. But I don't see why the 
example above should be illegal.

Here's a use case: Suppose you have to pass XML vCards through something 
that groks only text vCard. Your XML-speaking endpoints don't have or 
need a text vCard parser. So they can just wrap their vCard with:

BEGIN:VCARD
VERSION:4.0
XML:<XML vCard goes here>
END:VCARD

and it will come out on the other end unaltered.

> 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).

Then it would be better to use different XML namespaces for the 
properties, parameters, and values instead of prefixing their tag names, 
don't you think?

Simon
-- 
NAT64/DNS64 open-source --> http://ecdysis.viagenie.ca
STUN/TURN server        --> http://numb.viagenie.ca
vCard 4.0               --> http://www.vcarddav.org