Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 52020 invoked from network); 4 Aug 2008 16:05:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Aug 2008 16:05:42 -0000 Received: (qmail 36321 invoked by uid 500); 4 Aug 2008 16:05:40 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 36094 invoked by uid 500); 4 Aug 2008 16:05:39 -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 36083 invoked by uid 99); 4 Aug 2008 16:05:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Aug 2008 09:05:39 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [207.97.245.215] (HELO smtp215.iad.emailsrvr.com) (207.97.245.215) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Aug 2008 16:04:44 +0000 Received: from relay11.relay.iad.mlsrvr.com (localhost [127.0.0.1]) by relay11.relay.iad.mlsrvr.com (SMTP Server) with ESMTP id 61D4E1B4142 for ; Mon, 4 Aug 2008 12:04:10 -0400 (EDT) Received: from baybroadband.net (webmail10.webmail.iad.mlsrvr.com [192.168.1.107]) by relay11.relay.iad.mlsrvr.com (SMTP Server) with ESMTP id 55C241B4100 for ; Mon, 4 Aug 2008 12:04:10 -0400 (EDT) Received: by mail.baybroadband.net (Authenticated sender: dbrosius@baybroadband.net, from: dbrosius@mebigfatguy.com) with HTTP; Mon, 4 Aug 2008 12:04:10 -0400 (EDT) Date: Mon, 4 Aug 2008 12:04:10 -0400 (EDT) Subject: =?UTF-8?Q?NTD=20and=20prefixed=20names=20->=20sharepoint?= From: "Dave Brosius" To: users@jackrabbit.apache.org Reply-To: dbrosius@mebigfatguy.com MIME-Version: 1.0 Content-Type: text/plain;charset=UTF-8 Content-Transfer-Encoding: quoted-printable Importance: Normal X-Priority: 3 (Normal) X-Type: plain Message-ID: <47264.192.168.1.71.1217865850.webmail@192.168.1.71> X-Mailer: webmail6.7 X-Virus-Checked: Checked by ClamAV on apache.org Greetings,=0A=0A Perhaps i am very confused here, (likely), but if one us= es a node type definition file in jackrabbit, then node names and property = names must have namespace prefixes attached to them, as specified by the nt= d.=0A=0A Now if we would like to use the same code, without registering t= he NTD, using sharepoint, Sharepoint complains about the use of the ':' as = the prefix/name separator.=0A=0ASo I suppose we need to look at what system= we are running, and use=0A=0AProperty p =3D n.getProperty("myprefix:myprop= ");=0A=0Afor jackrabbit, and =0A=0AProperty p =3D n.getProperty("myprop");= =0A=0Afor sharepoint.=0A=0AAm i correct here? I am not sure why one must us= e prefixed names for node names and property names, Is it not good enough t= hat the type be namespace qualified?=0A=0AWhat is the strategy that ones ta= kes here, do i just need to write a method such as=0A=0Apublic String getQN= ame(String baseName)=0A{=0A if (ntd_in_force)=0A return "myprefix:"= + baseName;=0A return baseName;=0A}=0A=0Aand use that all over? =0A=0AT= hanks in advance.=0Adave