Re: [VCARDDAV] Comments on vCard XML Schema

Simon Perreault <simon.perreault@viagenie.ca> Fri, 05 March 2010 20:39 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 69EF928C318 for <vcarddav@core3.amsl.com>; Fri, 5 Mar 2010 12:39:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599]
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 4htbTo9crKoP for <vcarddav@core3.amsl.com>; Fri, 5 Mar 2010 12:39:50 -0800 (PST)
Received: from jazz.viagenie.ca (jazz.viagenie.ca [206.123.31.2]) by core3.amsl.com (Postfix) with ESMTP id AB3A228C345 for <vcarddav@ietf.org>; Fri, 5 Mar 2010 12:39:49 -0800 (PST)
Received: from ringo.viagenie.ca (ringo.viagenie.ca [IPv6:2620:0:230:c000::67]) by jazz.viagenie.ca (Postfix) with ESMTPSA id 68BA121C97 for <vcarddav@ietf.org>; Fri, 5 Mar 2010 15:39:49 -0500 (EST)
Message-ID: <4B916C14.3040307@viagenie.ca>
Date: Fri, 05 Mar 2010 15:39:48 -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: vcarddav@ietf.org
References: <CD4CC43F-65E0-4A5E-8CAD-42A692B83F3A@nicta.com.au>
In-Reply-To: <CD4CC43F-65E0-4A5E-8CAD-42A692B83F3A@nicta.com.au>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
Subject: Re: [VCARDDAV] Comments on vCard XML Schema
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 20:39:51 -0000

On 2009-11-29 21:38, Renato Iannella wrote:
> - A this is a RelaxNG Schema, the title should be renamed to reduce
> confusion with any "XML Schema" representation

How about "vCard XML Representation"?

> - is there an XML Scheme version planned?

No. It is easy to convert from Relax NG to XML Schema using Trang 
<http://www.thaiopensource.com/relaxng/trang.html>.

> - why is the "type" of the element content contained in the content
> model. eg <text>...</text>
> (this seems to make it more verbose)

Because

- We need a tag anyway because we have parameters. We can't just do this:

<email>
<parameters><type>work</type></parameters>
simon.perreault@viagenie.ca
</email>

- A tag per value type is easier to manipulate/validate/parse than a 
generic <value> tag whose content depends on the enclosing tag.

> - was the <type> element considered as an attribute of the parent
> element? (less verbosity)

Yes, but the type parameter takes a list of values. We could do:

<tel type="work,cell">...

But it's harder to grep/manipulate/parse/validate than separate elements.

Note that in the next revision we will have this instead:

<tel><parameters><type>work</type><type>cell</type></parameters>...

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