[VCARDDAV] Mapping LANGUAGE to xml:lang?

Florian Zeitz <florob@babelmonkeys.de> Tue, 27 July 2010 22:50 UTC

Return-Path: <florob@babelmonkeys.de>
X-Original-To: vcarddav@core3.amsl.com
Delivered-To: vcarddav@core3.amsl.com
Received: from localhost (localhost []) by core3.amsl.com (Postfix) with ESMTP id CA1FC3A6803 for <vcarddav@core3.amsl.com>; Tue, 27 Jul 2010 15:50:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.02
X-Spam-Status: No, score=-1.02 tagged_above=-999 required=5 tests=[AWL=-1.230, BAYES_20=-0.74, HELO_EQ_DE=0.35, J_CHICKENPOX_34=0.6]
Received: from mail.ietf.org ([]) by localhost (core3.amsl.com []) (amavisd-new, port 10024) with ESMTP id IEkDu2MjGDrd for <vcarddav@core3.amsl.com>; Tue, 27 Jul 2010 15:50:39 -0700 (PDT)
Received: from babelmonkeys.de (v64231.topnetworks.de []) by core3.amsl.com (Postfix) with ESMTP id B12E33A67F2 for <vcarddav@ietf.org>; Tue, 27 Jul 2010 15:50:38 -0700 (PDT)
Received: from xdsl-81-173-230-22.netcologne.de ([] helo=Flows) by v64231 with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from <florob@babelmonkeys.de>) id 1OdszD-0003R3-Hc for vcarddav@ietf.org; Wed, 28 Jul 2010 00:50:59 +0200
Date: Wed, 28 Jul 2010 00:50:52 +0200
From: Florian Zeitz <florob@babelmonkeys.de>
To: vcarddav@ietf.org
Message-ID: <20100728005052.152258a0@Flows>
X-Mailer: Claws Mail 3.7.4 (GTK+ 2.20.1; i486-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Subject: [VCARDDAV] Mapping LANGUAGE to xml:lang?
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, 27 Jul 2010 22:50:39 -0000

The following just occurred to me under the shower (as in, this is not
thoroughly thought through, but I did quickly check it against the

Both vCard 4 and XML have a concept of language. vCard has the LANGUAGE
parameter and XML the xml:lang attribute, however the vcardxml
draft right now specifies no mapping between both.

I'd suggest one of the following options:
1. Map the LANGUAGE parameter to the xml:lang attribute, drop the
current element representation.
2. Add the xml:lang attribute at the appropriate level, but also keep
the current representation.

Option 1 removes some of the extensibility, while option 2 duplicates
information. Personally I'd opt for the former, since I don't see a
use-case for including additional namespaced elements inside the
language element.

In that context I also wondered if it's really a wise decision to have
no concept of a default language. For the XML representation it would
be very useful to have a xml:lang attribute at the root element and be
able to "blindly" embed the vCard in another XML file.

Florian Zeitz