Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 42764 invoked from network); 10 Nov 2006 16:49:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Nov 2006 16:49:27 -0000 Received: (qmail 34086 invoked by uid 500); 10 Nov 2006 16:49:37 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 33888 invoked by uid 500); 10 Nov 2006 16:49:37 -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 33879 invoked by uid 99); 10 Nov 2006 16:49:36 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Nov 2006 08:49:36 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of tobias.strasser@gmail.com designates 64.233.184.233 as permitted sender) Received: from [64.233.184.233] (HELO wr-out-0506.google.com) (64.233.184.233) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Nov 2006 08:49:23 -0800 Received: by wr-out-0506.google.com with SMTP id 68so362358wri for ; Fri, 10 Nov 2006 08:49:02 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=DDUe53OZL/R7g9X3wzvPPgdz7F1Sj5Ear0QROBKIp4D0JLtOZtlK5lmxvJpogAP8uMpCHIWHUk9culUwGFN//KerRZftzvjKfxPZZCKT5BTAEpohq7XnAEgPgrbxoQMREWbvacCtWpyYyOeCdLGlUBITnJJuhqxGWhFTLQDeHJ4= Received: by 10.65.84.5 with SMTP id m5mr3511572qbl.1163177340665; Fri, 10 Nov 2006 08:49:00 -0800 (PST) Received: by 10.65.214.16 with HTTP; Fri, 10 Nov 2006 08:48:59 -0800 (PST) Message-ID: <8be731880611100848l1bd42253m27c3df102117533b@mail.gmail.com> Date: Fri, 10 Nov 2006 17:48:59 +0100 From: "Tobias Bocanegra" Reply-To: tobias.bocanegra@day.com Sender: tobias.strasser@gmail.com To: users@jackrabbit.apache.org Subject: Re: Unable to define node type without child nodes in CND In-Reply-To: <002401c704e6$35f97ac0$1801a8c0@intelligentsia.local> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <002401c704e6$35f97ac0$1801a8c0@intelligentsia.local> X-Google-Sender-Auth: d43a7d23f5324552 X-Virus-Checked: Checked by ClamAV on apache.org hi david, i quickly tried the following example: [namespace:document] > nt:file - namespace:name (string) mandatory [namespace:document2] > nt:file - namespace:name (string) mandatory which worked for me. maybe you can provide your entire cnd? regards, toby On 11/10/06, David Moss wrote: > Am I correct in thinking that it's not possible to define a node type that > only contains properties (i.e. no child nodes) in CND? > > I've tried: > > > > [namespace:document] > nt:file > - namespace:name (string) mandatory > > but I get an error 'Missing '[' delimiter for beginning of node type name > ...' when the parser comes to processing the next node in my list of > definitions. > > however, if I do something like: > > > > [namespace:document] > nt:file > - namespace:name (string) mandatory > + namespace:arbitraryNode (namespace:arbNodeType) > > it works. > > Have I done something obviously wrong here, or is it actually not possible > to define a node type with no child nodes? > > Thanks in advance > > > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > ______________________________________________________________________ > -- -----------------------------------------< tobias.bocanegra@day.com >--- Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel T +41 61 226 98 98, F +41 61 226 98 97 -----------------------------------------------< http://www.day.com >---