Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 46968 invoked from network); 31 Mar 2008 12:22:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Mar 2008 12:22:55 -0000 Received: (qmail 18855 invoked by uid 500); 31 Mar 2008 12:22:53 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 18840 invoked by uid 500); 31 Mar 2008 12:22:53 -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 18831 invoked by uid 99); 31 Mar 2008 12:22:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Mar 2008 05:22:53 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [207.97.245.165] (HELO smtp165.iad.emailsrvr.com) (207.97.245.165) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Mar 2008 12:22:13 +0000 Received: from relay6.relay.iad.emailsrvr.com (localhost [127.0.0.1]) by relay6.relay.iad.emailsrvr.com (SMTP Server) with ESMTP id 20A3C72C5A1; Mon, 31 Mar 2008 08:22:23 -0400 (EDT) Received: by relay6.relay.iad.emailsrvr.com (Authenticated sender: dbrosius-AT-baybroadband.net) with ESMTP id E3F2972C1DB; Mon, 31 Mar 2008 08:22:22 -0400 (EDT) Message-ID: <004101c89332$48d38a10$6501a8c0@MeBigFatGuy> From: "Dave Brosius" To: , References: <47EFE756.5060500@proteanit.net> <47F0D501.6070201@proteanit.net> Subject: Re: Node unfound, Node unsaved Date: Mon, 31 Mar 2008 08:22:35 -0500 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 x-mimeole: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Virus-Checked: Checked by ClamAV on apache.org Charles, Take a look at Node Type Definitions. I think this is really what you want, NTDs are kind of like xml schemas, so you get the 'type safety' of knowing that a child of 'reviews' is really a thing you know of as being a review. But with the benefit of having it's own name. See http://jackrabbit.apache.org/node-types.html cheers, dave ----- Original Message ----- From: "Charles Johnson" To: Sent: Monday, March 31, 2008 7:11 AM Subject: Re: Node unfound, Node unsaved > Thanks Greg, i'll have a look at that. I don't know if things should be > different with JCR, but i was just proceeding on the standard xml: > > > bar > foo > > > CJ > > Greg Klebus wrote: >> Hi Charles >> >> Just a short comment on your content model: >> >> On Sun, Mar 30, 2008 at 9:17 PM, Charles Johnson >> wrote: >> >>> There seem to be problems with the most fundamental functionality. I'm >>> trying to create a single Node, /reviews, which I'll later use as the >>> root for /reviews/review[0..n] >>> >> >> Is there a reason for using same-name-siblings here? I think something >> like that would be much easier to handle, and much more >> self-explanatory: >> >> /reviews/review-iphone >> /reviews/review-ipodnano >> >> or sth similar (depending on what's review subject). >> >> Have you seen David's Model, esp Rule #4: Beware of Same Name Siblings >> [1]? You might disagree, but should at least consider the consequences >> of using SNSs. >> >> [1] >> http://wiki.apache.org/jackrabbit/DavidsModel#head-1df0224190c265f5156f037eb3f20e314fa6c4a7 >> >> Cheers >> Greg >> >> PS. Sorry if that's a well thought-through decision already :) >> >> > >