Re: Registration of media type application/calendar+xml

Keith Moore <> Fri, 10 September 2010 14:08 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id E25ED3A6835 for <>; Fri, 10 Sep 2010 07:08:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -6.423
X-Spam-Status: No, score=-6.423 tagged_above=-999 required=5 tests=[AWL=0.176, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id HUnGy6gVJhrn for <>; Fri, 10 Sep 2010 07:08:50 -0700 (PDT)
Received: from ( []) by (Postfix) with ESMTP id 87BC33A6403 for <IETF@IETF.ORG>; Fri, 10 Sep 2010 07:08:50 -0700 (PDT)
Received: from localhost (localhost.localdomain []) by (Postfix) with ESMTP id 3E6AA1400BF; Fri, 10 Sep 2010 10:09:17 -0400 (EDT)
X-Virus-Scanned: by amavisd-new with ClamAV and SpamAssasin at
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id yDoRClIVxGnf; Fri, 10 Sep 2010 10:09:16 -0400 (EDT)
Received: from ( []) by (Postfix) with ESMTP id AC0471400BD; Fri, 10 Sep 2010 10:09:14 -0400 (EDT)
Subject: Re: Registration of media type application/calendar+xml
Mime-Version: 1.0 (Apple Message framework v1081)
Content-Type: text/plain; charset=us-ascii
From: Keith Moore <>
In-Reply-To: <>
Date: Fri, 10 Sep 2010 10:09:11 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <>
References: <> <> <> <> <>
To: Cyrus Daboo <>
X-Mailer: Apple Mail (2.1081)
Cc: Steven Lees <>,, Ned Freed <>, Douglass Mike <>, IETF@IETF.ORG
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: IETF-Discussion <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Fri, 10 Sep 2010 14:08:52 -0000

On Sep 10, 2010, at 9:56 AM, Cyrus Daboo wrote:

> Hi Keith,
> --On September 10, 2010 1:40:16 AM -0400 Keith Moore <> wrote:
>> But here's the acid test.  If you can define a mapping from iCalendar to
>> XML that doesn't require any string constants to describe it (other than
>> for iCalendar keywords that imply nesting, and separators that are used
>> in a regular fashion in iCalendar), and if you can define the inverse
>> mapping from XML to iCalendar without naming more than a couple of
>> specific element or parameter names - then I'll concede that the mapping
>> will probably continue to work in the face of extensions to the iCalendar
>> data model.   Otherwise, I'm highly dubious.
> That is precisely the goal of draft-daboo-et-al-icalendar-in-xml. iCalendar components, properties, parameters and values all map to XML in a consistent manner with no need to "special case" based on type or value. 

But you're not doing that in the draft.  You explicitly list every keyword.  Every time a new component, property, parameter, etc is added to iCalendar, the mapping code will have to change also.  The trick is to be able to translate between formats, with no changes to the code needed even when the format is extended.

> Conversion to/from XML is trivial - I have coded at least one half of that and I know others who have done both ways.It should also be easy to put together an XSLT to go from XML to iCalendar - with the only possible difficulty being having to apply escaping and line folding as required by iCalendar.

That would be great, again provided you don't have to explicitly list every keyword.  It still wouldn't convince me that XML iCalendar is sufficiently valuable to be worth the degraded interoperability.  But if you're going to have two formats, being able to automatically convert between them is the best way to do that.