Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 99812 invoked from network); 21 May 2007 09:49:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 May 2007 09:49:38 -0000 Received: (qmail 91113 invoked by uid 500); 21 May 2007 09:49:43 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 91090 invoked by uid 500); 21 May 2007 09:49:42 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 91081 invoked by uid 99); 21 May 2007 09:49:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 May 2007 02:49:42 -0700 X-ASF-Spam-Status: No, hits=4.6 required=10.0 tests=FORGED_HOTMAIL_RCVD,HTML_FONT_FACE_BAD,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of grizz_lee@hotmail.com designates 65.54.246.213 as permitted sender) Received: from [65.54.246.213] (HELO bay0-omc3-s13.bay0.hotmail.com) (65.54.246.213) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 May 2007 02:49:35 -0700 Received: from BAY141-W8 ([65.55.152.43]) by bay0-omc3-s13.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Mon, 21 May 2007 02:49:14 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_46d235eb-f32c-411c-8f5c-239fbaf172b7_" X-Originating-IP: [62.166.214.170] From: Grizz Lee To: "users@jackrabbit.apache.org" Subject: Properties in multiple languages Date: Mon, 21 May 2007 11:49:15 +0200 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 21 May 2007 09:49:14.0830 (UTC) FILETIME=[4AA3EEE0:01C79B8D] X-Virus-Checked: Checked by ClamAV on apache.org --_46d235eb-f32c-411c-8f5c-239fbaf172b7_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all, =20 I have an application that stores projects with a code and a name in a jack= rabbit repository. In a new version of this application it must be possible to have names in e= nglish and in french. =20 The project is now defined in the cnd file as: [app:project] > nt:folder - app:code (string) - app:name (string) =20 I don't want to specify the languages in the property names: [app:project] > nt:folder - app:code (string) - app:name-en (string) - app:name-fr (string) =20 So I'm thinking to make a name-language childnode: [app:project] > nt:folder - app:code (string) + * (app:name) multiple [app:name] > nt:hierarchyNode - app:name (string) - app:language (string) And then use XPath to select the correct childnode for a given language. =20 Is there a better way to handle multiple languages or is this the way to go= ? Comments are welcome. =20 Grizz. =20 _________________________________________________________________ Explore the seven wonders of the world http://search.msn.com/results.aspx?q=3D7+wonders+world&mkt=3Den-US&form=3DQ= BRE= --_46d235eb-f32c-411c-8f5c-239fbaf172b7_--