Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 4397 invoked from network); 27 Apr 2006 20:42:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Apr 2006 20:42:13 -0000 Received: (qmail 42137 invoked by uid 500); 27 Apr 2006 20:42:12 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 41952 invoked by uid 500); 27 Apr 2006 20:42:10 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 41943 invoked by uid 500); 27 Apr 2006 20:42:10 -0000 Delivered-To: apmail-incubator-jackrabbit-dev@incubator.apache.org Received: (qmail 41938 invoked by uid 99); 27 Apr 2006 20:42:10 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Apr 2006 13:42:10 -0700 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of piccinatto@ibest.com.br designates 200.181.68.91 as permitted sender) Received: from [200.181.68.91] (HELO webemail03.ibest.com.br) (200.181.68.91) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Apr 2006 13:42:05 -0700 Received: from ibest.com.br (webemail03.ibest.com.br [127.0.0.1]) by webemail03.ibest.com.br (Postfix) with ESMTP id A0EB72B9BE for ; Thu, 27 Apr 2006 20:41:29 +0000 (GMT) Content-Disposition: inline Content-Transfer-Encoding: binary Content-Type: text/plain MIME-Version: 1.0 X-Mailer: MIME::Lite 2.117 (F2.6; A1.50; B2.12; Q2.03) X-Mailer: IbestMail X-Organization: Ibest S/A X-Identity: 931768_1146170489 From: "hsp" To: jackrabbit-dev@incubator.apache.org Subject: CND x XML compatibility for custom node definition. Date: Thu, 27 Apr 2006 17:41:29 -0300 Message-Id: <20060427204129.A0EB72B9BE@webemail03.ibest.com.br> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N In the following xml definition: nt:hierarchyNode xxx:user xxx:security I defined that the prop:creator is a property that may only refers to a node of type xxx:user (restriction), and a node with the name "Permission" of type xxx:security will autocreate with the creation of the node of type xxx:base. Registering this file, the repository works as expected. I have defined the same structure in a file with the cnd format, so the file is like this: [xxx:base] > nt:hierarchyNode - prop:creatir (reference) version < 'xxx:user' + Permission (xxx:security) = xxx:security autocreated version [xxx:user] > nt:hierarchyNode [xxx:security] > nt:hierarchyNode Why when trying to register the nodetype, it gets me two errors ?: 1 - About to the restriction for the value in the prop:creator only may refers to xxx:user: javax.jcr.RepositoryException: [{http://www.e/1.0}base#{http://www.e/1.0}creator] invalid REFERENCE value constraint '{http://www.e/1.0}user' (unknown node type) 2 - About the name the node will autocreate, if I keep like "Permission" it says me that the name is invalid for jcr, it must be "xxx:Permission". How to do the register in cnd format recognize all I declared like I did in xml format? I thought the cnd format has all the parameters that xml format has. Helio