Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 35617 invoked from network); 9 Mar 2006 22:55:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Mar 2006 22:55:23 -0000 Received: (qmail 45278 invoked by uid 500); 9 Mar 2006 22:55:14 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 45267 invoked by uid 99); 9 Mar 2006 22:55:14 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Mar 2006 14:55:14 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of torgeir@pobox.com designates 207.106.133.28 as permitted sender) Received: from [207.106.133.28] (HELO proof.pobox.com) (207.106.133.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Mar 2006 14:55:13 -0800 Received: from proof (localhost [127.0.0.1]) by proof.pobox.com (Postfix) with ESMTP id 196669694B for ; Thu, 9 Mar 2006 17:54:52 -0500 (EST) Received: from [192.168.1.11] (cust5040.nsw01.dataco.com.au [203.171.80.176]) (using SSLv3 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by proof.sasl.smtp.pobox.com (Postfix) with ESMTP id 25D53271F5 for ; Thu, 9 Mar 2006 17:54:50 -0500 (EST) Subject: Re: Custom nodetypes, any simple example? From: Torgeir Veimo To: jackrabbit-dev@incubator.apache.org In-Reply-To: <20060309174318.1779A2BD96@webemail02.ibest.com.br> References: <20060309174318.1779A2BD96@webemail02.ibest.com.br> Content-Type: text/plain Date: Fri, 10 Mar 2006 08:54:45 +1000 Message-Id: <1141944886.27071.66.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.5.92 (2.5.92-1) Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Thu, 2006-03-09 at 14:43 -0300, hsp wrote: > > So, I think the "my:timelife" is mix (?), and the other child > nodetypes are Date (I don't know who would be the parent for > "my:timelife"). There are some more needs, but with this example I > will mind the others. > Could someone mount a simple xml example with the tree above? You can define a mixin nodeType with the my:timeini and my:timeend values stored as properties. Then you can attach that mixin nodeType to an existing node of your choice and add those properties. A mixin node doesn't have any parent nodeType. In CND notation; [my:timelife] mixin - my:timeini (date) mandatory - my:timeend (date) mandatory -- Torgeir Veimo