[VCARDDAV] CardDAV + xCard in query response

Arnaud Quillaud <arnaudq@quillaud.org> Fri, 27 May 2011 23:57 UTC

Return-Path: <quillaud@gmail.com>
X-Original-To: vcarddav@ietfa.amsl.com
Delivered-To: vcarddav@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 10577E06F7 for <vcarddav@ietfa.amsl.com>; Fri, 27 May 2011 16:57:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level:
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EvM+VI3gcgCj for <vcarddav@ietfa.amsl.com>; Fri, 27 May 2011 16:57:17 -0700 (PDT)
Received: from mail-pz0-f44.google.com (mail-pz0-f44.google.com [209.85.210.44]) by ietfa.amsl.com (Postfix) with ESMTP id 7890AE06BA for <vcarddav@ietf.org>; Fri, 27 May 2011 16:57:17 -0700 (PDT)
Received: by pzk5 with SMTP id 5so1085611pzk.31 for <vcarddav@ietf.org>; Fri, 27 May 2011 16:57:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:message-id:date:from:user-agent :mime-version:to:subject:content-type:content-transfer-encoding; bh=7jTe3GQnSWZ8S7e65RFX3+2QBJnsrJLcANV6F9tagsE=; b=jZ3/heCoECnChSCz7RgbUU/rA1BZFosL6ofVnq53E6cH4NKA+dV6WoAWsWiqflZo8i 6RTHQuttWeakzHnCA7AdVgMUPcfx/y8aFRTiyHk7Vwksa0eqS8XVFpIxcbtsr17hvUmY +x1BELCtZTX5ypLRlSNXbitJZImpsq9e2DRps=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=T1+AWTLdLERgFf6aPGIjjAi4M9SlWfRRrdVORNrpKQjXulUnjaYVpc9aSdgatTQcxq ud/Z8y/+QZxG7tl8KhQ7UXvMUr2lbS2NiszbBLQ5N1h0itaey8EQHrdXnJCROGA8tMJm TjLuBAQ3bqImvu8VD5LWO0xbjpxgtIYcobaWk=
Received: by 10.142.131.2 with SMTP id e2mr419448wfd.143.1306540635488; Fri, 27 May 2011 16:57:15 -0700 (PDT)
Received: from [192.168.2.113] (c-71-204-164-197.hsd1.ca.comcast.net [71.204.164.197]) by mx.google.com with ESMTPS id o16sm1660312wff.13.2011.05.27.16.57.14 (version=SSLv3 cipher=OTHER); Fri, 27 May 2011 16:57:14 -0700 (PDT)
Sender: Arnaud Quillaud <quillaud@gmail.com>
Message-ID: <4DE03A77.6030801@quillaud.org>
Date: Fri, 27 May 2011 16:57:43 -0700
From: Arnaud Quillaud <arnaudq@quillaud.org>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Lightning/1.0b2 OracleBeehiveExtension/1.1.0.0pre29-Alpha Thunderbird/3.1.10
MIME-Version: 1.0
To: vcarddav@ietf.org
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Subject: [VCARDDAV] CardDAV + xCard in query response
X-BeenThere: vcarddav@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF vcarddav wg mailing list <vcarddav.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/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, 27 May 2011 23:57:18 -0000

Hello,

In 
http://tools.ietf.org/html/draft-ietf-vcarddav-carddav-10#section-10.4 , 
the address-data corresponding to a REPORT response is defined as:

        <!ELEMENT address-data (#PCDATA)>
        <!-- PCDATA value: address data -->

(and the same section contains two paragraph explaining how to deal with 
CDATA).

If I understand this definition correctly, this more or less prevents 
the use of xCard as the returned format. Or at least, the xCard stream 
can not be part of the CardDAV XML stream and should instead be wrapped 
in a CDATA section. I'm sure that this is not the intent.

I dont know the proper way to define something that may be either PCDATA 
OR some xml subelement. Can it just be:

        <!ELEMENT address-data (#PCDATA | ANY)>

?

Arnaud Q

PS: the same can be said about CalDAV and xCal where the calendar-data 
element is defined as containing only PCDATA.