Re: [VCARDDAV] How to encode X-Properties in XML?
Simon Perreault <simon.perreault@viagenie.ca> Tue, 30 March 2010 13:55 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 986FF3A6876 for <vcarddav@core3.amsl.com>; Tue, 30 Mar 2010 06:55:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.425
X-Spam-Level:
X-Spam-Status: No, score=-0.425 tagged_above=-999 required=5 tests=[AWL=-0.445, BAYES_05=-1.11, DNS_FROM_OPENWHOIS=1.13]
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 en88wdhumhRd for <vcarddav@core3.amsl.com>; Tue, 30 Mar 2010 06:55:23 -0700 (PDT)
Received: from jazz.viagenie.ca (jazz.viagenie.ca [206.123.31.2]) by core3.amsl.com (Postfix) with ESMTP id 440A33A6811 for <vcarddav@ietf.org>; Tue, 30 Mar 2010 06:55:23 -0700 (PDT)
Received: from [10.24.69.140] (unknown [216.207.245.1]) by jazz.viagenie.ca (Postfix) with ESMTPSA id 6FB2B20E2E; Tue, 30 Mar 2010 09:55:51 -0400 (EDT)
Message-ID: <4BB202E5.60004@viagenie.ca>
Date: Tue, 30 Mar 2010 08:55:49 -0500
From: Simon Perreault <simon.perreault@viagenie.ca>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3
MIME-Version: 1.0
To: Joe Hildebrand <joe.hildebrand@webex.com>
References: <C7D6D69B.20BB0%joe.hildebrand@webex.com>
In-Reply-To: <C7D6D69B.20BB0%joe.hildebrand@webex.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
Cc: vcarddav@ietf.org
Subject: Re: [VCARDDAV] How to encode X-Properties in 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, 30 Mar 2010 13:55:24 -0000
On 2010-03-30 00:13, Joe Hildebrand wrote:
> - In the XML format, any child of<vcard> in the default namespace gets
> translated to a text property. X-, VND-, and
> newly-registered-but-not-yet-supported-in-your-software elements all fall
> into this category. Unfortunately, it appears that we need to upcase in the
> XML-to-text direction
In text vCard, properties are case-insensitive. So no need to upcase in
this direction.
But as was already mentioned, property names are limited to
[a-zA-Z0-9-].
> - In the XML format, any child of<vcard> in a namespace other than the
> default gets turned into XML: in the text format. Even if it is
> standardized.
Right.
> - In the text format, XML: properties always get directly transliterated
> into XML as children of<vcard>. This means they MUST have a namespace
> other than the default. If they don't, we can specify what happens, but the
> list of things I've thought of are: 1) error, and fail translation 2) warn,
> and don't copy the XML: property 3) warn, and change the namespace to some
> specified warning namespace 4) do 3 silently 5) copy the element as-is.
>
> I don't like 5, because the element won't round-trip back to text format the
> same way. 3 or 4 sound fine to me, but I could live with 2 or even 1.
I'd rather follow Postel's principle.
- On output, the element in XML: MUST have a namespace, and it MUST NOT
be the vCard 4 namespace.
- On input, the content of the XML: property MUST be interpreted as a
single XML element.
That's it. Whether implementations output warnings or not is out of
scope (some could even not have the capability of outputting warnings).
> - Text format properties that are not currently in the XML definition (such
> as X-, VND-, and new-but-iana-registered) are unlikely to ever have any
> interesting structure in XML. The best we can do is specify syntactic
> transformations that survive round trips. As a consequence, we might
> consider suggesting that ALL new properties SHOULD be defined in XML format
> going forward, with XML: being their native representation in the text
> format.
+0.5
The problem is that these new properties would be in the vCard 4
namespace, and we said that no element in this namespace can appear as
the content of the XML property.
> - Do we specify what happens to \n in text format, when translated? Does it
> stay \n, or get translated to CRLF? What about wrapped lines? Do they get
> unwrapped? My preference would be unwrap and translate to \n to CRLF.
We have this currently:
The chunk
is subject to normal line folding and escaping, i.e. replace all
backslashes with "\\", then replace all newlines with "\n", then
fold long lines.
Can you suggest text to be added?
Thanks,
Simon
--
NAT64/DNS64 open-source --> http://ecdysis.viagenie.ca
STUN/TURN server --> http://numb.viagenie.ca
vCard 4.0 --> http://www.vcarddav.org
- [VCARDDAV] How to encode X-Properties in XML? Simon Perreault
- Re: [VCARDDAV] How to encode X-Properties in XML? Renato Iannella
- Re: [VCARDDAV] How to encode X-Properties in XML? Cyrus Daboo
- Re: [VCARDDAV] How to encode X-Properties in XML? Simon Perreault
- Re: [VCARDDAV] How to encode X-Properties in XML? Cyrus Daboo
- Re: [VCARDDAV] How to encode X-Properties in XML? Peter Saint-Andre
- Re: [VCARDDAV] How to encode X-Properties in XML? Simon Perreault
- Re: [VCARDDAV] How to encode X-Properties in XML? Joe Hildebrand
- Re: [VCARDDAV] How to encode X-Properties in XML? Filip Navara
- Re: [VCARDDAV] How to encode X-Properties in XML? Simon Perreault
- Re: [VCARDDAV] How to encode X-Properties in XML? Joe Hildebrand
- Re: [VCARDDAV] How to encode X-Properties in XML? Peter Saint-Andre
- Re: [VCARDDAV] How to encode X-Properties in XML? Joe Hildebrand
- Re: [VCARDDAV] How to encode X-Properties in XML? Peter Saint-Andre
- Re: [VCARDDAV] How to encode X-Properties in XML? Julian Reschke
- Re: [VCARDDAV] How to encode X-Properties in XML? Peter Saint-Andre
- Re: [VCARDDAV] How to encode X-Properties in XML? Joe Hildebrand
- Re: [VCARDDAV] How to encode X-Properties in XML? Cyrus Daboo