Re: [VCARDDAV] vCard XML

Renato Iannella <renato@nicta.com.au> Tue, 02 March 2010 01:04 UTC

Return-Path: <Renato.Iannella@nicta.com.au>
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 E0E4328C6A5 for <vcarddav@core3.amsl.com>; Mon, 1 Mar 2010 17:04:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.673
X-Spam-Level:
X-Spam-Status: No, score=-3.673 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HELO_EQ_AU=0.377, HOST_EQ_AU=0.327, RCVD_IN_DNSWL_MED=-4, RELAY_IS_221=2.222]
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 r6oYCZ37GuSZ for <vcarddav@core3.amsl.com>; Mon, 1 Mar 2010 17:04:01 -0800 (PST)
Received: from ajax.nicta.com.au (ajax.nicta.com.au [221.199.217.11]) by core3.amsl.com (Postfix) with ESMTP id 116CA28C695 for <vcarddav@ietf.org>; Mon, 1 Mar 2010 17:04:01 -0800 (PST)
Received: from atp-mbx1.it.nicta.com.au ([221.199.216.123] helo=atp-mbx1.in.nicta.com.au) by ajax.nicta.com.au with esmtp (Exim 4.69) (envelope-from <Renato.Iannella@nicta.com.au>) id 1NmGVu-0007l6-G9 for vcarddav@ietf.org; Tue, 02 Mar 2010 12:03:06 +1100
Received: from cb8fa4d6.qrl.nicta.com.au (221.199.216.124) by atp-mbx1.in.nicta.com.au (221.199.216.123) with Microsoft SMTP Server id 8.1.393.1; Tue, 2 Mar 2010 12:02:21 +1100
References: <D73BA7B608FA67B02A90FD64@caldav.corp.apple.com>
In-Reply-To: <D73BA7B608FA67B02A90FD64@caldav.corp.apple.com>
MIME-Version: 1.0 (Apple Message framework v1077)
Content-Type: text/plain; charset="us-ascii"
Message-ID: <9FE3E9C7-B275-47AB-8B51-EC6009A7861C@nicta.com.au>
Content-Transfer-Encoding: quoted-printable
From: Renato Iannella <renato@nicta.com.au>
Date: Tue, 02 Mar 2010 11:02:21 +1000
To: vcarddav@ietf.org
X-Mailer: Apple Mail (2.1077)
X-TM-AS-Product-Ver: SMEX-8.0.0.4125-6.000.1038-17218.004
X-TM-AS-Result: No--10.551200-0.000000-31
X-TM-AS-User-Approved-Sender: Yes
X-TM-AS-User-Blocked-Sender: No
X-SA-Exim-Connect-IP: 221.199.216.123
X-SA-Exim-Mail-From: Renato.Iannella@nicta.com.au
X-SA-Exim-Scanned: No (on ajax.nicta.com.au); SAEximRunCond expanded to false
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: Tue, 02 Mar 2010 01:04:02 -0000

I am still not clear why we add the datatying to the XML instance.

XML Schema is good at validating such datatypes.

In both vCard and iCal we have syntax like:

       <anniversary>
         <date-time>20090808T1430-0500</date-time>
       </anniversary>

Anniversary is either a date-time or string, which XSD can handle with union types.

I also think that compact XML is good, so this:

       <tel>
         <parameters>
           <type><work/><text/><voice/><cell/><video/></type>
         </parameters>
         <uri>tel:+1-418-262-6501</uri>
       </tel>

could be represented as:

       <tel type="work, text, voice, cell, video">tel:+1-418-262-6501</tel>



Cheers...  Renato Iannella
NICTA